From d481767154f2b52680708bbcc20039cc4c64ccf1 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 29 Jun 2020 13:29:59 +0200 Subject: [PATCH] wip flex ui --- .../templates/forms/edit_internal_recipe.html | 123 ++++++++++-------- 1 file changed, 68 insertions(+), 55 deletions(-) diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index cc03e1b0a..d8f017ba6 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -22,6 +22,11 @@ padding-right: 2px; } + .break-column { + flex-basis: 100%; + width: 0; + } + {% endblock %} @@ -113,62 +118,65 @@ :empty-insert-threshold="10" handle=".handle" @sort="sortStep(step)">
-
-
- -
-
- -
-
- - -
-
- - -
-
- -
-
- -
+
+
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+ +
+
+ +
@@ -193,6 +201,8 @@ +
+
@@ -272,7 +282,10 @@ this.sortStep(step) }, removeIngredient: function (step, ingredient) { - step.ingredients = step.ingredients.filter(item => item !== ingredient) + if (confirm('{% trans 'Do you really want to remove this ingredient ?' %}')) { + step.ingredients = step.ingredients.filter(item => item !== ingredient) + } + }, searchKeywords: function (query) { this.keywords_loading = true