From d45fa99aa9d587b5674484f68955b43f39e8f6fd Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 6 Dec 2018 06:57:52 -0600 Subject: redid tags to use through model, cleaned up note and notebook detail views --- design/templates/notes/notebook_detail.html | 64 +++++++++++++++++------------ 1 file changed, 37 insertions(+), 27 deletions(-) (limited to 'design/templates/notes/notebook_detail.html') diff --git a/design/templates/notes/notebook_detail.html b/design/templates/notes/notebook_detail.html index 36873e1..a0b06a3 100644 --- a/design/templates/notes/notebook_detail.html +++ b/design/templates/notes/notebook_detail.html @@ -1,49 +1,59 @@ {% extends 'base.html' %} +{% block extrastyles %} + +{% endblock %} + {% block content %}
-
- {%comment%} -
+
+
+ {% csrf_token %} + {{ form.non_field_errors }} + +
+ {% for field in form %}{% if field.name == 'color_rgb' %} +
+ + {% if field.errors %}{{field.errors}}{% endif %} +
{% else %} +
+ {{field.label_tag}} + {{field}} + {% if field.errors %}{{field.errors}}{% endif %} +
{% endif %} + {% endfor %} +

{{object.name}}

+
+ + + +
+ +
{% csrf_token %} {{ form.non_field_errors }} {% for field in form %} -
+
{{field.label_tag}} {{field}} {% if field.errors %}{{field.errors}}{% endif %}
{% endfor %} -

+

- {%endcomment%} -{{object}} -
{% endblock %} +{% block jsdomready %} +window.url = "{% url 'notebook-api-detail' object.pk %}"; +{%endblock%} -- cgit v1.2.3