mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Formatting fixes fore recipe rendering
This commit is contained in:
parent
b84b2722aa
commit
a609db119a
@ -31,7 +31,7 @@ fn steps(steps: ReadSignal<Vec<recipes::Step>>) -> View<G> {
|
|||||||
iterable: Signal::new(step.ingredients).handle(),
|
iterable: Signal::new(step.ingredients).handle(),
|
||||||
template: |i| { view! {
|
template: |i| { view! {
|
||||||
li {
|
li {
|
||||||
(i.amt) (i.name) (i.form.as_ref().map(|f| format!("({})", f)).unwrap_or(String::new()))
|
(i.amt) " " (i.name) " " (i.form.as_ref().map(|f| format!("({})", f)).unwrap_or(String::new()))
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
@ -88,6 +88,8 @@ fn shopping_list() -> View<G> {
|
|||||||
let amt = Signal::new(format!("{}", i.amt.normalize()));
|
let amt = Signal::new(format!("{}", i.amt.normalize()));
|
||||||
view! {
|
view! {
|
||||||
tr {
|
tr {
|
||||||
|
// TODO(jwall): What is the mechanism for deleting ingredients
|
||||||
|
// from the list?
|
||||||
td { input(bind:value=amt.clone(), type="text") }
|
td { input(bind:value=amt.clone(), type="text") }
|
||||||
td { (i.name) }
|
td { (i.name) }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user