Mercurial > farol > farol
diff farol/templates/vulnerability/view_threat.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 | 8e72f31d7392 |
children |
line wrap: on
line diff
--- a/farol/templates/vulnerability/view_threat.j2 Tue Oct 14 10:36:58 2014 +0200 +++ b/farol/templates/vulnerability/view_threat.j2 Tue Oct 14 14:36:31 2014 +0200 @@ -24,11 +24,11 @@ -#} {% extends "vulnerability/base.j2" %} -{% from "macros.j2" import panel, label_value, delete_button %} +{% from "macros.j2" import panel, label_value, edit_button, delete_button %} {% block title %}Edit {{ threat.getTitle() }}{% endblock %} {% block i_content %} -<a class="pull-right" href="{{ url_for('.edit_threat', ordinal=ordinal, index=index) }}">edit</a> +<div class="pull-right">{{ edit_button(url_for('.edit_threat', ordinal=ordinal, index=index)) }}</div> <div class='page-header'> <h1>{{ threat._type }}</h1> </div>