Mercurial > farol > farol
diff farol/templates/document/view_note.j2 @ 105:09915cbdf549
Unify the add / edit / delete buttons
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 14 Oct 2014 14:36:31 +0200 |
parents | 88adf067cae1 |
children |
line wrap: on
line diff
--- a/farol/templates/document/view_note.j2 Tue Oct 14 10:36:58 2014 +0200 +++ b/farol/templates/document/view_note.j2 Tue Oct 14 14:36:31 2014 +0200 @@ -24,11 +24,11 @@ -#} {% extends "base.j2" %} -{% from "macros.j2" import delete_button %} +{% from "macros.j2" import edit_button, delete_button %} {% block title %}{{ note._title }}{% endblock %} {% block content %} -<a class="pull-right" href="{{ url_for('.edit_note', ordinal=note._ordinal) }}">edit</a> +<div class="pull-right">{{ edit_button(url_for('.edit_note', ordinal=note._ordinal)) }}</div> <div class='page-header'> <h1>{{ note._title or '' }} <small>{{ note._type }} (#{{ note._ordinal }})</small></h1> </div>