aboutsummaryrefslogtreecommitdiff
path: root/design/templates/notes/notebook_create.html
blob: 138694641af25f273b3292881694e5455a1f780c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends 'base.html' %}

{% block extrastyles %}
<link rel="stylesheet" href="/media/quill.snow.css" />
<script async src="/media/js/vanilla-picker.min.js"></script>
{% endblock %}
{% block content %}
<main>
    <article class="note-container">
    <form id="new-notebook-form" action="{% url 'notebook-api-list' %}" method="post">
{% csrf_token %}
{{ form.non_field_errors }}
{% for field in form %}
<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 'notebooks:detail' object.slug %}"><i class="icon-notebook"> </i>{{object.name}}</a>
        </li>
        {%endfor%}</ul>
    </article>
    <aside class="note-list-container">
        {% include "notes/partials/note_sidebar.html" with note_list=note_list %}
    </aside>
    <div class="balance-container">
    </div>
</main>
{% endblock %}