Mercurial > farol > farol
comparison farol/templates/vulnerability/view_remediation.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 | 0b64dc3f50eb |
children |
comparison
equal
deleted
inserted
replaced
104:0e0572780aff | 105:09915cbdf549 |
---|---|
22 # along with this program; if not, write to the Free Software | 22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | 23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
24 -#} | 24 -#} |
25 | 25 |
26 {% extends "vulnerability/base.j2" %} | 26 {% extends "vulnerability/base.j2" %} |
27 {% from "macros.j2" import label_value, panel, delete_button %} | 27 {% from "macros.j2" import label_value, panel, edit_button, delete_button %} |
28 {% block title %}{{ remediation.getTitle() }}{% endblock %} | 28 {% block title %}{{ remediation.getTitle() }}{% endblock %} |
29 | 29 |
30 {% block i_content %} | 30 {% block i_content %} |
31 <a class="pull-right" href="{{ url_for('.edit_remediation', ordinal=ordinal, index=index) }}">edit</a> | 31 <div class="pull-right">{{ edit_button(url_for('.edit_remediation', ordinal=ordinal, index=index)) }}</div> |
32 <div class='page-header'> | 32 <div class='page-header'> |
33 <h1>{{ remediation._type }}</h1> | 33 <h1>{{ remediation._type }}</h1> |
34 </div> | 34 </div> |
35 <div class="form-horizontal"> | 35 <div class="form-horizontal"> |
36 {{ label_value('Date', remediation._date or '') }} | 36 {{ label_value('Date', remediation._date or '') }} |
37 {{ label_value('Description', remediation._description) }} | 37 {{ label_value('Description', remediation._description) }} |
38 {{ label_value('Entitlement', remediation._entitlement or '') }} | 38 {{ label_value('Entitlement', remediation._entitlement or '') }} |
39 {{ label_value('URL', remediation._url | urlize) }} | 39 {{ label_value('URL', remediation._url | urlize) }} |
40 </div> | 40 </div> |
41 {% if remediation._productids or remediation._groupids %} | 41 {% if remediation._productids or remediation._groupids %} |
42 {% call panel(heading="Products (%d)" % remediation._productids | length, title=2) %} | 42 {% call panel(heading="Products", badge=remediation._productids | length, title=2) %} |
43 <ul> | 43 <ul> |
44 {% for productid in remediation._productids %} | 44 {% for productid in remediation._productids %} |
45 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ cvrf.getProductForID(productid)._name }}</a></li> | 45 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ cvrf.getProductForID(productid)._name }}</a></li> |
46 {% endfor %} | 46 {% endfor %} |
47 {% for groupid in remediation._groupids %} | 47 {% for groupid in remediation._groupids %} |