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/notes_detail.html | 34 +++++++++++++++----------------- 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'design/templates/notes/notes_detail.html') diff --git a/design/templates/notes/notes_detail.html b/design/templates/notes/notes_detail.html index b2ddbc3..26bff03 100644 --- a/design/templates/notes/notes_detail.html +++ b/design/templates/notes/notes_detail.html @@ -2,16 +2,18 @@ {% block extrastyles %} {% endblock %} +{% block bodyclass %}note-detail{% endblock %} {% block content %}
{% csrf_token %}
-
- {{object.notebook}} + {% if object.notebook %}{{object.notebook}} + {%else %}{{object.notebook}} + {%endif%}
{{ form.notebook.errors }} {{form.notebook}} @@ -24,7 +26,7 @@ {{tag}} {%endfor%}
-
+
{{ form.notebook.errors }} {{form.tags}}
@@ -40,12 +42,16 @@
+
+ {{form.url.label_tag}} + {{form.url}} +

{{object.title}}

{% if object.body_html %}{{object.body_html|safe}}{%else%}{{object.body_text}}{%endif%}
-
+
+ {% include 'notes/partials/notebook_form.html' with form=notebook_form %} +
{% endblock %} {% block jsinclude %} + - {% endblock %} {% block jsdomready %} -window.url = "{% url 'notes-api-detail' object.pk %}"; + {%endblock%} -- cgit v1.2.3-70-g09d2