diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index 9981d6327..7d977478e 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -28,309 +28,314 @@ {% endblock %} {% block content %} -

{% trans 'Edit Recipe' %}

-
-
-
- - -
+
+
+ +
+
+ +
+
+ +
-
+
+
-
-
- - -
-
- - -
- - -
- - - -
+
+
+ +
+
+ + +
+ + +
+ + + +
+
- + -
+
-
-
-
-

- - - - +
+
+
+

+ + + + -

+

+
+
+ + + + -
- + +
+
+ +
+
+ + +
+
+ + +
+
- - + - - - -
+
+ +
+
+ + + + {% trans 'View Recipe' %}
+
+ + {% endblock %} {% block content_xl_right %} @@ -355,7 +360,8 @@
{% trans 'Steps' %}
+ :empty-insert-threshold="10" handle=".handle" @sort="sortSteps()" class="list-group" + style="margin-top: 1vh">
@@ -397,6 +403,7 @@ foods_loading: false, units: [], units_loading: false, + message: '', }, directives: { tabindex: { diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index a54b46275..2a0bddbe7 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -215,7 +215,19 @@ {% if recipe.steps.all|length > 1 %}
- {% trans 'Step' %} {{ forloop.counter }}{% if s.name %} - {{ s.name }}{% endif %} + + {% if s.type == 'TEXT' %} + + {% elif s.type == 'TIME' %} + + {% endif %} + {% if s.name %}{{ s.name }}{% else %}{% trans 'Step' %} + {{ forloop.counter }}{% endif %} + {% if s.type == 'TIME' %} + - {{ s.time }} {% trans 'Minutes' %} + {% endif %} + +
{% endif %} @@ -246,7 +258,6 @@ width="100%" height="700px" style="border: none;"> -
{% endif %} {% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}