From 6777c7b11933666187cef9f8a609d010c36ba2ff Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Sat, 18 Jul 2015 21:59:44 +0200 Subject: [PATCH] * [MOD] UI improvements on password view and download actions --- ajax/ajax_getContent.php | 1 + ajax/ajax_usrpass.php | 1 + inc/tpl/account.inc | 94 ++++++------ inc/tpl/backup.inc | 45 ++++-- inc/tpl/config.inc | 301 +++++++++++++++++++++------------------ inc/tpl/editpass.inc | 14 +- inc/tpl/encryption.inc | 54 +++---- inc/tpl/eventlog.inc | 2 +- inc/tpl/import.inc | 42 +++--- inc/tpl/install.inc | 61 +++----- inc/tpl/js-common.inc | 42 ++++++ inc/tpl/users.inc | 30 ++-- inc/tpl/userspass.inc | 10 +- web/MainC.class.php | 1 + 14 files changed, 371 insertions(+), 327 deletions(-) create mode 100644 inc/tpl/js-common.inc diff --git a/ajax/ajax_getContent.php b/ajax/ajax_getContent.php index cf856a6b..2991bd68 100644 --- a/ajax/ajax_getContent.php +++ b/ajax/ajax_getContent.php @@ -167,4 +167,5 @@ if (\SP\Session::getUserIsAdminApp() echo ''; } +$tpl->addTemplate('js-common'); $controller->view(); \ No newline at end of file diff --git a/ajax/ajax_usrpass.php b/ajax/ajax_usrpass.php index e9e1789f..6cfbcd88 100644 --- a/ajax/ajax_usrpass.php +++ b/ajax/ajax_usrpass.php @@ -45,4 +45,5 @@ $tpl = new SP\Template(); $tpl->assign('userId', $userId); $controller = new SP\Controller\UsersMgmtC($tpl); $controller->getUserPass(); +$tpl->addTemplate('js-common'); $controller->view(); \ No newline at end of file diff --git a/inc/tpl/account.inc b/inc/tpl/account.inc index 689fec56..b3b45d6c 100644 --- a/inc/tpl/account.inc +++ b/inc/tpl/account.inc @@ -407,47 +407,35 @@ @@ -457,22 +445,24 @@ \ No newline at end of file diff --git a/inc/tpl/backup.inc b/inc/tpl/backup.inc index 5ab38477..85f1eee9 100644 --- a/inc/tpl/backup.inc +++ b/inc/tpl/backup.inc @@ -19,9 +19,15 @@ - Backup BBDD - - - Backup + + Backup BBDD + + + + Backup + @@ -42,9 +48,11 @@ OnClick="configMgmt('backup');"/>
  • - + +

    +

  • @@ -71,7 +79,11 @@ - XML + + XML + @@ -82,6 +94,8 @@ + <?php echo _('Mostrar Clave'); ?> @@ -107,11 +121,15 @@ OnClick="configMgmt('export');"/>
  • - + +

    +

    +

    +

  • @@ -119,12 +137,13 @@ \ No newline at end of file diff --git a/inc/tpl/config.inc b/inc/tpl/config.inc index 46b0f5ed..2ac42d21 100644 --- a/inc/tpl/config.inc +++ b/inc/tpl/config.inc @@ -12,8 +12,9 @@ @@ -23,7 +24,8 @@ - /> + /> @@ -32,8 +34,9 @@ - - /> + + /> @@ -42,8 +45,9 @@ - - /> + + /> @@ -52,8 +56,9 @@ - - /> + + /> @@ -62,8 +67,9 @@ - - /> + + /> @@ -72,8 +78,9 @@ - - /> + + /> @@ -82,8 +89,9 @@ - - /> + + /> @@ -92,8 +100,9 @@ - - /> + + /> @@ -102,7 +111,8 @@ - + @@ -111,7 +121,8 @@ - /> + /> @@ -120,7 +131,8 @@ - /> + /> @@ -129,8 +141,9 @@ - - /> + + /> @@ -147,8 +160,9 @@ - - /> + + /> @@ -157,7 +171,8 @@ - + @@ -166,7 +181,8 @@ - + @@ -175,7 +191,7 @@ - + @@ -187,15 +203,16 @@ - + @@ -204,7 +221,8 @@ @@ -213,7 +231,8 @@ @@ -222,7 +241,10 @@ @@ -231,7 +253,8 @@ @@ -240,7 +263,8 @@ @@ -249,10 +273,12 @@ @@ -263,10 +289,12 @@ @@ -277,8 +305,9 @@ @@ -286,7 +315,8 @@ @@ -309,8 +339,9 @@ @@ -318,7 +349,7 @@ @@ -326,7 +357,7 @@ @@ -334,8 +365,9 @@ @@ -343,7 +375,7 @@ @@ -351,7 +383,9 @@ @@ -361,9 +395,9 @@ @@ -373,7 +407,7 @@ @@ -381,108 +415,103 @@
    - - /> + + />
    - /> + />
    - /> + />
    - /> + /> + <?php echo _('Mostrar Clave'); ?>
    - /> + />
    - /> + />
    - required> $name): ?> - + - required> $name): ?> - + - - /> + + />
    - +
    - - /> + + />
    - +
    - +
    - - /> + + />
    - +
    - + + <?php echo _('Mostrar Clave'); ?>
    - +
    - - /> + + />
    - - - - + + + + - - - + + +
    \ No newline at end of file diff --git a/inc/tpl/editpass.inc b/inc/tpl/editpass.inc index a5097563..4e4f2e61 100644 --- a/inc/tpl/editpass.inc +++ b/inc/tpl/editpass.inc @@ -59,17 +59,7 @@ echo $title['class']; ?>"> \ No newline at end of file diff --git a/inc/tpl/encryption.inc b/inc/tpl/encryption.inc index 52cc7bf0..faaab2fb 100644 --- a/inc/tpl/encryption.inc +++ b/inc/tpl/encryption.inc @@ -2,7 +2,7 @@
    +echo $encryption_tabIndex; ?>">
    @@ -26,6 +26,8 @@ echo $encryption_tabIndex;?>"> + <?php echo _('Mostrar Clave'); ?> @@ -34,6 +36,8 @@ echo $encryption_tabIndex;?>"> + <?php echo _('Mostrar Clave'); ?> @@ -76,7 +80,8 @@ echo $encryption_tabIndex;?>"> - + @@ -87,9 +92,11 @@ echo $encryption_tabIndex;?>"> OnClick="configMgmt('savempwd');"/>
  • - + +

    +

  • @@ -116,7 +123,7 @@ echo $encryption_tabIndex;?>"> $tempMasterMaxTime): ?> - + 0): echo date("r", $tempMasterMaxTime); ?> @@ -133,7 +140,8 @@ echo $encryption_tabIndex;?>"> - + @@ -144,7 +152,8 @@ echo $encryption_tabIndex;?>"> OnClick="configMgmt('gentmpass');"/>
  • - + +

    @@ -154,26 +163,17 @@ echo $encryption_tabIndex;?>">
  • \ No newline at end of file diff --git a/inc/tpl/eventlog.inc b/inc/tpl/eventlog.inc index 84143732..f3aead68 100644 --- a/inc/tpl/eventlog.inc +++ b/inc/tpl/eventlog.inc @@ -78,7 +78,7 @@
    - - \ No newline at end of file + \ No newline at end of file diff --git a/inc/tpl/js-common.inc b/inc/tpl/js-common.inc new file mode 100644 index 00000000..bcc237af --- /dev/null +++ b/inc/tpl/js-common.inc @@ -0,0 +1,42 @@ + diff --git a/inc/tpl/users.inc b/inc/tpl/users.inc index 4cc933d3..bbfed9e9 100644 --- a/inc/tpl/users.inc +++ b/inc/tpl/users.inc @@ -168,19 +168,21 @@ \ No newline at end of file diff --git a/inc/tpl/userspass.inc b/inc/tpl/userspass.inc index 763ec188..3cee2dfb 100644 --- a/inc/tpl/userspass.inc +++ b/inc/tpl/userspass.inc @@ -8,6 +8,8 @@ + <?php echo _('Mostrar Clave'); ?> @@ -35,10 +37,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/web/MainC.class.php b/web/MainC.class.php index 7d32e074..d256c21f 100644 --- a/web/MainC.class.php +++ b/web/MainC.class.php @@ -171,6 +171,7 @@ class MainC extends Controller implements ActionsInterface public function getInstaller() { $this->view->addTemplate('install'); + $this->view->addTemplate('js-common'); $this->view->addTemplate('footer'); $this->view->assign('modulesErrors', Util::checkModules());