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/notes_detail.html | 76 ++++++++++++-------------------- 1 file changed, 28 insertions(+), 48 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 95583bd..b2ddbc3 100644 --- a/design/templates/notes/notes_detail.html +++ b/design/templates/notes/notes_detail.html @@ -2,26 +2,38 @@ {% block extrastyles %} {% endblock %} -{% block breadcrumbs %} -
  • Notes
  • -{% endblock %} - {% block content %}
    +
    {% csrf_token %}
    - tags: -
      {% for tag in object.tags.all %} -
    • - {{tag}} -
    • - {%endfor%}
    -
    - notebook: - {{object.notebook.name}} -
    + +
    +
    + {{object.notebook}} +
    + {{ form.notebook.errors }} + {{form.notebook}} +
    +
    +
    + tags: +
    {% for tag in object.tags.all %} + + {{tag}} + {%endfor%} +
    +
    + {{ form.notebook.errors }} + {{form.tags}} +
    +
    +
    +
    +
    {{form.body_text}}
    +
    {{form.title}}

    {{object.date_created|date:"M d, Y"}}

    {% if object.url %}

    SourceArchive

    {% endif %} @@ -30,10 +42,6 @@

    {{object.title}}

    {% if object.body_html %}{{object.body_html|safe}}{%else%}{{object.body_text}}{%endif%}
    - {% csrf_token %} - {% for field in form %}{% if field.name in "title body_text" %} -
    {{field}}
    - {% endif%}{% endfor %}
    @@ -44,7 +52,7 @@
      {% for obj in notes_list %}
    • - +

      {{obj.title}}

      {{obj.body_text|truncatewords:12}}
      @@ -71,34 +79,6 @@ document.addEventListener('readystatechange', event => { }); {% endblock %} - - -'indent -'align -'direction -'code-block -- cgit v1.2.3-70-g09d2