Mercurial > farol > farol
diff farol/templates/producttree/view_product.j2 @ 84:cc836f9e869e
Allow deletion of Products
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 14:26:59 +0200 |
parents | 4a9f23230eba |
children | e02724c84bae |
line wrap: on
line diff
--- a/farol/templates/producttree/view_product.j2 Thu Oct 09 14:26:33 2014 +0200 +++ b/farol/templates/producttree/view_product.j2 Thu Oct 09 14:26:59 2014 +0200 @@ -24,7 +24,7 @@ -#} {% extends "base.j2" %} -{% from "macros.j2" import panel %} +{% from "macros.j2" import panel, delete_button %} {% block title %}{{ product._name }}{% endblock %} {% set active = 'product' %} @@ -57,4 +57,5 @@ {% endfor %} </ul> </div> +<div class="pull-right">{{ delete_button(url_for('.del_product', productid=product._productid)) }}</div> {% endblock %}