From 0c2a092e8d8ad33a1c306ee9efca0da96eb56415 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 24 Nov 2018 22:29:02 -0600 Subject: way to much for a single commit --- design/templates/notes/create.html | 18 -------- design/templates/notes/notes_create.html | 52 +++++++++++++++++++++ design/templates/notes/notes_detail.html | 78 ++++++++++++++++++++++++++++++++ design/templates/notes/notes_list.html | 2 +- 4 files changed, 131 insertions(+), 19 deletions(-) delete mode 100644 design/templates/notes/create.html create mode 100644 design/templates/notes/notes_create.html create mode 100644 design/templates/notes/notes_detail.html (limited to 'design/templates/notes') diff --git a/design/templates/notes/create.html b/design/templates/notes/create.html deleted file mode 100644 index 3bd765d..0000000 --- a/design/templates/notes/create.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'base.html' %} -{% block content %} -
-

Create a new note

-
-{% csrf_token %} -{{ form.non_field_errors }} -{% for field in form %} -
-{{field.label_tag}} -{{field}} -{% if field.errors %}{{field.errors}}{% endif %} -
-{% endfor %} -

-
-
-{% endblock %} diff --git a/design/templates/notes/notes_create.html b/design/templates/notes/notes_create.html new file mode 100644 index 0000000..9bbdb26 --- /dev/null +++ b/design/templates/notes/notes_create.html @@ -0,0 +1,52 @@ +{% extends 'base.html' %} + +{% block extrastyles %} + +{% endblock %} +{% block content %} +
+

Create a new note

+
+{% csrf_token %} +{{ form.non_field_errors }} +{% for field in form %} +
+{{field.label_tag}} +{{field}} +{% if field.errors %}{{field.errors}}{% endif %} +
+{% if field.name == 'body_qjson' %} +
+
+
+{% endif %} +{% endfor %} +

+
+
+{% endblock %} + +{% block jsinclude %} + + +{% endblock %} + + diff --git a/design/templates/notes/notes_detail.html b/design/templates/notes/notes_detail.html new file mode 100644 index 0000000..bf46ab8 --- /dev/null +++ b/design/templates/notes/notes_detail.html @@ -0,0 +1,78 @@ +{% extends 'base.html' %} +{% block extrastyles %} + +{% endblock %} +{% block breadcrumbs %} +
  • Notes
  • +{% endblock %} + +{% block content %} +
    +
    +
    + +
    +

    {{object.date_created|date:"M d, Y"}}

    + {% if object.url %}

    SourceArchive

    {% endif %} +
    +
    +

    {{object.title}}

    +
    {% if object.body_html %}{{object.body_html|safe}}{%else%}{{object.body_text}}{%endif%}
    +
    {% csrf_token %} + {% for field in form %}{% if field.name in "title body_text" %} +
    {{field}}
    + {% endif%}{% endfor %} + +
    +
    + +
    +{% endblock %} + +{% block jsinclude %} + + +{% endblock %} + + +'indent +'align +'direction +'code-block diff --git a/design/templates/notes/notes_list.html b/design/templates/notes/notes_list.html index 4451588..8066369 100644 --- a/design/templates/notes/notes_list.html +++ b/design/templates/notes/notes_list.html @@ -3,7 +3,7 @@

    Notes

    {% endblock %} -- cgit v1.2.3