diff options
Diffstat (limited to 'design/templates/notes/notebook_detail.html')
-rw-r--r-- | design/templates/notes/notebook_detail.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/design/templates/notes/notebook_detail.html b/design/templates/notes/notebook_detail.html index 73c13ab..37c8f8a 100644 --- a/design/templates/notes/notebook_detail.html +++ b/design/templates/notes/notebook_detail.html @@ -8,9 +8,9 @@ <main> <article class="note-container single-col"> <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%}> @@ -28,6 +28,9 @@ <input id="btn-js-hide" type="submit" class="btn sm" value="Save" > </form> <div class="edit-btn-wrapper"><a class="hide btn btn-hollow" id="edit-toggle-btn">Edit</a></div> + {%else%} + <h1 class="notebook-title" id="nb-title">{{object.name}}</h1> + {%endif%} </div> <form id="new-note-form" action="{% url 'notebook-api-list' %}" method="post" class="hide"> |