aboutsummaryrefslogtreecommitdiff
path: root/templates/note.twig
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-02-07 09:44:59 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-02-07 09:44:59 +0100
commit2eb5a432d2229788ce2fdb09f36c6f4bebdea813 (patch)
treeab57978bdda34c82b025b897cfb6825b1fd1e654 /templates/note.twig
downloadmicropoly-2eb5a432d2229788ce2fdb09f36c6f4bebdea813.tar.gz
micropoly-2eb5a432d2229788ce2fdb09f36c6f4bebdea813.tar.bz2
micropoly-2eb5a432d2229788ce2fdb09f36c6f4bebdea813.zip
Initial commit
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