Mercurial > farol > farol
comparison farol/templates/producttree/view.j2 @ 110:f68944a92b5e
Only allow producttree deletion if possible
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Wed, 15 Oct 2014 09:35:32 +0200 |
parents | 09915cbdf549 |
children | 1feed9a3156e |
comparison
equal
deleted
inserted
replaced
109:ce64f90e58c4 | 110:f68944a92b5e |
---|---|
112 {% if group._description %}<p class="small">{{ group._description }}</p>{% endif %} | 112 {% if group._description %}<p class="small">{{ group._description }}</p>{% endif %} |
113 {% endcall %} | 113 {% endcall %} |
114 {% endfor %} | 114 {% endfor %} |
115 <div class="pull-right">{{ add_button(url_for('.add_group')) }}</div> | 115 <div class="pull-right">{{ add_button(url_for('.add_group')) }}</div> |
116 {% endcall %} | 116 {% endcall %} |
117 <div class="pull-right">{{ delete_button(url_for('.delete'), text="delete whole Product Tree") }}</div> | 117 <div class="pull-right"> |
118 {% if cvrf.isProductTreeOrphan() %} | |
119 {{ delete_button(url_for('.delete'), text="delete whole Product Tree") }} | |
120 {% else %} | |
121 <p class="text-danger"><small>The Product Treecannot be deleted as some of its elements are referenced in the Document</small></p> | |
122 {% endif %} | |
123 </div> | |
118 {% endblock %} | 124 {% endblock %} |