aboutsummaryrefslogtreecommitdiff
path: root/templates/note.twig
diff options
context:
space:
mode:
Diffstat (limited to 'templates/note.twig')
-rw-r--r--templates/note.twig15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/note.twig b/templates/note.twig
new file mode 100644
index 0000000..14989aa
--- /dev/null
+++ b/templates/note.twig
@@ -0,0 +1,15 @@
+{% extends "skeleton.twig" %}
+{% import "macros.twig" as macros %}
+{% block body %}
+ <form action="{{ url("n/%s", note.id) }}" method="post">
+ {{ macros.note_form_content(note) }}
+ <button type="submit">Save</button>
+ <button
+ type="submit"
+ name="delete"
+ value="delete"
+ class="confirm"
+ data-question="Do you really want to delete the note?"
+ >Delete</button>
+ </form>
+{% endblock %} \ No newline at end of file