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/accounts/change-settings.html | 33 ++++++++++++ design/templates/accounts/profile.html | 14 +---- design/templates/base.html | 2 +- design/templates/notes/notebook_detail.html | 18 ++----- design/templates/notes/notebook_list.html | 63 +++++++++++++++++----- design/templates/notes/notes_detail.html | 3 +- design/templates/notes/notes_list.html | 40 ++++---------- design/templates/notes/partials/list_header.html | 19 +++++++ design/templates/notes/partials/notebook_form.html | 4 +- 9 files changed, 122 insertions(+), 74 deletions(-) create mode 100644 design/templates/accounts/change-settings.html create mode 100644 design/templates/notes/partials/list_header.html (limited to 'design/templates') diff --git a/design/templates/accounts/change-settings.html b/design/templates/accounts/change-settings.html new file mode 100644 index 0000000..a6e6ea6 --- /dev/null +++ b/design/templates/accounts/change-settings.html @@ -0,0 +1,33 @@ +{% extends 'base.html' %} +{% block content %} +
+

Update Your Account Settings

+
{% csrf_token %} + {% for field in form %} +
{% if field.name == 'photo' %} + {{field.label_tag}} +
+
+ Upload + +
+ +
+ {% else %} + {{field.label_tag}} + {{field}} + {%endif%}
+ {% endfor %} +

+
+
+ +{% endblock %} diff --git a/design/templates/accounts/profile.html b/design/templates/accounts/profile.html index e8ab65e..4e52da1 100644 --- a/design/templates/accounts/profile.html +++ b/design/templates/accounts/profile.html @@ -31,22 +31,12 @@ Bio {{object.bio}} - Change + Change Photo {{object.photo}} - Change - - - Website - {{object.website}} - Change - - - Location - {{object.location}} - Change + Change diff --git a/design/templates/base.html b/design/templates/base.html index adcf599..e02719b 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -51,7 +51,7 @@
  • Community
  • Tour
  • How to
  • {% if not request.user.is_anonymous %} -
  • Account +
  • Account
    • Account settings
    • diff --git a/design/templates/notes/notebook_detail.html b/design/templates/notes/notebook_detail.html index 37c8f8a..49717ca 100644 --- a/design/templates/notes/notebook_detail.html +++ b/design/templates/notes/notebook_detail.html @@ -7,14 +7,15 @@ {% block content %}
      + {% include "notes/partials/list_header.html" with notebook_list=notebook_list tag_list=tag_list %}
      {% if object.name != 'Trash'%}
      {% csrf_token %} {{ form.non_field_errors }}
      {% for field in form %}{% if field.name == 'color_rgb' %} -
      - +
      + {% if field.errors %}{{field.errors}}{% endif %}
      {% else %}
      @@ -33,19 +34,6 @@ {%endif%}
      - - - {% csrf_token %} - {{ form.non_field_errors }} - {% for field in form %} -
      - {{field.label_tag}} - {{field}} - {% if field.errors %}{{field.errors}}{% endif %} -
      - {% endfor %} -

      -
        {% for object in object.note_set.all %} {% include "notes/partials/note_list.html" with object=object hidecolor=True hidenotebook=True %} {% endfor %}
      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 %}
      • diff --git a/design/templates/notes/notes_detail.html b/design/templates/notes/notes_detail.html index cce13b7..0099f3d 100644 --- a/design/templates/notes/notes_detail.html +++ b/design/templates/notes/notes_detail.html @@ -69,7 +69,8 @@ -->
      - {% include 'notes/partials/notebook_form.html' with form=notebook_form %} + {% url 'notebook-api-list' as create_url %} + {% include 'notes/partials/notebook_form.html' with form=notebook_form url=create_url %}
      {% endblock %} diff --git a/design/templates/notes/notes_list.html b/design/templates/notes/notes_list.html index 94e82ec..0799a1c 100644 --- a/design/templates/notes/notes_list.html +++ b/design/templates/notes/notes_list.html @@ -1,42 +1,20 @@ {% extends 'base.html' %} - {% block content %}
      + {% include "notes/partials/list_header.html" with notebook_list=notebook_list tag_list=tag_list %}

      Notes

      {% if messages %} -
        - {% for message in messages %} - - {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} - - {% endfor %} -
      +
        + {% for message in messages %} + + {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} + + {% endfor %} +
      {% endif %} {% if tags|length >= 1%}

      Tagged with: {% for tag in tags%}{{tag.name}}{%endfor%}

      {%endif%} - -
      - - -
      -
      {%comment%} + -- cgit v1.2.3