changeset 71:51825b0c4890

Improve design of the delete_button
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 09 Oct 2014 10:24:56 +0200
parents 727c01e8e3e9
children f9aa7b1e697e
files farol/templates/macros.j2
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/farol/templates/macros.j2	Thu Oct 09 10:12:24 2014 +0200
+++ b/farol/templates/macros.j2	Thu Oct 09 10:24:56 2014 +0200
@@ -170,14 +170,14 @@
 {% endmacro %}
 
 {% macro delete_button(url, hiddens, text="delete") %}
-<form class="delete" role="button" action="{{ url }}" method="POST">
+<form class="delete" action="{{ url }}" method="POST">
   {% for elem in hiddens %}
   <input type=hidden name="{{ elem }}", value="{{ hiddens[elem] }}">
   {% endfor %}
-  <button type="submit" class="btn btn-link btn-xs">
+  <a href="#" onclick="parentNode.submit();return false;">
     <span class="label label-danger">
       <strong>{{ text }}</strong>
     </span>
-  </button>
+  </a>
 </form>
 {% endmacro %}

http://farol.wald.intevation.org