From 7552d33a8f6762878d0620bd1c309e0ac2d49178 Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Fri, 4 Sep 2015 17:42:01 +0200 Subject: [PATCH] PLUG-90 - fix workzone toggle state --- templates/web/prod/index.html.twig | 20 ++++++++++---------- templates/web/prod/tab_headers.html.twig | 2 +- www/skins/prod/jquery.WorkZone.js | 4 +--- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index c337f428c5..bff5ed5fb2 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -183,16 +183,6 @@ {% block tabs_panel %}
{% include 'prod/tab_headers.html.twig' %} - {% set workzone_plugins = app['plugin.workzone'] %} - {% set workzone_plugins_class = 'single-plugin' %} - {% if workzone_plugins.keys()|length > 1 %} - {% set workzone_plugins_class = 'multiple-plugin' %} - {% endif %} -
- {% for plugin in workzone_plugins.keys() %} - {% include workzone_plugins[plugin].getWorkzoneTemplate() with {'app': app, 'plugin_id': plugin} only %} - {% endfor %} -
{% import 'prod/WorkZone/Macros.html.twig' as WorkZoneMacros %} {{WorkZoneMacros.make_bloc(app, WorkZone)}} @@ -205,6 +195,16 @@ {% include 'prod/tab_thesaurus.html.twig' with {has_access_to_module: app.getAclForUser(app.getAuthenticatedUser()).has_access_to_module('thesaurus')} %} {% endif %} {% endblock %} + {% set workzone_plugins = app['plugin.workzone'] %} + {% set workzone_plugins_class = 'single-plugin' %} + {% if workzone_plugins.keys()|length > 1 %} + {% set workzone_plugins_class = 'multiple-plugin' %} + {% endif %} +
+ {% for plugin in workzone_plugins.keys() %} + {% include workzone_plugins[plugin].getWorkzoneTemplate() with {'app': app, 'plugin_id': plugin} only %} + {% endfor %} +