diff --git a/myproject/products/templates/products/product_form.html b/myproject/products/templates/products/product_form.html index a229d8e..6c69bf1 100644 --- a/myproject/products/templates/products/product_form.html +++ b/myproject/products/templates/products/product_form.html @@ -45,6 +45,28 @@ {% endif %} + +
+
+ + + Новая + +
+
+ {{ form.categories }} +
+ {% if form.categories.help_text %} + {{ form.categories.help_text }} + {% endif %} + {% if form.categories.errors %} +
{{ form.categories.errors }}
+ {% endif %} +
+
{{ form.description.label_tag }} @@ -221,20 +243,6 @@
Классификация
- -
- {{ form.categories.label_tag }} -
- {{ form.categories }} -
- {% if form.categories.help_text %} - {{ form.categories.help_text }} - {% endif %} - {% if form.categories.errors %} -
{{ form.categories.errors }}
- {% endif %} -
-
{{ form.tags.label_tag }} diff --git a/myproject/products/templates/products/productkit_form.html b/myproject/products/templates/products/productkit_form.html index 6f68637..e91bd97 100644 --- a/myproject/products/templates/products/productkit_form.html +++ b/myproject/products/templates/products/productkit_form.html @@ -128,7 +128,54 @@
Основная информация
+ +
+ {{ form.name.label_tag }} + {{ form.name }} + {% if form.name.help_text %} + {{ form.name.help_text }} + {% endif %} + {% if form.name.errors %} +
{{ form.name.errors }}
+ {% endif %} +
+ + +
+
+ + + Новая + +
+
+ {{ form.categories }} +
+ {% if form.categories.help_text %} + {{ form.categories.help_text }} + {% endif %} + {% if form.categories.errors %} +
{{ form.categories.errors }}
+ {% endif %} +
+ + +
+ {{ form.description.label_tag }} + {{ form.description }} + {% if form.description.help_text %} + {{ form.description.help_text }} + {% endif %} + {% if form.description.errors %} +
{{ form.description.errors }}
+ {% endif %} +
+ {% for field in form %} + {% if field.name not in 'name,categories,description,tags' %} {% if field.name == 'fixed_price' %} + {% endif %} {% endfor %} + +
+ {{ form.tags.label_tag }} +
+ {{ form.tags }} +
+ {% if form.tags.help_text %} + {{ form.tags.help_text }} + {% endif %} + {% if form.tags.errors %} +
{{ form.tags.errors }}
+ {% endif %} +
+