mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Use a table to display the recipes
This commit is contained in:
parent
6a916fac3c
commit
496c7f5ea2
@ -42,15 +42,15 @@ pub fn recipe_selector() -> View<G> {
|
|||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
view! {
|
view! {
|
||||||
fieldset(class="recipe_selector no-print") {
|
table(class="recipe_selector no-print") {
|
||||||
(View::new_fragment(
|
(View::new_fragment(
|
||||||
rows.get().iter().cloned().map(|r| {
|
rows.get().iter().cloned().map(|r| {
|
||||||
view ! {
|
view ! {
|
||||||
div(class="grid") {Keyed(KeyedProps{
|
tr { Keyed(KeyedProps{
|
||||||
iterable: r.handle(),
|
iterable: r.handle(),
|
||||||
template: |(i, recipe)| {
|
template: |(i, recipe)| {
|
||||||
view! {
|
view! {
|
||||||
RecipeSelection(RecipeCheckBoxProps{i: i, title: create_memo(move || recipe.get().title.clone())})
|
td { RecipeSelection(RecipeCheckBoxProps{i: i, title: create_memo(move || recipe.get().title.clone())}) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
key: |r| r.0.clone(),
|
key: |r| r.0.clone(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user