Librarian in regular requirements.
[redakcja.git] / apps / toolbar / templates / toolbar / button.html
index 8335918..cdffcaf 100644 (file)
@@ -1,13 +1,13 @@
-{% if button.link %}\r
-<a href="{{button.link}}" target="_new">\r
-{% endif %}\r
-<button type="button"\r
-        ui:action="{{ button.scriptlet_id }}"\r
-        ui:action-params="{{ button.params|escape }}"\r
-        {% if button.key %}ui:hotkey="{{ button.hotkey_code }}"{% endif %}\r
-        {% if button.tooltip %}title="{{ button.full_tooltip }}"{% endif %} >\r
-        {{ button.label|safe }}\r
-</button>\r
-{% if button.link %}\r
-</a>\r
+{% if button.link %}
+<a href="{{button.link}}" target="_blank">
+{% endif %}
+<button type="button"
+       data-ui-action="{{ button.scriptlet_id }}"
+       data-ui-action-params="{{ button.params|escape }}"
+       data-ui-accesskey="{{ button.accesskey }}"
+       {% if button.tooltip %}title="{{ button.full_tooltip }}"{% endif %} >
+       {{ button.label|safe }}
+</button>
+{% if button.link %}
+</a>
 {% endif %}
\ No newline at end of file