updated existing plugin interfaces, added basket actionbar plugin interface

This commit is contained in:
Florian BLOUET
2015-08-28 16:14:07 +02:00
committed by Benoît Burnichon
parent 41d9c18c04
commit 831436f6fe
5 changed files with 61 additions and 5 deletions

View File

@@ -58,6 +58,19 @@
<img src="/skins/icons/delete.png"/>
</button>
{% if app['plugin.workzone.basket.actionbar'].keys() is not empty %}
{% for pluginId in app['plugin.workzone.basket.actionbar'].keys() %}
{% for key,action in app['plugin.workzone.basket.actionbar'][pluginId].getBasketActionBar() %}
{% set label = action.label %}
<button class="ui-corner-all basket_window {{ action.classes|default('') }}" title="{% trans label app['plugin.workzone.basket.actionbar'][pluginId].PluginLocale %}">
<img src="{{ plugin_asset(app['plugin.workzone.basket.actionbar'][pluginId].PluginName,action.icon) }}"/>
</button>
{% endfor %}
{% endfor %}
{% endif %}
</div>
<div class="alert_datas_changed ui-corner-all">{{ 'Certaines donnees du panier ont change' | trans }} <a class="basket_refresher" href="#">{{ 'rafraichir' | trans }}</a></div>
{% if basket_length == 0 %}