comparison 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
comparison
equal deleted inserted replaced
72:f9aa7b1e697e 73:88adf067cae1
167 {%- endfor %} 167 {%- endfor %}
168 </ul> 168 </ul>
169 {% endif %} 169 {% endif %}
170 {% endmacro %} 170 {% endmacro %}
171 171
172 {% macro delete_button(url, hiddens, text="delete") %} 172 {% macro delete_button(url, hiddens={}, text="delete") %}
173 <form class="delete" action="{{ url }}" method="POST"> 173 <form class="delete" action="{{ url }}" method="POST">
174 {% for elem in hiddens %} 174 {% for elem in hiddens %}
175 <input type=hidden name="{{ elem }}", value="{{ hiddens[elem] }}"> 175 <input type=hidden name="{{ elem }}", value="{{ hiddens[elem] }}">
176 {% endfor %} 176 {% endfor %}
177 <a href="#" onclick="parentNode.submit();return false;"> 177 <a href="#" onclick="parentNode.submit();return false;">

http://farol.wald.intevation.org