From e1e7cca663075c06c2762422ad1f72db000a8078 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Sun, 23 Jun 2019 21:53:56 -0600 Subject: [PATCH] Add recipe info page --- src/humulus/templates/recipes/info.html | 98 ++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/src/humulus/templates/recipes/info.html b/src/humulus/templates/recipes/info.html index d073217..43e3991 100644 --- a/src/humulus/templates/recipes/info.html +++ b/src/humulus/templates/recipes/info.html @@ -20,8 +20,104 @@ {% block body %}

{{ recipe.name }}

+ +{#- + Recipe Details +-#} +

Details

+
+
+
Batch Efficiency
+
{{ recipe.efficiency|int }}%
+
Batch Volume
+
{{ recipe.volume|float|round(1) }} gal.
+
+
+{#- + Fermentables +-#} +

Fermentables

+
+ + + + + + + + + + {%- for fermentable in recipe.fermentables -%} + + + + + + + {%- endfor -%} +
NameAmountPPGColor
{{ fermentable.name }}{{ fermentable.amount|float|round(2) }} lb.{{ fermentable.ppg|float|round }}{{ fermentable.color|float|round(1) }}°L
+
+{#- + Hops +-#} +

Hops

+
+ + + + + + + + + + + {%- for hop in recipe.hops -%} + + + + + + + + {%- endfor -%} +
NameAmountDurationAlpha AcidUsage
{{ hop.name }}{{ hop.amount|float|round(2) }} oz.{{ hop.duration|int }} {% if hop.use == 'Dry-Hop' %}days{% else %}min{% endif %}{{ hop.alpha|float|round(1) }}%{{ hop.use }}
+
+{#- + Yeast +-#} +

Yeast

+
+ + + + + + + + + + + + + + + + + + + + + +
NameLabCodeAtten.Temp.Flocc.ABV Max
{{ recipe.yeast.name }}{{ recipe.yeast.lab }}{{ recipe.yeast.code }}{{ recipe.yeast.low_attenuation|int }}% - {{ recipe.yeast.high_attenuation|int }}%{{ recipe.yeast.min_temperature|int }}°F - {{ recipe.yeast.max_temperature|int }}°F{{ recipe.yeast.flocculation }}{{ recipe.yeast.abv_tolerance|int }}%
+
+{#- + Buttons to do things +-#}
- {{ render_delete_button('Delete Recipe', 'deleteRecipe', 'btn-sm btn-danger') }} + Update Recipe + {{ render_delete_button('Delete Recipe', 'deleteRecipe', 'btn-danger') }}
{{ render_delete_modal(url_for('recipes.delete', id=recipe._id), 'deleteRecipe', recipe.name) }} +
Recipe revision: {{ recipe._rev }}
{% endblock %}