Save form now adds "stage finished" info correctly + some translations.
[redakcja.git] / apps / toolbar / templates / toolbar / toolbar.html
index dcc64a9..fd8be78 100644 (file)
@@ -1,19 +1,20 @@
 {% load toolbar_tags %}
-<div id="toolbar">
-    <ol id="toolbar-tabs">
-        {% for group in groups %}
-        <li p:button-list="{{ group.slug }}" {% if forloop.first %}class="active"{% endif %}>{{ group.name }}</li>
+<div class="toolbar">
+    <select name="button_group" id="toolbar-button-group-select" size="1">
+        {% for group in toolbar_groups %}
+        <option value="{{ group.slug }}" {% if forloop.first %}selected="selected"{% endif %}>{{ group.name }}</option>
         {% endfor %}
-    </ol>
-    <div style="clear: both; height: 0; width: 0">&nbsp;</div>
-    <div id="toolbar-buttons">
-        {% for group in groups %}
-        <ol id="{{ group.slug }}" {% if not forloop.first %}style="display:none"{% endif %}>
+    </select>
+
+    <div class="toolbar-button-groups-container">
+        {% for group in toolbar_groups %}
+        <div data-group="{{group.slug}}" class="toolbar-buttons-container">
+            {# buttons for this group #}
             {% for button in group.button_set.all %}
-            <li p:tag="{{ button.tag }}" {% if button.key %}p:key="{{ button.key|keycode }}" title="Ctrl+{{ button.key }}"{% endif %}>{{ button.label }}</li>
+            {% toolbar_button button %}
             {% endfor %}
-        </ol>
+        </div>
         {% endfor %}
-        <div style="clear: both; height: 0; width: 0">&nbsp;</div>
     </div>
-</div>
\ No newline at end of file
+    <div class="toolbar-end"></div>
+</div>