comparison farol/templates/macros.j2 @ 104:0e0572780aff

Make the delete_button be a real button, and not a danger label in an anchor
author Benoît Allard <benoit.allard@greenbone.net>
date Tue, 14 Oct 2014 10:36:58 +0200
parents 21a1a69b4525
children 09915cbdf549
comparison
equal deleted inserted replaced
103:8a9fdf02bf5b 104:0e0572780aff
184 {% endif %} 184 {% endif %}
185 </form> 185 </form>
186 {% endmacro %} 186 {% endmacro %}
187 187
188 {% macro delete_button(url, hiddens={}, text="delete") %} 188 {% macro delete_button(url, hiddens={}, text="delete") %}
189 {% call(selector) POST_button(url, text, hiddens) %} 189 {{ POST_button(url, text, hiddens, style="btn-danger btn-xs") }}
190 <a href="#" onclick="{{ selector }}.submit();return false;">
191 <span class="label label-danger">
192 <strong>{{ text }}</strong>
193 </span>
194 </a>
195 {% endcall %}
196 {% endmacro %} 190 {% endmacro %}

http://farol.wald.intevation.org