Mercurial > farol > farol
diff farol/templates/macros.j2 @ 73:88adf067cae1
Fix delete urls
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 11:14:50 +0200 |
parents | 51825b0c4890 |
children | 21a1a69b4525 |
line wrap: on
line diff
--- a/farol/templates/macros.j2 Thu Oct 09 10:31:06 2014 +0200 +++ b/farol/templates/macros.j2 Thu Oct 09 11:14:50 2014 +0200 @@ -169,7 +169,7 @@ {% endif %} {% endmacro %} -{% macro delete_button(url, hiddens, text="delete") %} +{% macro delete_button(url, hiddens={}, text="delete") %} <form class="delete" action="{{ url }}" method="POST"> {% for elem in hiddens %} <input type=hidden name="{{ elem }}", value="{{ hiddens[elem] }}">