diff options
Diffstat (limited to 'design/templates/notes/notes_list.html')
-rw-r--r-- | design/templates/notes/notes_list.html | 40 |
1 files changed, 10 insertions, 30 deletions
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 %} <main> <div class="note-container"> + {% include "notes/partials/list_header.html" with notebook_list=notebook_list tag_list=tag_list %} <div class="note-hed-wrapper"> <h1 class="note-hed">Notes</h1> {% if messages %} - <ul class="messages"> - {% for message in messages %} - <li{% if message.tags %} class="{{ message.tags }}"{% endif %}> - {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} - </li> - {% endfor %} - </ul> + <ul class="messages"> + {% for message in messages %} + <li{% if message.tags %} class="{{ message.tags }}"{% endif %}> + {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} + </li> + {% endfor %} + </ul> {% endif %} {% if tags|length >= 1%}<h2 class="note-subhed">Tagged with: {% for tag in tags%}<a href="{{tag.slug}}">{{tag.name}}</a>{%endfor%}</h2>{%endif%} - - <h6 class="bottom-margin-0 inline-block"><button id="notebook-drop-btn" class="btn btn-light btn-drop-menu">Notebooks</button></h6> - <div id="notebook-drop-menu" class="dropmenu dropmenu-search"> - <div class="dropmenu-search-wrapper"> - <input class="search" autocapitalize="off" autocorrect="off" type="text" autocomplete="off" tabindex="-1" spellcheck="false" placeholder="Search..." id="notebook-input" data-list="#notebook-list" > - <!--<svg class="fa d-icon d-icon-search svg-icon filter-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#search"></use></svg>--> - </div> - <ul class="list dropmenu-list list-style-none notebook-list" id="notebook-list">{% for object in notebook_list %} - <li ><a class="name" href="{{object.get_absolute_url}}">{{object.name}} - {{object.note_count}}</a></li> - {%endfor%}</ul> - </div> - - <h6 class="bottom-margin-0 inline-block"><button id="tags-drop-btn" class="btn btn-light btn-drop-menu">Tags</button></h6> - <div id="tags-drop-menu" class="dropmenu dropmenu-search"> - <div class="dropmenu-search-wrapper"> - <input class="search" autocapitalize="off" autocorrect="off" type="text" autocomplete="off" tabindex="-1" spellcheck="false" placeholder="Search..." id="tags-input" data-list="#tags-list" > - <!--<svg class="fa d-icon d-icon-search svg-icon filter-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#search"></use></svg>--> - </div> - <ul class="list dropmenu-list list-style-none notebook-list" id="tags-list">{% for object in tag_list %} - <li><a href="{{object.get_absolute_url}}">{{object.name}} - {{object.note_count}}</a></li> - {%endfor%}</ul> - </div> </div> {%comment%} <label for="choices-single-default">Default</label> <select class="form-control" data-trigger name="choices-single-default" id="choices-single-default" placeholder="This is a search placeholder"> @@ -73,3 +51,5 @@ </div>--> </main> {% endblock %} +{% block jsdomready %} +{% endblock %} |