diff options
Diffstat (limited to 'design/templates/notes/notebook_detail.html')
-rw-r--r-- | design/templates/notes/notebook_detail.html | 18 |
1 files changed, 3 insertions, 15 deletions
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 %} <main> <article class="note-container single-col"> + {% include "notes/partials/list_header.html" with notebook_list=notebook_list tag_list=tag_list %} <div class="flex-wrapper"> {% if object.name != 'Trash'%} <form id="nb-edit-form" action="{% url 'notebook-api-detail' object.pk %}" method="PATCH">{% csrf_token %} {{ form.non_field_errors }} <div class="flex-wrapper flex-inner"> {% for field in form %}{% if field.name == 'color_rgb' %} - <fieldset class="color-picker-fieldset" id="color-picker" {% if form.instance.color_rgb %}style="background-color: {{form.instance.color_rgb}}; border: none;"{%endif%}> - <input type="text" name="color_rgb" value="{{form.instance.color_rgb}}" maxlength="20" id="id_color_rgb"> + <fieldset class="color-picker-fieldset" id="color-picker" {% if object.color_rgb %}style="background-color: {{object.color_rgb}}; border: none;"{%endif%}> + <input type="text" name="color_rgb" value="{{object.color_rgb}}" maxlength="20" id="id_color_rgb"> {% if field.errors %}{{field.errors}}{% endif %} </fieldset>{% else %} <fieldset class="hide"> @@ -33,19 +34,6 @@ {%endif%} </div> - <form id="new-note-form" action="{% url 'notebook-api-list' %}" method="post" class="hide"> - <label>Create a new notebook</label> - {% csrf_token %} - {{ form.non_field_errors }} - {% for field in form %} - <fieldset class="" id="fs-{{field.name}}" > - {{field.label_tag}} - {{field}} - {% if field.errors %}{{field.errors}}{% endif %} - </fieldset> - {% endfor %} - <p><input id="btn-js-hide" class="btn btn-inline" value="create" type="submit" /></p> - </form> <ul class="list-note-preview">{% for object in object.note_set.all %} {% include "notes/partials/note_list.html" with object=object hidecolor=True hidenotebook=True %} {% endfor %}</ul> |