From f9819158f5ccb508a39873bbef241f65f3f0b94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 6 Jun 2015 13:44:34 +0200 Subject: [PATCH] front of portal agent (#7497) --- data/themes/gadjo/static/css/agent-portal.css | 4 ++ data/themes/gadjo/static/js/agent-portal.js | 22 +++++++++++ data/themes/gadjo/static/js/publik.js | 2 + .../gadjo/templates/combo/manager_base.html | 38 ------------------- .../gadjo/templates/combo/page_template.html | 19 ++-------- data/themes/gadjo/templates/gadjo/base.html | 22 +++++++++++ 6 files changed, 53 insertions(+), 54 deletions(-) create mode 100644 data/themes/gadjo/static/js/agent-portal.js delete mode 100644 data/themes/gadjo/templates/combo/manager_base.html create mode 100644 data/themes/gadjo/templates/gadjo/base.html diff --git a/data/themes/gadjo/static/css/agent-portal.css b/data/themes/gadjo/static/css/agent-portal.css index a5864956..34ed7961 100644 --- a/data/themes/gadjo/static/css/agent-portal.css +++ b/data/themes/gadjo/static/css/agent-portal.css @@ -3,3 +3,7 @@ div.welcome { background: #fcfcfc; padding: 1ex; } + +div.textcell { + clear: both; +} diff --git a/data/themes/gadjo/static/js/agent-portal.js b/data/themes/gadjo/static/js/agent-portal.js new file mode 100644 index 00000000..15610f7d --- /dev/null +++ b/data/themes/gadjo/static/js/agent-portal.js @@ -0,0 +1,22 @@ +$(function() { + $(document).on('publik:environment-loaded', function(event, services) { + $(services.services).each(function(index, element) { + var $content = $('#portal-agent-content div.services-' + element.service_id); + if ($content.length === 0) { + $content = $('#portal-agent-content div.services'); + } + if ($content.find('ul.apps').length === 0) { + $('