diff options
Diffstat (limited to 'design/templates/notes/notebook_create.html')
-rw-r--r-- | design/templates/notes/notebook_create.html | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/design/templates/notes/notebook_create.html b/design/templates/notes/notebook_create.html index 8ffc94a..1386946 100644 --- a/design/templates/notes/notebook_create.html +++ b/design/templates/notes/notebook_create.html @@ -2,6 +2,7 @@ {% block extrastyles %} <link rel="stylesheet" href="/media/quill.snow.css" /> +<script async src="/media/js/vanilla-picker.min.js"></script> {% endblock %} {% block content %} <main> @@ -10,34 +11,23 @@ {% csrf_token %} {{ form.non_field_errors }} {% for field in form %} -<fieldset class="{% if field.errors %}error {%endif%}{% if field.name == 'body_qjson' or field.name == 'body_html' %}hide {%endif%}" id="fs-{{field.name}}" > +<fieldset class="{% if field.errors %}error {%endif%}{% if field.name == 'color_hex' %}hide {%endif%}" id="fs-{{field.name}}" > {{field.label_tag}} {{field}} {% if field.errors %}{{field.errors}}{% endif %} </fieldset> {% endfor %} +<p id="color-picker"><a href="#">Pick color</a></p> <p><input class="btn btn-inline" value="create" type="submit" /></p> </form> <ul>{% for object in notebook_list %} <li> - <a href="{% url 'notes:notebook-detail' user.username object.slug %}"><i class="icon-notebook"> </i>{{object.name}}</a> + <a href="{% url 'notebooks:detail' object.slug %}"><i class="icon-notebook"> </i>{{object.name}}</a> </li> {%endfor%}</ul> </article> <aside class="note-list-container"> - <div class="svg-wrapper"><svg class="svg-icon-arrow"> - <svg viewBox="0 0 16 13" id="shape-double-arrow" width="100%" height="100%"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square"><g id="Showing-post-info" transform="translate(-297.000000, -105.000000)" stroke="currentColor"><g transform="translate(305.000000, 111.500000) scale(-1, 1) rotate(-180.000000) translate(-305.000000, -111.500000) translate(297.000000, 105.000000)"><path d="M2.20710678,6.5 L6.85355339,1.85355339 L7.20710678,1.5 L6.5,0.792893219 L6.14644661,1.14644661 L1.14644661,6.14644661 L1.05805826,6.23483496 L0.792893219,6.5 L1.14644661,6.85355339 L6.14644661,11.8535534 L6.5,12.2071068 L7.20710678,11.5 L6.85355339,11.1464466 L2.20710678,6.5 Z" id="Combined-Shape"></path><path d="M10.2071068,6.5 L14.8535534,1.85355339 L15.2071068,1.5 L14.5,0.792893219 L14.1464466,1.14644661 L9.14644661,6.14644661 L9.05805826,6.23483496 L8.79289322,6.5 L9.14644661,6.85355339 L14.1464466,11.8535534 L14.5,12.2071068 L15.2071068,11.5 L14.8535534,11.1464466 L10.2071068,6.5 Z" id="Combined-Shape"></path></g></g></g></svg> - </svg></div> - <div class=""> - <ul class="list-note-preview">{% for obj in notes_list %} - <li> - <a href="{% url 'notes:note-detail' user.username obj.slug %}"> - <h4>{{obj.title}}</h4> - <div class="note-preview">{{obj.body_text|truncatewords:12}}</div> - </a> - </li> - {% endfor %}</ul> - </div> + {% include "notes/partials/note_sidebar.html" with note_list=note_list %} </aside> <div class="balance-container"> </div> |