diff farol/templates/vulnerability/view_involvement.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 2201d0ea0bf3
children
line wrap: on
line diff
--- a/farol/templates/vulnerability/view_involvement.j2	Tue Oct 14 10:36:58 2014 +0200
+++ b/farol/templates/vulnerability/view_involvement.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 %}{{ involvement.getTitle() }}{% endblock %}
 
 {% block i_content %}
-<a class="pull-right" href="{{ url_for('.edit_involvement', ordinal=ordinal, index=index) }}">edit</a>
+<div class="pull-right">{{ edit_button(url_for('.edit_involvement', ordinal=ordinal, index=index)) }}</div>
 <div class='page-header'>
   <h1>{{ involvement._party }} <small>{{ involvement._status }}</small></h1>
 </div>

http://farol.wald.intevation.org