From 3f82b4cc301d27f6a256a76c744bbbbeb4baa5cb Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 5 Jun 2020 22:21:09 +0200 Subject: Add button to create note and go back to new note form This improves the experience of quickly adding lots of notes --- templates/macros.twig | 1 + templates/new_note.twig | 3 +++ 2 files changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/macros.twig b/templates/macros.twig index 2c72334..2bc163a 100644 --- a/templates/macros.twig +++ b/templates/macros.twig @@ -74,6 +74,7 @@
{{ _self.note_form_content({}) }} +
{% endmacro %} \ No newline at end of file diff --git a/templates/new_note.twig b/templates/new_note.twig index df9a320..4655a6e 100644 --- a/templates/new_note.twig +++ b/templates/new_note.twig @@ -1,5 +1,8 @@ {% extends "skeleton.twig" %} {% import "macros.twig" as macros %} {% block body %} + {% if success %} +
Succcessfully created new note!
+ {% endif %} {{ macros.new_note() }} {% endblock %} \ No newline at end of file -- cgit v1.2.3-54-g00ecf