comparison farol/templates/vulnerability/view_acknowledgment.j2 @ 97:4ec281e68821

Add deletion of Vulnerability's Acknowledgments
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 09 Oct 2014 16:37:06 +0200
parents aad7db3f93b6
children 09915cbdf549
comparison
equal deleted inserted replaced
96:3848faa88cd5 97:4ec281e68821
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 %} 27 {% from "macros.j2" import label_value, delete_button %}
28 {% block title %}{{ acknowledgment.getTitle() }}{% endblock %} 28 {% block title %}{{ acknowledgment.getTitle() }}{% endblock %}
29 29
30 {% block i_content %} 30 {% block i_content %}
31 <a class="pull-right" href="{{ url_for('.edit_acknowledgment', ordinal=ordinal, index=index) }}">edit</a> 31 <a class="pull-right" href="{{ url_for('.edit_acknowledgment', ordinal=ordinal, index=index) }}">edit</a>
32 <div class='page-header'> 32 <div class='page-header'>
34 </div> 34 </div>
35 <div class="form-horizontal"> 35 <div class="form-horizontal">
36 {{ label_value('Description', acknowledgment._description or '') }} 36 {{ label_value('Description', acknowledgment._description or '') }}
37 {{ label_value('URL', (acknowledgment._url or '') | urlize) }} 37 {{ label_value('URL', (acknowledgment._url or '') | urlize) }}
38 </div> 38 </div>
39 <div class="pull-right">{{ delete_button(url_for('.del_acknowledgment', ordinal=ordinal, index=index)) }}</div>
39 {% endblock %} 40 {% endblock %}

http://farol.wald.intevation.org