aboutsummaryrefslogtreecommitdiff
path: root/design/templates/notes/notebook_detail.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-01-09 13:29:17 -0600
committerluxagraf <sng@luxagraf.net>2019-01-09 13:29:17 -0600
commitbe0bb4e123240ac3ce02431b974c82f8f05d843b (patch)
treee2da7ac44be955ad5cbf32c0a35dc507ba63e844 /design/templates/notes/notebook_detail.html
parentd5f430d3e1e2b274d8d8f744251e8b6b4b72ebd9 (diff)
latest changes
Diffstat (limited to 'design/templates/notes/notebook_detail.html')
-rw-r--r--design/templates/notes/notebook_detail.html18
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>