1 {% load toolbar_tags %}
2 <div class="toolbar" xmlns:ui="http://nowoczesnapolska.org.pl/platforma/ui">
4 <div class="toolbar-tabs-container">
6 {% for group in groups %}
7 <button ui:group="{{ group.slug }}" {% if forloop.first %}class="active"{% endif %}>
14 <div class="toolbar-button-groups-container">
15 {% for group in groups %}
16 <p ui:group="{{group.slug}}" class="toolbar-buttons-container" {% if not forloop.first %}style="display:none;"{% endif %}>
17 {# buttons for this group #}
18 {% for button in group.button_set.all %}
20 ui:action="{{ button.scriptlet.name }}"
21 ui:action-params="{{ button.params|escape }}"
22 {% if button.key %}ui:hotkey="{{ button.key|keycode }}"{% endif %}
23 {% if button.tooltip %}ui:tooltip="{{ button.tooltip }}"{% endif %} >
24 {{ button.label|safe }}