Mercurial > farol
changeset 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 | 8a9fdf02bf5b |
children | 09915cbdf549 |
files | farol/templates/macros.j2 |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/templates/macros.j2 Tue Oct 14 10:36:12 2014 +0200 +++ b/farol/templates/macros.j2 Tue Oct 14 10:36:58 2014 +0200 @@ -186,11 +186,5 @@ {% endmacro %} {% macro delete_button(url, hiddens={}, text="delete") %} - {% call(selector) POST_button(url, text, hiddens) %} - <a href="#" onclick="{{ selector }}.submit();return false;"> - <span class="label label-danger"> - <strong>{{ text }}</strong> - </span> - </a> - {% endcall %} + {{ POST_button(url, text, hiddens, style="btn-danger btn-xs") }} {% endmacro %}