Beginning of frontend + recipe editing
(it's a mess)
This commit is contained in:
parent
642dd8a80c
commit
cbe276fc06
16 changed files with 203 additions and 63 deletions
18
backend/templates/edit_recipe.html
Normal file
18
backend/templates/edit_recipe.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends "base_with_list.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 class="recipe-title" >{{ current_recipe.title }}</h2>
|
||||
|
||||
<label for="title_field">Title</label>
|
||||
<input id="title_field" type="text" name="title" value="{{ current_recipe.title }}" autocapitalize="none" autocomplete="title" autofocus="autofocus" />
|
||||
|
||||
{% match current_recipe.description %}
|
||||
{% when Some with (description) %}
|
||||
<div class="recipe-description" >
|
||||
{{ description|markdown }}
|
||||
</div>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue