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! {
|
||||
fieldset(class="recipe_selector no-print") {
|
||||
table(class="recipe_selector no-print") {
|
||||
(View::new_fragment(
|
||||
rows.get().iter().cloned().map(|r| {
|
||||
view ! {
|
||||
div(class="grid") {Keyed(KeyedProps{
|
||||
tr { Keyed(KeyedProps{
|
||||
iterable: r.handle(),
|
||||
template: |(i, recipe)| {
|
||||
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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user