Librarian in regular requirements.
[redakcja.git] / apps / toolbar / templates / toolbar / button.html
old mode 100755 (executable)
new mode 100644 (file)
index 6ed4c85..cdffcaf
@@ -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.name }}"\r
-        ui:action-params="{{ button.params|escape }}"\r
-        {% if button.key %}ui:hotkey="{{ button.hotkey_code }}"{% endif %}\r
-        {% if button.tooltip %}ui:tooltip="{{ button.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