From 4f7b84194b056b5d6d9acca4cceb2cabc04fd8a5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 29 Dec 2018 08:37:39 -0600 Subject: cleaned up JS and made modal handler. --- design/templates/notes/partials/notebook_form.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 design/templates/notes/partials/notebook_form.html (limited to 'design/templates/notes/partials/notebook_form.html') diff --git a/design/templates/notes/partials/notebook_form.html b/design/templates/notes/partials/notebook_form.html new file mode 100644 index 0000000..fae6c40 --- /dev/null +++ b/design/templates/notes/partials/notebook_form.html @@ -0,0 +1,19 @@ +
{% csrf_token %} +
{{ form.non_field_errors }}
+
+ {% for field in form %}{% if field.name == 'color_rgb' %} +
+ {{field.label_tag}} + + {% if field.errors %}{{field.errors}}{% endif %} +
{% else %} + {%if field.name != 'owner' %}
+ {{field.label_tag}} + {{field}} + {% if field.errors %}{{field.errors}}{% endif %} +
{%else%}{{field}}{% endif %}{%endif%} + {% endfor %} +

{{object.name}}

+
+ +
-- cgit v1.2.3-70-g09d2