Mercurial > farol > farol
diff farol/templates/producttree/view.j2 @ 88:521c0ec35338
Add deletion of Groups
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 15:37:51 +0200 |
parents | e02724c84bae |
children | 0b9f19f51d79 |
line wrap: on
line diff
--- a/farol/templates/producttree/view.j2 Thu Oct 09 15:16:30 2014 +0200 +++ b/farol/templates/producttree/view.j2 Thu Oct 09 15:37:51 2014 +0200 @@ -84,7 +84,10 @@ {% call panel(heading="Groups", badge=producttree._groups | length, title=4) %} {% for group in producttree._groups %} {% call panel() %} - <a href="{{ url_for('.edit_group', groupid=group._groupid) }}" class="pull-right">edit</a> + <div class="pull-right"> + <a href="{{ url_for('.edit_group', groupid=group._groupid) }}"><span class="label label-default">edit</span></a> + {{ delete_button(url_for('.del_group', groupid=group._groupid)) }} + </div> <ul> {% for productid in group._productids %} {% with product = cvrf.getProductForID(productid) %}