From be0bb4e123240ac3ce02431b974c82f8f05d843b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 9 Jan 2019 13:29:17 -0600 Subject: latest changes --- design/templates/notes/notebook_list.html | 63 ++++++++++++++++++++++++------- 1 file changed, 50 insertions(+), 13 deletions(-) (limited to 'design/templates/notes/notebook_list.html') diff --git a/design/templates/notes/notebook_list.html b/design/templates/notes/notebook_list.html index 6f25f62..5f1220f 100644 --- a/design/templates/notes/notebook_list.html +++ b/design/templates/notes/notebook_list.html @@ -6,32 +6,69 @@ {% endblock %} {% block content %}
-
-

Add a Notebook

- {% include 'notes/partials/notebook_form.html' with form=form %} +
+

Notebooks

- + New +
+ {% if messages %} +
    + {% for message in messages %} + + {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} + + {% endfor %} +
+ {% endif %} +
+ {% include 'notes/partials/notebook_form.html' with form=form url='' %} +
    {% for form in notebook_form_list %}
  • -
    {% for field in form %}{% if field.name == 'color_rgb' %} -
    - + {% csrf_token %} + {% for field in form %}{% if field.name == 'color_rgb' %} +
    +
    + {% if field.errors %}{{field.errors}}{% endif %}
    - href="{% url 'notebooks:detail' form.instance.slug %}" -

    {{form.instance.name}}

    - {% else %} +

    {{form.instance.name}}

    + +
    + {% elif field.name == 'name' %}
    + + +
    + {% else %} {% if field.field.widget.input_type != 'hidden' %}{{field.label_tag}}{% endif %} {{field}} {% if field.errors %}{{field.errors}}{% endif %} -
    {% endif %}{% endfor %} + {% endif %}{% endfor %} + +
    +

    {{form.instance.note_count}} notes{% if form.instance.note_count > 5 %}, most recent:{%endif%}

    + {% if form.instance.note_count > 0 %}
      {% for note in form.instance.note_set.all %} +
    • {{note.title}}
    • + {%endfor%} + {% if form.instance.note_count > 5 %}
    • {%endif%} +
    {%endif%} + {% if form.instance.tag_list %}
    Common tags:
    {%endif%} + +
    - -
  • {%endfor%}
+ + + + + {% comment %}
    {% for object in notebook_list %}
  • -- cgit v1.2.3-70-g09d2