diff --git a/news/templates/news/_form.html b/news/templates/news/_form.html new file mode 100644 index 0000000..cacd124 --- /dev/null +++ b/news/templates/news/_form.html @@ -0,0 +1,67 @@ +{% load static i18n %} +{% load widget_tweaks %} + +
+ {% csrf_token %} + {% for field in form %} +
+ {% if field.auto_id == 'id_image' %} + + {% render_field field class='form-control' %} +
+ + + + +
+ + + {% elif field.auto_id == 'id_content' %} + {% if field.field.required %} + + {% else %} + + + {% endif %} + {% render_field field class='form-control text_wysiwyg' %} + {% else %} + {% if field.field.required %} + + {% else %} + + + {% endif %} + {% render_field field class='form-control' %} + + + + {% endif %} + {{ field.help_text }} + {% if field.errors %} + + {% endif %} +
+ {% endfor %} +
+
+
+ +
+ +
+
+ +
-- libgit2 0.21.2