diff --git a/cookbook/migrations/0071_auto_20200701_2048.py b/cookbook/migrations/0071_auto_20200701_2048.py new file mode 100644 index 000000000..09bc5dac3 --- /dev/null +++ b/cookbook/migrations/0071_auto_20200701_2048.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.7 on 2020-07-01 18:48 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0070_auto_20200701_2007'), + ] + + operations = [ + migrations.RenameField( + model_name='step', + old_name='kind', + new_name='type', + ), + ] diff --git a/cookbook/models.py b/cookbook/models.py index b438ee707..ec6913326 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -163,7 +163,7 @@ class Step(models.Model): TIME = 'TIME' name = models.CharField(max_length=128, default='', blank=True) - kind = models.CharField(choices=((TEXT, _('Text')), (TIME, _('Time')),), default=TEXT, max_length=16) + type = models.CharField(choices=((TEXT, _('Text')), (TIME, _('Time')),), default=TEXT, max_length=16) instruction = models.TextField(blank=True) ingredients = models.ManyToManyField(Ingredient, blank=True) time = models.IntegerField(default=0, blank=True) diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index 98b7f3b22..9298e17eb 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -75,185 +75,215 @@ + -
-
-
-

{% trans 'Step' %} [[step_index+1]] +
+ +
+
+
+

+ + + +

+
+
-

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