Mercurial > farol > farol
comparison farol/templates/producttree/view_product.j2 @ 87:e02724c84bae
Add deletion of (orphaned) relationships
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 15:16:30 +0200 |
parents | cc836f9e869e |
children | 09915cbdf549 |
comparison
equal
deleted
inserted
replaced
86:2d41121ec991 | 87:e02724c84bae |
---|---|
47 <ul><li>{{ type }}: <em>{{ name }}</em></li> | 47 <ul><li>{{ type }}: <em>{{ name }}</em></li> |
48 {% if loop.last %}{{ '</ul>' * loop.index }}{% endif %} | 48 {% if loop.last %}{{ '</ul>' * loop.index }}{% endif %} |
49 {% endfor %} | 49 {% endfor %} |
50 {% endcall %} | 50 {% endcall %} |
51 {% endif %} | 51 {% endif %} |
52 | |
52 <div> | 53 <div> |
53 <p>This product belong to the following groups:</p> | 54 <p>This product belong to the following groups:</p> |
54 <ul> | 55 <ul> |
55 {% for group in cvrf._producttree._groups if product._productid in group._productids %} | 56 {% for group in cvrf._producttree._groups if product._productid in group._productids %} |
56 <li>{{ group.getTitle() }}</li> | 57 <li>{{ group.getTitle() }}</li> |
58 {% else %} | |
59 <li><em>None</em></li> | |
57 {% endfor %} | 60 {% endfor %} |
58 </ul> | 61 </ul> |
59 </div> | 62 </div> |
60 <div class="pull-right">{{ delete_button(url_for('.del_product', productid=product._productid)) }}</div> | 63 <div class="pull-right">{{ delete_button(url_for('.del_product', productid=product._productid)) }}</div> |
61 {% endblock %} | 64 {% endblock %} |