mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 18:33:13 +00:00
Change Toolbar plugin buttons
This commit is contained in:
@@ -156,8 +156,8 @@
|
|||||||
</li>
|
</li>
|
||||||
{% if plugins.actionbar is not empty %}
|
{% if plugins.actionbar is not empty %}
|
||||||
{% for plugin in plugins.actionbar %}
|
{% for plugin in plugins.actionbar %}
|
||||||
{% for key, action in plugin.getActionBar().push|default([]) %}
|
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
|
{% for key, action in plugin.getActionBar().push|default([]) %}
|
||||||
<li>
|
<li>
|
||||||
<a class="results_window {{ action.classes|default('') }}">
|
<a class="results_window {{ action.classes|default('') }}">
|
||||||
{% if action.icon %}
|
{% if action.icon %}
|
||||||
@@ -189,6 +189,23 @@
|
|||||||
{{ 'Feedback' | trans }}
|
{{ 'Feedback' | trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if plugins.actionbar is not empty %}
|
||||||
|
{% for plugin in plugins.actionbar %}
|
||||||
|
<li class="divider"></li>
|
||||||
|
{% for key, action in plugin.getActionBar().push|default([]) %}
|
||||||
|
<li>
|
||||||
|
<a class="results_window {{ action.classes|default('') }}">
|
||||||
|
{% if action.icon %}
|
||||||
|
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% set label = action.label %}
|
||||||
|
{% trans from plugin.PluginLocale %}label{% endtrans %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
@@ -207,9 +224,68 @@
|
|||||||
{{ 'action : publier' | trans }}
|
{{ 'action : publier' | trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if plugins.actionbar is not empty %}
|
||||||
|
{% for plugin in plugins.actionbar %}
|
||||||
|
<li class="divider"></li>
|
||||||
|
{% for key, action in plugin.getActionBar().push|default([]) %}
|
||||||
|
<li>
|
||||||
|
<a class="results_window {{ action.classes|default('') }}">
|
||||||
|
{% if action.icon %}
|
||||||
|
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% set label = action.label %}
|
||||||
|
{% trans from plugin.PluginLocale %}label{% endtrans %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
{% elseif plugins.actionbar is not empty %}
|
||||||
|
<span class="dropdownButton">
|
||||||
|
<div class="btn-group">
|
||||||
|
{% set firstButton = true %}
|
||||||
|
{% for plugin in plugins.actionbar %}
|
||||||
|
{% for key, action in plugin.getActionBar().push|default([]) %}
|
||||||
|
{% if firstButton %}
|
||||||
|
<button class="default_action results_window btn btn-inverse">
|
||||||
|
<a class="results_window {{ action.classes|default('') }}">
|
||||||
|
{% if action.icon %}
|
||||||
|
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||||
|
{% endif %}
|
||||||
|
{% set label = action.label %}
|
||||||
|
{% trans from plugin.PluginLocale %}label{% endtrans %}
|
||||||
|
</a>
|
||||||
|
</button>
|
||||||
|
{% if not (loop.last and loop.parent.loop.last) %}
|
||||||
|
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="submenu dropdown-menu">
|
||||||
|
{% endif %}
|
||||||
|
{% if not loop.first %}<li class="divider"></li>{% endif %}
|
||||||
|
{% if not firstButton %}
|
||||||
|
<li>
|
||||||
|
<a class="results_window {{ action.classes|default('') }}">
|
||||||
|
{% if action.icon %}
|
||||||
|
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||||
|
{% endif %}
|
||||||
|
{% set label = action.label %}
|
||||||
|
{% trans from plugin.PluginLocale %}label{% endtrans %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% else %}
|
||||||
|
{% set firstButton = false %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if not firstButton %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if acl.has_right('doctools') %}
|
{% if acl.has_right('doctools') %}
|
||||||
|
|||||||
Reference in New Issue
Block a user