diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/macros.twig | 1 | ||||
-rw-r--r-- | templates/new_note.twig | 3 |
2 files changed, 4 insertions, 0 deletions
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 @@ <form action="{{ url("new-note") }}" method="post" enctype="multipart/form-data"> {{ _self.note_form_content({}) }} <button type="submit">Create</button> + <button type="submit" name="create_and_new" value="1">Create & New</button> </form> </section> {% 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 %} + <div class="success">Succcessfully created new note!</div> + {% endif %} {{ macros.new_note() }} {% endblock %}
\ No newline at end of file |