From 4f1b7f16e4140989318421ccf081917d33666eec Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 26 May 2014 14:38:03 +0000 Subject: [PATCH] config/modules: prepare new view scripts The controller is still pointing to the former view script, it will soon be replaced by this ones. As soon as I created two forms handling enable/disable requests this will be completed. refs #4095 --- application/views/scripts/config/module.phtml | 56 +++++++++++++++++++ .../views/scripts/config/modules.phtml | 41 ++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 application/views/scripts/config/module.phtml create mode 100644 application/views/scripts/config/modules.phtml diff --git a/application/views/scripts/config/module.phtml b/application/views/scripts/config/module.phtml new file mode 100644 index 000000000..ceb14feb2 --- /dev/null +++ b/application/views/scripts/config/module.phtml @@ -0,0 +1,56 @@ +
+tabs ?> +
+
+ +translate('There is no such module installed.') ?> + +getDependencies(); +$restrictions = $module->getProvidedRestrictions(); +$permissions = $module->getProvidedPermissions(); + +?> +

escape($module->getTitle()) ?>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
escape('Name') ?>escape($module->getName()) ?>
escape('Version') ?>escape($module->getVersion()) ?>
escape('Description') ?>escape($module->getDescription())) ?>
escape('Dependencies') ?>translate('This module has no dependencies'); + +else: foreach ($dependencies as $name => $versionString): ?> +escape($name) ?>: escape($versionString) ?>
+
escape('Permissions') ?> +escape($permission->name) ?>: escape($permission->description) ?>
+
escape('Restrictions') ?> +escape($restriction->name) ?>: escape($restriction->description) ?>
+
+ +
diff --git a/application/views/scripts/config/modules.phtml b/application/views/scripts/config/modules.phtml new file mode 100644 index 000000000..b4210d4d4 --- /dev/null +++ b/application/views/scripts/config/modules.phtml @@ -0,0 +1,41 @@ +modules->limit(10); +$modules = $this->modules->paginate(); + +?> +
+tabs->render($this); ?> +
+ +
+

Installed Modules

+ +messageBox)): ?> + messageBox->render() ?> + + +paginationControl($modules, null, null, array( + 'preserve' => $this->preserve +)); +?> + + + + + + + + +
+ enabled): ?> + icon('success.png', 'Module is enabled') ?> + + icon('remove.png', 'Module is disabled') ?> + + escape($module->name); ?> + (enabled ? ($module->loaded ? 'enabled' : 'failed') : 'disabled' ?>) +
+