+
+ {if count($tab_modules_list.installed)}
+
+ {foreach from=$tab_modules_list.installed item=module}
+ {include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
+ {/foreach}
+
+ {/if}
+
+
+ {if count($tab_modules_list.not_installed)}
+
+ {foreach from=$tab_modules_list.not_installed item=module}
+ {include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
+ {/foreach}
+
+ {/if}
+
diff --git a/admin-dev/themes/default/template/toolbar.tpl b/admin-dev/themes/default/template/toolbar.tpl
index 047edd34e..830a30ecf 100644
--- a/admin-dev/themes/default/template/toolbar.tpl
+++ b/admin-dev/themes/default/template/toolbar.tpl
@@ -42,12 +42,19 @@
{$btn.desc}
{if $k == 'modules-list'}
-
-
-

+
{/if}
@@ -137,7 +144,7 @@
function openModulesList()
{
- $('#modules_list_container').slideDown();
+ $('#modules_list_container').modal('show');
if (!modules_list_loaded)
{
$.ajax({
diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php
index 4260b0dce..0a0a97f87 100644
--- a/classes/controller/AdminController.php
+++ b/classes/controller/AdminController.php
@@ -1727,7 +1727,6 @@ class AdminControllerCore extends Controller
_PS_JS_DIR_.'ajax.js',
_PS_JS_DIR_.'toolbar.js',
));
-
//loads specific javascripts for the admin theme, bootstrap.js should be moved into /js root directory
$this->addJS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/bootstrap.js');
$this->addJS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/js/admin-theme.js');
@@ -2918,7 +2917,7 @@ class AdminControllerCore extends Controller
$module->logo = 'logo.gif';
if (file_exists('../modules/'.$module->name.'/logo.png'))
$module->logo = 'logo.png';
- $module->optionsHtml = $this->displayModuleOptions($module, $output_type);
+ $module->optionsHtml = $this->displayModuleOptions($module, $output_type, $back);
$link_admin_modules = $this->context->link->getAdminLink('AdminModules', true);
$module->options['install_url'] = $link_admin_modules.'&install='.urlencode($module->name).'&tab_module='.$module->tab.'&module_name='.$module->name.'&anchor=anchor'.ucfirst($module->name);
@@ -3003,7 +3002,7 @@ class AdminControllerCore extends Controller
if ($option['cond'])
{
if ($output_type == 'link')
- $return .= '
'.$option['text'].'';
+ $return .= '
'.$option['text'].'';
elseif ($output_type == 'array')
{
if (!is_array($return))
diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php
index 061cd2890..c4964d2e4 100644
--- a/controllers/admin/AdminModulesController.php
+++ b/controllers/admin/AdminModulesController.php
@@ -263,7 +263,7 @@ class AdminModulesControllerCore extends AdminController
}
if ($perm)
{
- $this->fillModuleData($module, 'select', $back);
+ $this->fillModuleData($module, 'array');
if ($module->id)
$modules_list['installed'][] = $module;
else