app: Render recipe as mardown
This commit is contained in:
parent
7c7eee04b2
commit
4ecc06e01b
4 changed files with 213 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ use crate::{
|
|||
bootstrap::{bs, FormModal, ModalBody, ModalFooter, ModalToggleButton, TitledModal},
|
||||
ingredients::do_add_ingredient,
|
||||
recipe::IngredientSelect,
|
||||
use_error, use_trimmed_context, ErrorView,
|
||||
use_error, use_trimmed_context, ErrorView,
|
||||
};
|
||||
|
||||
use super::RecipeIngredient;
|
||||
|
|
@ -341,12 +341,15 @@ pub fn RecipeCreator(cx: Scope) -> Element {
|
|||
}
|
||||
div {
|
||||
h2 { "Steps" }
|
||||
div {class: "text-start",
|
||||
textarea {
|
||||
class: "form-control",
|
||||
id: "steps-area",
|
||||
value: "{steps}",
|
||||
rows: "10",
|
||||
oninput: move |e| steps.set(e.value.clone())
|
||||
}
|
||||
}
|
||||
}
|
||||
hr {}
|
||||
ModalToggleButton { class: "btn btn-lg btn-primary", modal_id: "newRcpModal", "Create Recipe" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue