From 464be8d595e32a35abfc81eefbbd3431f1d3cb78 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Sat, 22 Jun 2019 16:39:13 -0600 Subject: [PATCH] Add hops UI --- src/humulus/templates/recipes/create.html | 190 +++++++++++++++++----- 1 file changed, 145 insertions(+), 45 deletions(-) diff --git a/src/humulus/templates/recipes/create.html b/src/humulus/templates/recipes/create.html index 0f4c764..6be0079 100644 --- a/src/humulus/templates/recipes/create.html +++ b/src/humulus/templates/recipes/create.html @@ -22,15 +22,18 @@ limitations under the License.

Create a new recipe

{{ form.hidden_tag() }} + {#- + Recipe Details + -#}
{{ render_field_with_errors(form.name) }}
{{ render_field_with_errors(form.efficiency) }}
{{ render_field_with_errors(form.volume) }}
- -
-

Fermentables

-
+ {#- + Fermentable Ingredients + -#} +

Fermentables

{% for fermentable in form.fermentables %}
@@ -58,24 +61,100 @@ limitations under the License.
+ {#- + Hop ingredients + -#} +

Hops

+
+ {% for hop in form.hops %} +
+
+
+ {{ render_field_with_errors(hop.form.name, 'form-control-sm') }} +
+
+
+
{{ render_field_with_errors(hop.form.use, 'form-control-sm') }}
+
{{ render_field_with_errors(hop.form.alpha, 'form-control-sm') }}
+
{{ render_field_with_errors(hop.form.duration, 'form-control-sm') }}
+
{{ render_field_with_errors(hop.form.amount, 'form-control-sm') }}
+
+
+
+ +
+
+
+ {% endfor %} +
+
+
+ +
+
+ {#- + Recipe Notes + -#}
{{ render_field_with_errors(form.notes) }}
+ {#- + Submit recipe + -#}
{% endblock %}