diff farol/templates/vulnerability/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 e558238cfdb2
children
line wrap: on
line diff
--- a/farol/templates/vulnerability/view_note.j2	Tue Oct 14 10:36:58 2014 +0200
+++ b/farol/templates/vulnerability/view_note.j2	Tue Oct 14 14:36:31 2014 +0200
@@ -24,11 +24,11 @@
 -#}
 
 {% extends "vulnerability/base.j2" %}
-{% from "macros.j2" import delete_button %}
+{% from "macros.j2" import edit_button, delete_button %}
 {% block title %}{{ note._title }}{% endblock %}
 
 {% block i_content %}
-<a class="pull-right" href="{{ url_for('.edit_note', ordinal=ordinal, note_ordinal=note._ordinal) }}">edit</a>
+<div class="pull-right">{{ edit_button(url_for('.edit_note', ordinal=ordinal, note_ordinal=note._ordinal)) }}</div>
 <div class='page-header'>
   <h1>{{ note._title or '' }} <small>{{ note._type }} (#{{ note._ordinal }})</small></h1>
 </div>

http://farol.wald.intevation.org