diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-24 13:40:07 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-24 13:40:07 -0500 |
commit | 1dc0faaf94b8ffcd93b303839133849bfeea0848 (patch) | |
tree | 16125a509af9a78f1463745a9595c7971592b9b3 /app/posts/templates | |
parent | e5c5a6c840456a46e894f765c5e438692c810d5d (diff) |
notes: moved templates from posts app
Diffstat (limited to 'app/posts/templates')
-rw-r--r-- | app/posts/templates/posts/note_form.html | 26 | ||||
-rw-r--r-- | app/posts/templates/posts/note_list.html | 15 |
2 files changed, 0 insertions, 41 deletions
diff --git a/app/posts/templates/posts/note_form.html b/app/posts/templates/posts/note_form.html deleted file mode 100644 index 10d81ac..0000000 --- a/app/posts/templates/posts/note_form.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'base.html' %} -{% block primary %} -<main role="main" class="archive-wrapper"> - <form action="" method="post" class="comment-form">{% csrf_token %} - {% for field in form %} - <fieldset> - - {%if field.name == "post" or field.name == "status" %}<span class="selector">{{field.label_tag}}</span>{%else%}{{field.label_tag}}{%endif%} - {%if field.name == "body_markdown"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%} - </fieldset> - <small class="alert">{% if field.errors %}{{field.errors}}{% endif %}</small> - {%endfor%} - <input type="submit" name="save" class="btn" value="Save" /> - </form> -</main> -{% endblock %} - {% block js %} - {% if is_update %}{%else%} -<script type="text/javascript"> -let params = new URL(document.location).searchParams; -document.getElementById('id_title').value = params.get("title"); -document.getElementById('id_url').value = params.get("url"); -document.getElementById('id_body_markdown').value = params.get("description"); -</script> -{% endif %} - {% endblock%} diff --git a/app/posts/templates/posts/note_list.html b/app/posts/templates/posts/note_list.html deleted file mode 100644 index c4d287c..0000000 --- a/app/posts/templates/posts/note_list.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} -{% block primary %} -<main class="post-detail"> - <div class="note-list">{% for object in object_list %}<article> - <h2>{%if object.url%}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%}<span class="note-edit"><a href="{{object.get_absolute_url}}">edit</a></span></h2> - <p>{{object.body_markdown}}</p> - <p class="small">For: <a href="/post/{{object.post.pk}}/notes">{{object.post}}</a></p> - </article> -{% endfor%}</div> -</main> - - -{% endblock %} -{% block js %} -{% endblock%} |