diff --git a/cookbook/serializer.py b/cookbook/serializer.py index 7a311e011..76f77284a 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -99,7 +99,7 @@ class RecipeSerializer(WritableNestedModelSerializer): class Meta: model = Recipe - fields = ['name', 'image', 'keywords', 'steps', 'working_time', 'waiting_time', 'created_by', 'created_at', 'updated_at', 'internal'] + fields = ['id', 'name', 'image', 'keywords', 'steps', 'working_time', 'waiting_time', 'created_by', 'created_at', 'updated_at', 'internal'] read_only_fields = ['image', 'created_by', 'created_at'] diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index 67d82a692..8f5980371 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -161,7 +161,7 @@

-
+
{% block content_xl_left %} diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index 24d3122e7..53dfeba3c 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -23,11 +23,6 @@ margin-top: 2px; } - .break-column { - flex-basis: 100%; - width: 0; - } - {% endblock %} @@ -50,7 +45,8 @@
-
@@ -184,16 +180,39 @@
- - - + + + {% trans 'View Recipe' %} + class="btn btn-secondary shadow-none">{% trans 'View Recipe' %}

+{% endblock %} + +{% block content_xl_right %} +
+
+
+ + + + + + + {% trans 'View Recipe' %}
+
+
+
+{% endblock %} + +{% block script %} - - {% endblock %} \ No newline at end of file