mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [MOD] UI tweaks for improving the context help displaying for the options.
* [MOD] Improved user tab. * [ADD] Added usage detail for users
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -52,13 +52,13 @@ class ConfigAccountController extends SimpleControllerBase
|
||||
$eventMessage = EventMessage::factory();
|
||||
|
||||
// Accounts
|
||||
$configData->setGlobalSearch(Request::analyzeBool('account_globalsearch', false));
|
||||
$configData->setAccountPassToImage(Request::analyzeBool('account_passtoimage', false));
|
||||
$configData->setAccountLink(Request::analyzeBool('account_link', false));
|
||||
$configData->setAccountFullGroupAccess(Request::analyzeBool('account_fullgroup_access', false));
|
||||
$configData->setGlobalSearch(Request::analyzeBool('account_globalsearch_enabled', false));
|
||||
$configData->setAccountPassToImage(Request::analyzeBool('account_passtoimage_enabled', false));
|
||||
$configData->setAccountLink(Request::analyzeBool('account_link_enabled', false));
|
||||
$configData->setAccountFullGroupAccess(Request::analyzeBool('account_fullgroup_access_enabled', false));
|
||||
$configData->setAccountCount(Request::analyzeInt('account_count', 10));
|
||||
$configData->setResultsAsCards(Request::analyzeBool('account_resultsascards', false));
|
||||
$configData->setAccountExpireEnabled(Request::analyzeBool('account_expire', false));
|
||||
$configData->setResultsAsCards(Request::analyzeBool('account_resultsascards_enabled', false));
|
||||
$configData->setAccountExpireEnabled(Request::analyzeBool('account_expire_enabled', false));
|
||||
$configData->setAccountExpireTime(Request::analyzeInt('account_expire_time', 10368000) * 24 * 3600);
|
||||
|
||||
// Files
|
||||
@@ -85,13 +85,13 @@ class ConfigAccountController extends SimpleControllerBase
|
||||
}
|
||||
|
||||
// Public Links
|
||||
$pubLinksEnabled = Request::analyzeBool('publinks_enabled', false);
|
||||
$pubLinksEnabled = Request::analyzeBool('publiclinks_enabled', false);
|
||||
|
||||
if ($pubLinksEnabled === true) {
|
||||
$configData->setPublinksEnabled(true);
|
||||
$configData->setPublinksImageEnabled(Request::analyzeBool('publinks_image_enabled', false));
|
||||
$configData->setPublinksMaxTime(Request::analyzeInt('publinks_maxtime', 10) * 60);
|
||||
$configData->setPublinksMaxViews(Request::analyzeInt('publinks_maxviews', 3));
|
||||
$configData->setPublinksImageEnabled(Request::analyzeBool('publiclinks_image_enabled', false));
|
||||
$configData->setPublinksMaxTime(Request::analyzeInt('publiclinks_maxtime', 10) * 60);
|
||||
$configData->setPublinksMaxViews(Request::analyzeInt('publiclinks_maxviews', 3));
|
||||
|
||||
if ($configData->isPublinksEnabled() === false) {
|
||||
$eventMessage->addDescription(__u('Enlaces públicos habilitados'));
|
||||
|
||||
@@ -63,11 +63,11 @@ class ConfigEncryptionController extends SimpleControllerBase
|
||||
{
|
||||
$mastePassService = $this->dic->get(MasterPassService::class);
|
||||
|
||||
$currentMasterPass = Request::analyzeEncrypted('curMasterPwd');
|
||||
$newMasterPass = Request::analyzeEncrypted('newMasterPwd');
|
||||
$newMasterPassR = Request::analyzeEncrypted('newMasterPwdR');
|
||||
$confirmPassChange = Request::analyzeBool('confirmPassChange', false);
|
||||
$noAccountPassChange = Request::analyzeBool('chkNoAccountChange', false);
|
||||
$currentMasterPass = Request::analyzeEncrypted('current_masterpass');
|
||||
$newMasterPass = Request::analyzeEncrypted('new_masterpass');
|
||||
$newMasterPassR = Request::analyzeEncrypted('new_masterpass_repeat');
|
||||
$confirmPassChange = Request::analyzeBool('confirm_masterpass_change', false);
|
||||
$noAccountPassChange = Request::analyzeBool('no_account_change', false);
|
||||
$taskId = Request::analyzeString('taskId');
|
||||
|
||||
if (!$mastePassService->checkUserUpdateMPass($this->session->getUserData()->getLastUpdateMPass())) {
|
||||
@@ -185,10 +185,10 @@ class ConfigEncryptionController extends SimpleControllerBase
|
||||
{
|
||||
try {
|
||||
$temporaryMasterPassService = $this->dic->get(TemporaryMasterPassService::class);
|
||||
$key = $temporaryMasterPassService->create(Request::analyzeInt('tmpass_maxtime', 3600));
|
||||
$key = $temporaryMasterPassService->create(Request::analyzeInt('temporary_masterpass_maxtime', 3600));
|
||||
|
||||
$groupId = Request::analyzeInt('tmpass_group');
|
||||
$sendEmail = Request::analyzeBool('tmpass_chkSendEmail');
|
||||
$groupId = Request::analyzeInt('temporary_masterpass_group');
|
||||
$sendEmail = Request::analyzeBool('temporary_masterpass_email');
|
||||
|
||||
if ($this->configData->isMailEnabled() && $sendEmail && $groupId) {
|
||||
$mailMessage = new MailMessage();
|
||||
|
||||
@@ -55,11 +55,11 @@ class ConfigGeneralController extends SimpleControllerBase
|
||||
$siteTheme = Request::analyzeString('sitetheme', 'material-blue');
|
||||
$sessionTimeout = Request::analyzeInt('session_timeout', 300);
|
||||
$httpsEnabled = Request::analyzeBool('https_enabled', false);
|
||||
$debugEnabled = Request::analyzeBool('debug', false);
|
||||
$maintenanceEnabled = Request::analyzeBool('maintenance', false);
|
||||
$checkUpdatesEnabled = Request::analyzeBool('updates', false);
|
||||
$checkNoticesEnabled = Request::analyzeBool('notices', false);
|
||||
$encryptSessionEnabled = Request::analyzeBool('encryptsession', false);
|
||||
$debugEnabled = Request::analyzeBool('debug_enabled', false);
|
||||
$maintenanceEnabled = Request::analyzeBool('maintenance_enabled', false);
|
||||
$checkUpdatesEnabled = Request::analyzeBool('check_updates_enabled', false);
|
||||
$checkNoticesEnabled = Request::analyzeBool('check_notices_enabled', false);
|
||||
$encryptSessionEnabled = Request::analyzeBool('encrypt_session_enabled', false);
|
||||
|
||||
$configData->setSiteLang($siteLang);
|
||||
$configData->setSiteTheme($siteTheme);
|
||||
|
||||
@@ -121,7 +121,7 @@ class ConfigLdapController extends SimpleControllerBase
|
||||
->setGroup(Request::analyzeString('ldap_group'))
|
||||
->setBindDn(Request::analyzeString('ldap_binduser'))
|
||||
->setBindPass(Request::analyzeEncrypted('ldap_bindpass'))
|
||||
->setAds(Request::analyzeBool('ldap_ads', false));
|
||||
->setAds(Request::analyzeBool('ldap_ads_enabled', false));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,8 +60,8 @@ class ConfigMailController extends SimpleControllerBase
|
||||
$mailPass = Request::analyzeEncrypted('mail_pass');
|
||||
$mailSecurity = Request::analyzeString('mail_security');
|
||||
$mailFrom = Request::analyzeEmail('mail_from');
|
||||
$mailRequests = Request::analyzeBool('mail_requestsenabled', false);
|
||||
$mailAuth = Request::analyzeBool('mail_authenabled', false);
|
||||
$mailRequests = Request::analyzeBool('mail_requests_enabled', false);
|
||||
$mailAuth = Request::analyzeBool('mail_auth_enabled', false);
|
||||
$mailRecipients = ConfigUtil::mailAddressesAdapter(Request::analyzeString('mail_recipients'));
|
||||
|
||||
// Valores para la configuración del Correo
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/**
|
||||
* sysPass
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
@@ -143,6 +143,24 @@ class UserController extends ControllerBase implements CrudControllerInterface
|
||||
if ($this->view->isView === true || $user->getLogin() === 'demo') {
|
||||
$this->view->assign('disabled', 'disabled');
|
||||
$this->view->assign('readonly', 'readonly');
|
||||
|
||||
$this->view->assign('usage', array_map(function ($value) {
|
||||
switch ($value->ref) {
|
||||
case 'Account':
|
||||
$value->icon = 'description';
|
||||
break;
|
||||
case 'UserGroup':
|
||||
$value->icon = 'group';
|
||||
break;
|
||||
case 'PublicLink':
|
||||
$value->icon = 'link';
|
||||
break;
|
||||
default:
|
||||
$value->icon = 'info_outline';
|
||||
}
|
||||
|
||||
return $value;
|
||||
}, $this->userService->getUsageForUser($userId)));
|
||||
} else {
|
||||
$this->view->assign('disabled');
|
||||
$this->view->assign('readonly');
|
||||
|
||||
@@ -90,12 +90,12 @@ class UserForm extends FormBase implements FormInterface
|
||||
$this->userData->setSsoLogin(Request::analyzeString('login_sso'));
|
||||
$this->userData->setEmail(Request::analyzeEmail('email'));
|
||||
$this->userData->setNotes(Request::analyzeString('notes'));
|
||||
$this->userData->setUserGroupId(Request::analyzeInt('groupid'));
|
||||
$this->userData->setUserProfileId(Request::analyzeInt('profileid'));
|
||||
$this->userData->setIsAdminApp(Request::analyzeBool('adminapp', false));
|
||||
$this->userData->setIsAdminAcc(Request::analyzeBool('adminacc', false));
|
||||
$this->userData->setUserGroupId(Request::analyzeInt('usergroup_id'));
|
||||
$this->userData->setUserProfileId(Request::analyzeInt('userprofile_id'));
|
||||
$this->userData->setIsAdminApp(Request::analyzeBool('adminapp_enabled', false));
|
||||
$this->userData->setIsAdminAcc(Request::analyzeBool('adminacc_enabled', false));
|
||||
$this->userData->setIsDisabled(Request::analyzeBool('disabled', false));
|
||||
$this->userData->setIsChangePass(Request::analyzeBool('changepass', false));
|
||||
$this->userData->setIsChangePass(Request::analyzeBool('changepass_enabled', false));
|
||||
$this->userData->setPass(Request::analyzeEncrypted('password'));
|
||||
}
|
||||
|
||||
|
||||
@@ -176,3 +176,17 @@
|
||||
label.mdl-switch {
|
||||
margin: .5em 0;
|
||||
}
|
||||
|
||||
.mdl-switch__box {
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.mdl-list__item--two-line {
|
||||
height: auto;
|
||||
min-height: 72px;
|
||||
}
|
||||
|
||||
.mdl-list__item--two-line .mdl-list__item-primary-content {
|
||||
height: auto;
|
||||
min-height: 36px;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
.mdl-button{margin:0 .3em}.fg-blue20{color:rgba(83,109,254,.2)}.fg-blue40{color:rgba(83,109,254,.4)}.fg-blue60{color:rgba(83,109,254,.6)}.fg-blue80{color:rgba(83,109,254,.8)}.fg-blue100{color:#536dfe}.mdl-button--fab.mdl-button--colored.bg-blue20{background-color:rgba(83,109,254,.2)}.mdl-button--fab.mdl-button--colored.bg-blue40{background-color:rgba(83,109,254,.4)}.mdl-button--fab.mdl-button--colored.bg-blue60{background-color:rgba(83,109,254,.6)}.mdl-button--fab.mdl-button--colored.bg-blue80{background-color:rgba(83,109,254,.8)}.mdl-button--fab.mdl-button--colored.bg-blue100{background-color:#536dfe}.fg-orange20{color:rgba(255,193,7,.2)}.fg-orange40{color:rgba(255,193,7,.4)}.fg-orange60{color:rgba(255,193,7,.6)}.fg-orange80{color:rgba(255,193,7,.8)}.fg-orange100{color:rgba(255,193,7,1)}.mdl-button--fab.mdl-button--colored.bg-orange20{background-color:rgba(255,193,7,.2)}.mdl-button--fab.mdl-button--colored.bg-orange40{background-color:rgba(255,193,7,.4)}.mdl-button--fab.mdl-button--colored.bg-orange60{background-color:rgba(255,193,7,.6)}.mdl-button--fab.mdl-button--colored.bg-orange80{background-color:rgba(255,193,7,.8)}.mdl-button--fab.mdl-button--colored.bg-orange100{background-color:rgba(255,193,7,1)}.fg-red20{color:rgba(244,67,54,.2)}.fg-red40{color:rgba(244,67,54,.4)}.fg-red60{color:rgba(244,67,54,.6)}.fg-red80{color:rgba(244,67,54,.8)}.fg-red100{color:#f44336}.mdl-button--fab.mdl-button--colored.bg-red20{background-color:rgba(244,67,54,.2)}.mdl-button--fab.mdl-button--colored.bg-red40{background-color:rgba(244,67,54,.4)}.mdl-button--fab.mdl-button--colored.bg-red60{background-color:rgba(244,67,54,.6)}.mdl-button--fab.mdl-button--colored.bg-red80{background-color:rgba(244,67,54,.8)}.mdl-button--fab.mdl-button--colored.bg-red100{background-color:#f44336}.fg-green20{color:rgba(0,150,136,.2)}.fg-green40{color:rgba(0,150,136,.4)}.fg-green60{color:rgba(0,150,136,.6)}.fg-green80{color:rgba(0,150,136,.8)}.fg-green100{color:#009688}.mdl-button--fab.mdl-button--colored.bg-green20{background-color:rgba(0,150,136,0.2)}.mdl-button--fab.mdl-button--colored.bg-green40{background-color:rgba(0,150,136,0.4)}.mdl-button--fab.mdl-button--colored.bg-green60{background-color:rgba(0,150,136,.6)}.mdl-button--fab.mdl-button--colored.bg-green80{background-color:rgba(0,150,136,.8)}.mdl-button--fab.mdl-button--colored.bg-green100{background-color:#009688}.mdl-tooltip{text-align:justify;max-width:400px}.mdl-switch--inline{display:inline;margin:0 1em}label.mdl-switch{margin:.5em 0}
|
||||
.mdl-button{margin:0 .3em}.fg-blue20{color:rgba(83,109,254,.2)}.fg-blue40{color:rgba(83,109,254,.4)}.fg-blue60{color:rgba(83,109,254,.6)}.fg-blue80{color:rgba(83,109,254,.8)}.fg-blue100{color:#536dfe}.mdl-button--fab.mdl-button--colored.bg-blue20{background-color:rgba(83,109,254,.2)}.mdl-button--fab.mdl-button--colored.bg-blue40{background-color:rgba(83,109,254,.4)}.mdl-button--fab.mdl-button--colored.bg-blue60{background-color:rgba(83,109,254,.6)}.mdl-button--fab.mdl-button--colored.bg-blue80{background-color:rgba(83,109,254,.8)}.mdl-button--fab.mdl-button--colored.bg-blue100{background-color:#536dfe}.fg-orange20{color:rgba(255,193,7,.2)}.fg-orange40{color:rgba(255,193,7,.4)}.fg-orange60{color:rgba(255,193,7,.6)}.fg-orange80{color:rgba(255,193,7,.8)}.fg-orange100{color:rgba(255,193,7,1)}.mdl-button--fab.mdl-button--colored.bg-orange20{background-color:rgba(255,193,7,.2)}.mdl-button--fab.mdl-button--colored.bg-orange40{background-color:rgba(255,193,7,.4)}.mdl-button--fab.mdl-button--colored.bg-orange60{background-color:rgba(255,193,7,.6)}.mdl-button--fab.mdl-button--colored.bg-orange80{background-color:rgba(255,193,7,.8)}.mdl-button--fab.mdl-button--colored.bg-orange100{background-color:rgba(255,193,7,1)}.fg-red20{color:rgba(244,67,54,.2)}.fg-red40{color:rgba(244,67,54,.4)}.fg-red60{color:rgba(244,67,54,.6)}.fg-red80{color:rgba(244,67,54,.8)}.fg-red100{color:#f44336}.mdl-button--fab.mdl-button--colored.bg-red20{background-color:rgba(244,67,54,.2)}.mdl-button--fab.mdl-button--colored.bg-red40{background-color:rgba(244,67,54,.4)}.mdl-button--fab.mdl-button--colored.bg-red60{background-color:rgba(244,67,54,.6)}.mdl-button--fab.mdl-button--colored.bg-red80{background-color:rgba(244,67,54,.8)}.mdl-button--fab.mdl-button--colored.bg-red100{background-color:#f44336}.fg-green20{color:rgba(0,150,136,.2)}.fg-green40{color:rgba(0,150,136,.4)}.fg-green60{color:rgba(0,150,136,.6)}.fg-green80{color:rgba(0,150,136,.8)}.fg-green100{color:#009688}.mdl-button--fab.mdl-button--colored.bg-green20{background-color:rgba(0,150,136,0.2)}.mdl-button--fab.mdl-button--colored.bg-green40{background-color:rgba(0,150,136,0.4)}.mdl-button--fab.mdl-button--colored.bg-green60{background-color:rgba(0,150,136,.6)}.mdl-button--fab.mdl-button--colored.bg-green80{background-color:rgba(0,150,136,.8)}.mdl-button--fab.mdl-button--colored.bg-green100{background-color:#009688}.mdl-tooltip{text-align:justify;max-width:400px}.mdl-switch--inline{display:inline;margin:0 1em}label.mdl-switch{margin:.5em 0}.mdl-switch__box{width:48px}.mdl-list__item--two-line{height:auto;min-height:72px}.mdl-list__item--two-line .mdl-list__item-primary-content{height:auto;min-height:36px}
|
||||
@@ -592,7 +592,9 @@ body.userpassreset {
|
||||
background-color: #fff8e1;
|
||||
border: 1px solid #ffca28; }
|
||||
|
||||
#content .data .user-list-action,
|
||||
#content .data .profile-list-action,
|
||||
#box-popup .user-list-action,
|
||||
#box-popup .profile-list-action {
|
||||
width: 75%;
|
||||
margin: 0 auto; }
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -515,6 +515,7 @@
|
||||
|
||||
#content .data,
|
||||
#box-popup {
|
||||
.user-list-action,
|
||||
.profile-list-action {
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
|
||||
@@ -39,22 +39,24 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_expire"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_expire">
|
||||
<p>
|
||||
<?php echo __('Habilita la caducidad de la clave de cuentas.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_expire">
|
||||
<input type="checkbox" id="account_expire"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_expire" <?php echo $configData->isAccountExpireEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Caducidad clave cuentas'); ?></span>
|
||||
</label>
|
||||
<ul class="config-accounts-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_expire_enabled">
|
||||
<input type="checkbox" id="account_expire_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_expire_enabled" <?php echo $configData->isAccountExpireEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Caducidad clave cuentas'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Habilita la caducidad de la clave de cuentas.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -72,115 +74,105 @@
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="account_expire_time" name="account_expire_time" type="number"
|
||||
pattern="[0-9]{1,3}" class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $configData->getAccountExpireTime() / 24 / 3600; ?>"/>
|
||||
value="<?php echo $configData->getAccountExpireTime() / 24 / 3600; ?>"/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="account_expire_time"><?php echo __('Tiempo caducidad (días)'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_link"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_link">
|
||||
<p>
|
||||
<?php echo __('Habilita el nombre de la cuenta de la búsqueda, como enlace a los detalles de la cuenta.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_link">
|
||||
<input type="checkbox" id="account_link"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_link" <?php echo $configData->isAccountLink() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Nombre de cuenta como enlace'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_globalsearch"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_globalsearch">
|
||||
<p>
|
||||
<?php echo __('Permite que todos los usuarios puedan realizar búsquedas en todas las cuentas, pero no pueden ver el contenido de las que no tienen permisos.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_globalsearch">
|
||||
<input type="checkbox" id="account_globalsearch"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_globalsearch" <?php echo $configData->isGlobalSearch() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Búsquedas globales'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_passtoimage"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_passtoimage">
|
||||
<p>
|
||||
<?php echo __('Generar una imagen con el texto de la clave de la cuenta.'); ?>
|
||||
</p>
|
||||
<ul class="config-accounts-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_link_enabled">
|
||||
<input type="checkbox" id="account_link_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_link_enabled" <?php echo $configData->isAccountLink() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<?php echo __('Util para entornos donde copiar la clave supone un riesgo de seguridad.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_passtoimage">
|
||||
<input type="checkbox" id="account_passtoimage"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_passtoimage"
|
||||
<?php echo $configData->isAccountPassToImage() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Imagen para mostrar clave'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_resultsascards"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_resultsascards">
|
||||
<p>
|
||||
<?php echo __('Muestra los resultados de búsqueda de cuentas en formato tarjeta.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_resultsascards">
|
||||
<input type="checkbox" id="account_resultsascards"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_resultsascards"
|
||||
<?php echo $configData->isResultsAsCards() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Resultados en Tarjetas'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-account_fullgroup_access"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-account_fullgroup_access">
|
||||
<p>
|
||||
<?php echo __('Habilita el acceso a los usuarios que estén incluidos en los grupos secundarios.'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __('Por defecto el usuario de un grupo secundario es permitido si el grupo secundario está establecido como el primario del usuario.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="account_fullgroup_access">
|
||||
<input type="checkbox" id="account_fullgroup_access"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="account_fullgroup_access"
|
||||
<?php echo $configData->isAccountFullGroupAccess() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Acceso Grupos Secundarios'); ?></span>
|
||||
</label>
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Nombre de cuenta como enlace'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Habilita el nombre de la cuenta de la búsqueda, como enlace a los detalles de la cuenta.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="account_globalsearch_enabled">
|
||||
<input type="checkbox" id="account_globalsearch_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_globalsearch_enabled" <?php echo $configData->isGlobalSearch() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Búsquedas globales'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Permite que todos los usuarios puedan realizar búsquedas en todas las cuentas, pero no pueden ver el contenido de las que no tienen permisos.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="account_passtoimage_enabled">
|
||||
<input type="checkbox" id="account_passtoimage_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_passtoimage_enabled" <?php echo $configData->isAccountPassToImage() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Imagen para mostrar clave'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Generar una imagen con el texto de la clave de la cuenta.'); ?>
|
||||
<br>
|
||||
<?php echo __('Util para entornos donde copiar la clave supone un riesgo de seguridad.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="account_resultsascards_enabled">
|
||||
<input type="checkbox" id="account_resultsascards_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_resultsascards_enabled" <?php echo $configData->isResultsAsCards() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Resultados en Tarjetas'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Muestra los resultados de búsqueda de cuentas en formato tarjeta.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="account_fullgroup_access_enabled">
|
||||
<input type="checkbox" id="account_fullgroup_access_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="account_fullgroup_access_enabled" <?php echo $configData->isAccountFullGroupAccess() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Acceso Grupos Secundarios'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita el acceso a los usuarios que estén incluidos en los grupos secundarios.'); ?>
|
||||
<br>
|
||||
<?php echo __('Por defecto el usuario de un grupo secundario es permitido si el grupo secundario está establecido como el primario del usuario.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -192,31 +184,48 @@
|
||||
|
||||
<table id="tblFiles" class="data tblConfig round">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-publinks"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-publinks">
|
||||
<p>
|
||||
<?php echo __('Habilita la posibilidad de generar enlaces públicos para ver los detalles de una cuenta.'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo __('Las cuentas enlazadas serán visibles por cualquiera que disponga del enlace.'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo __('Para crear enlaces, los usuarios tienen que tener activada la opción en su perfl.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="publinks_enabled">
|
||||
<input type="checkbox" id="publinks_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="publinks_enabled"
|
||||
<?php echo $configData->isPublinksEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar Enlaces Públicos'); ?></span>
|
||||
</label>
|
||||
<ul class="config-publiclinks-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="publiclinks_enabled">
|
||||
<input type="checkbox" id="publiclinks_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="publiclinks_enabled" <?php echo $configData->isPublinksEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar Enlaces Públicos'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita la posibilidad de generar enlaces públicos para ver los detalles de una cuenta.'); ?>
|
||||
<br>
|
||||
<?php echo __('Las cuentas enlazadas serán visibles por cualquiera que disponga del enlace.'); ?>
|
||||
<br>
|
||||
<?php echo __('Para crear enlaces, los usuarios tienen que tener activada la opción en su perfl.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="publiclinks_image_enabled">
|
||||
<input type="checkbox" id="publiclinks_image_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="publiclinks_image_enabled" <?php echo $configData->isPublinksImageEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Usar imagen para clave'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('La clave de la cuenta es visualizada como una imagen.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -225,12 +234,12 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="publinks_maxtime" name="publinks_maxtime" type="number" step="5"
|
||||
<input id="publiclinks_maxtime" name="publiclinks_maxtime" type="number" step="5"
|
||||
pattern="[0-9]{1,5}" class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
maxlength="5"
|
||||
value="<?php echo $configData->getPublinksMaxTime() / 60; ?>"/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="publinks_maxtime"><?php echo __('Tiempo de caducidad'); ?></label>
|
||||
for="publiclinks_maxtime"><?php echo __('Tiempo de caducidad'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -240,35 +249,15 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="publinks_maxviews" name="publinks_maxviews" type="number" step="1"
|
||||
<input id="publiclinks_maxviews" name="publiclinks_maxviews" type="number" step="1"
|
||||
pattern="[0-9]{1,5}" class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
maxlength="5"
|
||||
value="<?php echo $configData->getPublinksMaxViews(); ?>"/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="publinks_maxviews"><?php echo __('Número máximo de visitas'); ?></label>
|
||||
for="publiclinks_maxviews"><?php echo __('Número máximo de visitas'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-publinksimage"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-publinksimage">
|
||||
<p>
|
||||
<?php echo __('La clave de la cuenta es visualizada como una imagen.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="publinks_image_enabled">
|
||||
<input type="checkbox" id="publinks_image_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="publinks_image_enabled"
|
||||
<?php echo $configData->isPublinksImageEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Usar imagen para clave'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="title" class="titleNormal">
|
||||
@@ -278,23 +267,24 @@
|
||||
|
||||
<table id="tblFiles" class="data tblConfig">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-files"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-files">
|
||||
<p>
|
||||
<?php echo __('Habilita la subida/descarga de archivos para las cuentas.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="files_enabled">
|
||||
<input type="checkbox" id="files_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="files_enabled"
|
||||
<?php echo $configData->isFilesEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Gestión de archivos'); ?></span>
|
||||
</label>
|
||||
<ul class="config-accounts-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="files_enabled">
|
||||
<input type="checkbox" id="files_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="files_enabled" <?php echo $configData->isFilesEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Gestión de archivos'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Habilita la subida/descarga de archivos para las cuentas.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -306,11 +296,6 @@
|
||||
<p>
|
||||
<?php echo __('Extensiones permitidas para la subida de archivos.'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo __('Se permite un máximo de 4 caracteres.'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo __('Escribir extensión y pulsar intro para añadir. Es necesario guardar la configuración.'); ?>
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $icons \SP\Core\UI\ThemeIcons
|
||||
* @var $icons \SP\Core\UI\ThemeIcons
|
||||
* @var $configData \SP\Config\ConfigData
|
||||
*/ ?>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="curMasterPwd" name="curMasterPwd" type="password"
|
||||
<input id="current_masterpass" name="current_masterpass" type="password"
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400 passwordfield__input-show"
|
||||
maxlength="255" required/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="curMasterPwd"><?php echo __('Clave Maestra actual'); ?></label>
|
||||
for="current_masterpass"><?php echo __('Clave Maestra actual'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -47,11 +47,11 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="new-masterpassword" name="newMasterPwd" type="password"
|
||||
<input id="new_masterpass" name="new_masterpass" type="password"
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400 passwordfield__input"
|
||||
maxlength="255" required/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="newMasterPwd"><?php echo __('Nueva Clave Maestra'); ?></label>
|
||||
for="new_masterpass"><?php echo __('Nueva Clave Maestra'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -61,32 +61,14 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="new-masterpassword_repeat" name="newMasterPwdR" type="password"
|
||||
<input id="new_masterpass_repeat" name="new_masterpass_repeat" type="password"
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
maxlength="255" required/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="newMasterPwdR"><?php echo __('Nueva Clave Maestra (repetir)'); ?></label>
|
||||
for="new_masterpass_repeat"><?php echo __('Nueva Clave Maestra (repetir)'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-chkNoAccountChange"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-chkNoAccountChange">
|
||||
<p>
|
||||
<?php echo __('Establece una nueva clave maestra sin re-encriptar las cuentas'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="chkNoAccountChange">
|
||||
<input type="checkbox" id="chkNoAccountChange"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400" name="chkNoAccountChange"/>
|
||||
<span class="mdl-switch__label"><?php echo __('No modificar cuentas'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
@@ -105,12 +87,46 @@
|
||||
<div
|
||||
class="icon material-icons <?php echo $icons->getIconWarning()->getClass(); ?>"><?php echo $icons->getIconWarning()->getIcon(); ?></div>
|
||||
<strong><?php printf(__('Se van a actualizar %s cuentas. Este proceso puede tardar algo de tiempo.'), $numAccounts); ?></strong>
|
||||
<br>
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="confirmPassChange">
|
||||
<input type="checkbox" id="confirmPassChange" class="mdl-switch__input"
|
||||
name="confirmPassChange"/>
|
||||
<span class="mdl-switch__label"><?php echo __('Confirmar cambio'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<ul class="config-masterpass-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="no_account_change">
|
||||
<input type="checkbox" id="no_account_change"
|
||||
class="mdl-switch__input"
|
||||
name="no_account_change"/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('No modificar cuentas'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Establece una nueva clave maestra sin re-encriptar las cuentas'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="confirm_masterpass_change">
|
||||
<input type="checkbox" id="confirm_masterpass_change"
|
||||
class="mdl-switch__input"
|
||||
name="confirm_masterpass_change"/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Confirmar cambio'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Confirmar el cambio de clave maestra después de haber leído las advertencias anteriores.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -211,34 +227,36 @@
|
||||
</td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="tmpass_maxtime" name="tmpass_maxtime" type="number" step="600"
|
||||
<input id="temporary_masterpass_maxtime" name="temporary_masterpass_maxtime" type="number" step="600"
|
||||
pattern="[0-9]{2,6}" class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="3600"
|
||||
required/>
|
||||
<label class="mdl-textfield__label"
|
||||
for="tmpass_maxtime"><?php echo __('Validez (s)'); ?></label>
|
||||
for="temporary_masterpass_maxtime"><?php echo __('Validez (s)'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
|
||||
|
||||
<div id="help-chkSendEmail"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-chkSendEmail">
|
||||
<p>
|
||||
<?php echo __('Envía un correo a todos los usuarios o sólo a los del grupo seleccionado.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="tmpass_chkSendEmail">
|
||||
<input type="checkbox" id="tmpass_chkSendEmail"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="tmpass_chkSendEmail" <?php echo !$configData->isMailEnabled() ? 'disabled' : ''; ?> />
|
||||
<span class="mdl-switch__label"><?php echo __('Enviar correo'); ?></span>
|
||||
</label>
|
||||
<ul class="config-masterpass-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="temporary_masterpass_email">
|
||||
<input type="checkbox" id="temporary_masterpass_email"
|
||||
class="mdl-switch__input"
|
||||
name="temporary_masterpass_email" <?php echo !$configData->isMailEnabled() ? 'disabled' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Enviar correo'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Envía un correo a todos los usuarios o sólo a los del grupo seleccionado.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -248,7 +266,7 @@
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Grupo'); ?></div>
|
||||
|
||||
<select id="tmpass_group" name="tmpass_group"
|
||||
<select id="temporary_masterpass_group" name="temporary_masterpass_group"
|
||||
class="select-box select-box-deselect" <?php echo !$configData->isMailEnabled() ? 'disabled' : ''; ?>>
|
||||
<option value=""><?php echo __('Seleccionar Grupo'); ?></option>
|
||||
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $userGroups */
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="title" class="titleNormal">
|
||||
<i class="material-icons">verified_user</i>
|
||||
<?php echo __('Autentificación'); ?>
|
||||
@@ -7,24 +14,37 @@
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="authbasic_enabled">
|
||||
<input type="checkbox" id="authbasic_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="authbasic_enabled"
|
||||
<?php echo $configData->isAuthBasicEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Usar Auth Basic'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="authbasicautologin_enabled">
|
||||
<input type="checkbox" id="authbasicautologin_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="authbasicautologin_enabled"
|
||||
<?php echo $configData->isAuthBasicAutoLoginEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Usar auto-login con Auth Basic'); ?></span>
|
||||
</label>
|
||||
<ul class="config-auth-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="authbasic_enabled">
|
||||
<input type="checkbox" id="authbasic_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="authbasic_enabled" <?php echo $configData->isAuthBasicEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Usar Auth Basic'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Usar Auth Basic para autorizar los accesos a la aplicación.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="authbasicautologin_enabled">
|
||||
<input type="checkbox" id="authbasicautologin_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="authbasicautologin_enabled" <?php echo $configData->isAuthBasicAutoLoginEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Usar Auth Basic SSO'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Usar auto-login con Auth Basic.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/
|
||||
?>
|
||||
|
||||
@@ -12,46 +12,55 @@
|
||||
|
||||
<table id="tblEvents" class="data tblConfig">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-eventlog"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-eventlog">
|
||||
<p>
|
||||
<?php echo __('Guarda las acciones realizadas en la aplicación.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="log_enabled">
|
||||
<input type="checkbox" id="log_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="log_enabled"
|
||||
<?php echo $configData->isLogEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar log de eventos'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="syslog_enabled">
|
||||
<input type="checkbox" id="syslog_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="syslog_enabled"
|
||||
<?php echo $configData->isSyslogEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar Syslog'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="remotesyslog_enabled">
|
||||
<input type="checkbox" id="remotesyslog_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="remotesyslog_enabled"
|
||||
<?php echo $configData->isSyslogRemoteEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar Syslog Remoto'); ?></span>
|
||||
</label>
|
||||
<ul class="config-events-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="log_enabled">
|
||||
<input type="checkbox" id="log_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="log_enabled" <?php echo $configData->isLogEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar log de eventos'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Guarda las acciones realizadas en la aplicación.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="syslog_enabled">
|
||||
<input type="checkbox" id="syslog_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="syslog_enabled" <?php echo $configData->isSyslogEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar Syslog'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="remotesyslog_enabled">
|
||||
<input type="checkbox" id="remotesyslog_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="remotesyslog_enabled" <?php echo $configData->isSyslogRemoteEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar Syslog Remoto'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="title" class="titleNormal">
|
||||
<i class="material-icons">device_hub</i>
|
||||
<?php echo __('Proxy'); ?>
|
||||
@@ -7,12 +14,22 @@
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="proxy_enabled">
|
||||
<input type="checkbox" id="proxy_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="proxy_enabled"
|
||||
<?php echo $configData->isProxyEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Usar Proxy'); ?></span>
|
||||
</label>
|
||||
<ul class="config-proxy-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="proxy_enabled">
|
||||
<input type="checkbox" id="proxy_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="proxy_enabled" <?php echo $configData->isProxyEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Usar Proxy'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Usar proxy para comprobación de actualizaciones y notificaciones.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<?php /** @var $icons \SP\Core\UI\ThemeIcons */ ?>
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="title" class="titleNormal">
|
||||
<i class="material-icons">home</i>
|
||||
@@ -72,117 +77,102 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-https"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-https">
|
||||
<p>
|
||||
<?php echo __('Fuerza para que todas las conexiones sean a través de HTTPS.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="https_enabled">
|
||||
<input type="checkbox" id="https_enabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="https_enabled"
|
||||
<?php echo $configData->isHttpsEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Forzar HTTPS'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-debug"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-debug">
|
||||
<p>
|
||||
<?php echo __('Muestra información relativa a la configuración de la aplicación y rendimiento.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="debug">
|
||||
<input type="checkbox" id="debug" class="mdl-switch__input mdl-color-text--indigo-400" name="debug"
|
||||
<?php echo $configData->isDebug() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar depuración'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-maintenance"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-maintenance">
|
||||
<p>
|
||||
<?php echo __('En este modo no se puede acceder a la aplicación. Para deshabilitarlo es necesario modificar el archivo de configuración.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="maintenance">
|
||||
<input type="checkbox" id="maintenance" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="maintenance"
|
||||
<?php echo $configData->isMaintenance() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Modo mantenimiento'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-updates"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-updates">
|
||||
<p>
|
||||
<?php echo __('Comprobar actualizaciones de la aplicación (sólo para los usuarios administradores).'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="updates">
|
||||
<input type="checkbox" id="updates" class="mdl-switch__input mdl-color-text--indigo-400" name="updates"
|
||||
<?php echo $configData->isCheckUpdates() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Comprobar actualizaciones'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-notices"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-notices">
|
||||
<p>
|
||||
<?php echo __('Comprobar si existen notificaciones de seguridad o avisos de sysPass (sólo para los usuarios administradores).'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="notices">
|
||||
<input type="checkbox" id="notices" class="mdl-switch__input mdl-color-text--indigo-400" name="notices"
|
||||
<?php echo $configData->isChecknotices() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Comprobar notificaciones'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-encryptsession"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-encryptsession">
|
||||
<p>
|
||||
<?php echo __('Encriptar los datos de la sesión de PHP.'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __('Esta funcionalidad incrementa la seguridad de las sesiones de PHP ya que los datos almacenados no serán legibles.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="encryptsession">
|
||||
<input type="checkbox" id="encryptsession" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="encryptsession"
|
||||
<?php echo $configData->isEncryptSession() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Encriptar Sesión'); ?></span>
|
||||
</label>
|
||||
<ul class="config-site-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="https_enabled">
|
||||
<input type="checkbox" id="https_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="https_enabled" <?php echo $configData->isHttpsEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Forzar HTTPS'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Fuerza para que todas las conexiones sean a través de HTTPS.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="debug_enabled">
|
||||
<input type="checkbox" id="debug_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="debug_enabled" <?php echo $configData->isDebug() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar depuración'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Muestra información relativa a la configuración de la aplicación y rendimiento.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="maintenance_enabled">
|
||||
<input type="checkbox" id="maintenance_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="maintenance_enabled" <?php echo $configData->isMaintenance() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Modo mantenimiento'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('En este modo no se puede acceder a la aplicación. Para deshabilitarlo es necesario modificar el archivo de configuración.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="check_updates_enabled">
|
||||
<input type="checkbox" id="check_updates_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="check_updates_enabled" <?php echo $configData->isCheckUpdates() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Comprobar actualizaciones'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Comprobar actualizaciones de la aplicación (sólo para los usuarios administradores).'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="check_notices_enabled">
|
||||
<input type="checkbox" id="check_notices_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="check_notices_enabled" <?php echo $configData->isChecknotices() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Comprobar notificaciones'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Comprobar si existen notificaciones de seguridad o avisos de sysPass (sólo para los usuarios administradores).'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="encrypt_session_enabled">
|
||||
<input type="checkbox" id="encrypt_session_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="encrypt_session_enabled" <?php echo $configData->isEncryptSession() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Encriptar Sesión'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Encriptar los datos de la sesión de PHP.'); ?>
|
||||
<?php echo __('Esta funcionalidad incrementa la seguridad de las sesiones de PHP ya que los datos almacenados no serán legibles.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -66,10 +66,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<?php echo __('Archivo'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<td class="valField" colspan="2">
|
||||
<div class="lowres-title"><?php echo __('Archivo'); ?></div>
|
||||
|
||||
<div id="drop-import-files" class="round active-tooltip dropzone"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<?php /** @var $icons \SP\Core\UI\ThemeIcons */ ?>
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/ ?>
|
||||
|
||||
<?php if ($ldapIsAvailable || $isDemo): ?>
|
||||
<div id="title" class="titleNormal">
|
||||
@@ -11,49 +15,47 @@
|
||||
data-action-route="configLdap/save"
|
||||
data-hash="">
|
||||
<table id="tblLdap" class="data tblConfig">
|
||||
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-ldap_enabled"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-ldap_enabled">
|
||||
<p>
|
||||
<?php echo __('Habilita de autentificación mediante servidor LDAP.'); ?>
|
||||
</p>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<ul class="config-ldap-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_enabled">
|
||||
<input type="checkbox" id="ldap_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="ldap_enabled" <?php echo $configData->isLdapEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<?php echo __('Este método utilizará MySQL en caso de fallo.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_enabled">
|
||||
<input type="checkbox" id="ldap_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="ldap_enabled"
|
||||
<?php echo $configData->isLdapEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar LDAP'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-ldap_ads"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-ldap_ads">
|
||||
<p>
|
||||
<?php echo __('Habilita el modo de conexión con LDAP de Active Directory.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_ads">
|
||||
<input type="checkbox" id="ldap_ads"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="ldap_ads"
|
||||
<?php echo $configData->isLdapAds() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Active Directory'); ?></span>
|
||||
</label>
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar LDAP'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita de autentificación mediante servidor LDAP.'); ?>
|
||||
<br>
|
||||
<?php echo __('Este método utilizará MySQL en caso de fallo.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_ads_enabled">
|
||||
<input type="checkbox" id="ldap_ads_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="ldap_ads_enabled" <?php echo $configData->isLdapAds() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Active Directory'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita el modo de conexión con LDAP de Active Directory.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -338,12 +340,22 @@
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_import_groups">
|
||||
<input type="checkbox" id="ldap_import_groups"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="ldap_import_groups"/>
|
||||
<span class="mdl-switch__label"><?php echo __('Importar Grupos'); ?></span>
|
||||
</label>
|
||||
<ul class="config-ldap-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="ldap_import_groups">
|
||||
<input type="checkbox" id="ldap_import_groups"
|
||||
class="mdl-switch__input"
|
||||
name="ldap_import_groups" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Importar Grupos'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -17,32 +17,39 @@
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_enabled">
|
||||
<input type="checkbox" id="mail_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="mail_enabled"
|
||||
<?php echo $configData->isMailEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar notificaciones de correo'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-mail_requestsenabled"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-mail_requestsenabled">
|
||||
<p>
|
||||
<?php echo __('Habilita que los usuarios puedan solicitar modificaciones o acceso a las cuentas sin permisos.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_requestsenabled">
|
||||
<input type="checkbox" id="mail_requestsenabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="mail_requestsenabled" <?php echo $configData->isMailRequestsEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar peticiones por correo'); ?></span>
|
||||
</label>
|
||||
<ul class="config-mail-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_enabled">
|
||||
<input type="checkbox" id="mail_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="mail_enabled" <?php echo $configData->isMailEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar notificaciones de correo'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Habilitar notificaciones de correo'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_requests_enabled">
|
||||
<input type="checkbox" id="mail_requests_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="mail_requests_enabled" <?php echo $configData->isMailRequestsEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar peticiones por correo'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita que los usuarios puedan solicitar modificaciones o acceso a las cuentas sin permisos.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -74,12 +81,22 @@
|
||||
<tr>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_authenabled">
|
||||
<input type="checkbox" id="mail_authenabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="mail_authenabled" <?php echo $configData->isMailAuthenabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar Autentificación'); ?></span>
|
||||
</label>
|
||||
<ul class="config-mail-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mail_auth_enabled">
|
||||
<input type="checkbox" id="mail_auth_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="mail_auth_enabled" <?php echo $configData->isMailAuthenabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar Autentificación'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<?php /** @var $icons \SP\Core\UI\ThemeIcons */ ?>
|
||||
<?php
|
||||
/**
|
||||
* @var \SP\Core\UI\ThemeIcons $icons
|
||||
* @var \SP\Config\ConfigData $configData
|
||||
*/ ?>
|
||||
|
||||
<form method="post" name="frmWiki" id="frmWiki" class="form-action"
|
||||
data-onsubmit="config/save"
|
||||
@@ -12,23 +16,24 @@
|
||||
|
||||
<table id="tblWiki" class="data tblConfig">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-wiki_enabled"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-wiki_enabled">
|
||||
<p>
|
||||
<?php echo __('Habilita la opción de añadir un enlace a Wiki externa para los resultados de la búsqueda.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wiki_enabled">
|
||||
<input type="checkbox" id="wiki_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="wiki_enabled"
|
||||
<?php echo $configData->isWikiEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar enlaces Wiki'); ?></span>
|
||||
</label>
|
||||
<ul class="config-wiki-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wiki_enabled">
|
||||
<input type="checkbox" id="wiki_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="wiki_enabled" <?php echo $configData->isWikiEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar enlaces Wiki'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"><?php echo __('Habilita la opción de añadir un enlace a Wiki externa para los resultados de la búsqueda.'); ?></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -128,26 +133,28 @@
|
||||
|
||||
<table id="tblDokuWiki" class="data tblConfig">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<div id="help-dokuwiki_enabled"
|
||||
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
|
||||
<div class="mdl-tooltip mdl-tooltip--large" for="help-dokuwiki_enabled">
|
||||
<p>
|
||||
<?php echo __('Habilita la conexión a la API XML-RPC de DokuWiki para los enlaces Wiki.'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __('Para que esta característica funcione, es necesario habilitar los enlaces Wiki para el filtrado de cuentas.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td class="descField"></td>
|
||||
<td class="valField">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="dokuwiki_enabled">
|
||||
<input type="checkbox" id="dokuwiki_enabled"
|
||||
class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="dokuwiki_enabled"
|
||||
<?php echo $configData->isDokuwikiEnabled() ? 'checked' : ''; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Habilitar API de DokuWiki'); ?></span>
|
||||
</label>
|
||||
<ul class="config-wiki-list-action mdl-list">
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="dokuwiki_enabled">
|
||||
<input type="checkbox" id="dokuwiki_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="dokuwiki_enabled" <?php echo $configData->isDokuwikiEnabled() ? 'checked' : ''; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Habilitar API de DokuWiki'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Habilita la conexión a la API XML-RPC de DokuWiki para los enlaces Wiki.'); ?>
|
||||
<br>
|
||||
<?php echo __('Para que esta característica funcione, es necesario habilitar los enlaces Wiki para el filtrado de cuentas.'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -6,237 +6,328 @@
|
||||
<div id="box-popup">
|
||||
<h2 class="center"><?php echo $header; ?><i class="btn-popup-close material-icons">close</i></h2>
|
||||
|
||||
<form method="post" name="frmUsers" id="frmUsers" class="form-action"
|
||||
data-onsubmit="appMgmt/save"
|
||||
data-action-route="<?php echo isset($route) ? $route : ''; ?>"
|
||||
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
|
||||
data-nextaction="<?php echo $nextAction; ?>"
|
||||
data-hash="">
|
||||
<table class="popup-data">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Nombre') ?></td>
|
||||
<td class="valField">
|
||||
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="name" name="name" type="text" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getName(); ?>"
|
||||
maxlength="80" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="name"><?php echo __('Nombre de usuario completo'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Login'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="login" name="login" type="text" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getLogin(); ?>"
|
||||
maxlength="80" <?php echo $user->isLdap() ? 'readonly' : $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="login"><?php echo __('Login de inicio de sesión'); ?></label>
|
||||
</div>
|
||||
<?php if ($user->isLdap()): ?>
|
||||
<i class="material-icons <?php echo $icons->getIconLdapUser()->getClass(); ?>"
|
||||
title="<?php echo $icons->getIconLdapUser()->getTitle(); ?>"><?php echo $icons->getIconLdapUser()->getIcon(); ?></i>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($isUseSSO): ?>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Login SSO'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="login_sso" name="login_sso" type="text"
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getSsoLogin(); ?>"
|
||||
maxlength="100" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="login_sso"><?php echo __('Login de inicio de sesión con SSO'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Perfil'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Perfil'); ?></div>
|
||||
|
||||
<select id="selProfile" name="profileid"
|
||||
class="select-box" required <?php echo $disabled; ?>>
|
||||
<option value=""><?php echo __('Seleccionar Perfil'); ?></option>
|
||||
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $profiles */
|
||||
foreach ($profiles as $profile): ?>
|
||||
<option
|
||||
value="<?php echo $profile->getId(); ?>" <?php echo ($profile->getId() === $user->getUserProfileId()) ? 'selected' : ''; ?>><?php echo $profile->getName(); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Grupo'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Grupo'); ?></div>
|
||||
|
||||
<select id="selGroup" name="groupid"
|
||||
class="select-box" required <?php echo $disabled; ?>>
|
||||
<option value=""><?php echo __('Seleccionar Grupo'); ?></option>
|
||||
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $groups */
|
||||
foreach ($groups as $group): ?>
|
||||
<option
|
||||
value="<?php echo $group->getId(); ?>" <?php echo ($group->getId() === $user->getUserGroupId()) ? 'selected' : ''; ?>><?php echo $group->getName(); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Email'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="email" name="email" type="email" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getEmail(); ?>" maxlength="50" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="email"><?php echo __('Dirección de correo'); ?></label>
|
||||
</div
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php if (isset($createAction)): ?>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Clave'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="form-control">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="password" name="password" type="password" required
|
||||
class="mdl-textfield__input passwordfield__input mdl-color-text--indigo-400"
|
||||
maxlength="50">
|
||||
<label class="mdl-textfield__label"
|
||||
for="password"><?php echo __('Clave'); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Clave (repetir)'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="password_repeat" name="password_repeat" type="password" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
maxlength="50">
|
||||
<label class="mdl-textfield__label"
|
||||
for="password_repeat"><?php echo __('Clave (repetir)'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Notas') ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<textarea class="mdl-textfield__input" rows="3" id="notes" name="notes"
|
||||
maxlength="1000" <?php echo $readonly; ?>><?php echo $user->getNotes(); ?></textarea>
|
||||
<label class="mdl-textfield__label"
|
||||
for="notes"><?php echo __('Notas sobre la cuenta'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Opciones'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<?php if ($userIsAdminApp || $isDemo): ?>
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="adminapp"
|
||||
title="<?php echo __('Administrador de la aplicación'); ?>">
|
||||
<input type="checkbox" id="adminapp" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="adminapp" <?php echo $user->isAdminApp() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Admin Aplicación'); ?></span>
|
||||
</label>
|
||||
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="adminacc"
|
||||
title="<?php echo __('Administrador de cuentas'); ?>">
|
||||
<input type="checkbox" id="adminacc" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="adminacc" <?php echo $user->isAdminAcc() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Admin Cuentas'); ?></span>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="disabled"
|
||||
title="<?php echo __('Deshabilitado'); ?>">
|
||||
<input type="checkbox" id="disabled" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="disabled" <?php echo $user->isDisabled() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Deshabilitado'); ?></span>
|
||||
</label>
|
||||
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="changepass"
|
||||
title="<?php echo __('Forzar cambio de clave'); ?>">
|
||||
<input type="checkbox" id="changepass" class="mdl-switch__input mdl-color-text--indigo-400"
|
||||
name="changepass" <?php echo $user->isChangePass() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
<span class="mdl-switch__label"><?php echo __('Cambio de Clave'); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($customFields): ?>
|
||||
<?php include $this->includeTemplate('aux-customfields', 'common'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect">
|
||||
<div class="mdl-tabs__tab-bar">
|
||||
<a href="#user-panel" class="mdl-tabs__tab is-active"><?php echo __('Usuario'); ?></a>
|
||||
<a href="#options-panel" class="mdl-tabs__tab"><?php echo __('Opciones'); ?></a>
|
||||
|
||||
<?php if ($isView): ?>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Entradas'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Entradas'); ?></div>
|
||||
|
||||
<?php echo $user->getLoginCount(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Último Acceso'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Último Acceso'); ?></div>
|
||||
|
||||
<?php echo $user->getLastLogin(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Última Modificación'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Última Modificación'); ?></div>
|
||||
|
||||
<?php echo $user->getLastUpdate(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Fecha Clave Maestra'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Fecha Clave Maestra'); ?></div>
|
||||
|
||||
<?php echo gmdate('Y-m-d H:i:s', $user->getLastUpdateMPass()); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<a href="#details-panel" class="mdl-tabs__tab"><?php echo __('Detalles'); ?></a>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (!$isView): ?>
|
||||
<input type="hidden" name="isLdap" value="<?php echo $user->isLdap(); ?>"/>
|
||||
<input type="hidden" name="sk" value="<?php echo $sk; ?>">
|
||||
<input type="hidden" name="isAjax" value="1">
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form method="post" name="frmUsers" id="frmUsers" class="form-action"
|
||||
data-onsubmit="appMgmt/save"
|
||||
data-action-route="<?php echo isset($route) ? $route : ''; ?>"
|
||||
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
|
||||
data-nextaction="<?php echo $nextAction; ?>"
|
||||
data-hash="">
|
||||
|
||||
<div class="mdl-tabs__panel is-active" id="user-panel">
|
||||
<table class="popup-data">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Nombre') ?></td>
|
||||
<td class="valField">
|
||||
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="name" name="name" type="text" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getName(); ?>"
|
||||
maxlength="80" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="name"><?php echo __('Nombre de usuario completo'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Login'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="login" name="login" type="text" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getLogin(); ?>"
|
||||
maxlength="80" <?php echo $user->isLdap() ? 'readonly' : $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="login"><?php echo __('Login de inicio de sesión'); ?></label>
|
||||
</div>
|
||||
<?php if ($user->isLdap()): ?>
|
||||
<i class="material-icons <?php echo $icons->getIconLdapUser()->getClass(); ?>"
|
||||
title="<?php echo $icons->getIconLdapUser()->getTitle(); ?>"><?php echo $icons->getIconLdapUser()->getIcon(); ?></i>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($isUseSSO): ?>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Login SSO'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="login_sso" name="login_sso" type="text"
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getSsoLogin(); ?>"
|
||||
maxlength="100" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="login_sso"><?php echo __('Login de inicio de sesión con SSO'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Email'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="email" name="email" type="email" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
value="<?php echo $user->getEmail(); ?>" maxlength="50" <?php echo $readonly; ?>>
|
||||
<label class="mdl-textfield__label"
|
||||
for="email"><?php echo __('Dirección de correo'); ?></label>
|
||||
</div
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php if (isset($createAction)): ?>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Clave'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="form-control">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="password" name="password" type="password" required
|
||||
class="mdl-textfield__input passwordfield__input mdl-color-text--indigo-400"
|
||||
maxlength="50">
|
||||
<label class="mdl-textfield__label"
|
||||
for="password"><?php echo __('Clave'); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Clave (repetir)'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="password_repeat" name="password_repeat" type="password" required
|
||||
class="mdl-textfield__input mdl-color-text--indigo-400"
|
||||
maxlength="50">
|
||||
<label class="mdl-textfield__label"
|
||||
for="password_repeat"><?php echo __('Clave (repetir)'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Perfil'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Perfil'); ?></div>
|
||||
|
||||
<select id="userprofile_id" name="userprofile_id"
|
||||
class="select-box" required <?php echo $disabled; ?>>
|
||||
<option value=""><?php echo __('Seleccionar Perfil'); ?></option>
|
||||
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $profiles */
|
||||
foreach ($profiles as $profile): ?>
|
||||
<option
|
||||
value="<?php echo $profile->getId(); ?>" <?php echo ($profile->getId() === $user->getUserProfileId()) ? 'selected' : ''; ?>><?php echo $profile->getName(); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Grupo'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Grupo'); ?></div>
|
||||
|
||||
<select id="usergroup_id" name="usergroup_id"
|
||||
class="select-box" required <?php echo $disabled; ?>>
|
||||
<option value=""><?php echo __('Seleccionar Grupo'); ?></option>
|
||||
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $groups */
|
||||
foreach ($groups as $group): ?>
|
||||
<option
|
||||
value="<?php echo $group->getId(); ?>" <?php echo ($group->getId() === $user->getUserGroupId()) ? 'selected' : ''; ?>><?php echo $group->getName(); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Notas') ?></td>
|
||||
<td class="valField">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<textarea class="mdl-textfield__input" rows="3" id="notes" name="notes"
|
||||
maxlength="1000" <?php echo $readonly; ?>><?php echo $user->getNotes(); ?></textarea>
|
||||
<label class="mdl-textfield__label"
|
||||
for="notes"><?php echo __('Notas'); ?></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($customFields): ?>
|
||||
<?php include $this->includeTemplate('aux-customfields', 'common'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mdl-tabs__panel" id="options-panel">
|
||||
<table class="popup-data">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="user-list-action mdl-list">
|
||||
<?php if ($userIsAdminApp || $isDemo): ?>
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="adminapp_enabled">
|
||||
<input type="checkbox" id="adminapp_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="adminapp_enabled" <?php echo $user->isAdminApp() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Admin Aplicación'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Administrador de la aplicación'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="adminacc_enabled">
|
||||
<input type="checkbox" id="adminacc_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="adminacc_enabled" <?php echo $user->isAdminAcc() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Admin Cuentas'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Administrador de cuentas'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="changepass_enabled">
|
||||
<input type="checkbox" id="changepass_enabled"
|
||||
class="mdl-switch__input"
|
||||
name="changepass_enabled" <?php echo $user->isChangePass() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Cambio de Clave'); ?></span>
|
||||
<span class="mdl-list__item-sub-title">
|
||||
<?php echo __('Forzar cambio de clave'); ?>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li class="mdl-list__item mdl-list__item--two-line">
|
||||
<div class="mdl-switch__box">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||
for="disabled">
|
||||
<input type="checkbox" id="disabled"
|
||||
class="mdl-switch__input"
|
||||
name="disabled" <?php echo $user->isDisabled() ? 'checked' : ' '; ?> <?php echo $disabled; ?>/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<span><?php echo __('Deshabilitado'); ?></span>
|
||||
<span class="mdl-list__item-sub-title"></span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($isView): ?>
|
||||
<div class="mdl-tabs__panel" id="details-panel">
|
||||
<table class="popup-data">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Entradas'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Entradas'); ?></div>
|
||||
|
||||
<?php echo $user->getLoginCount(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Último Acceso'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Último Acceso'); ?></div>
|
||||
|
||||
<?php echo $user->getLastLogin(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Última Modificación'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Última Modificación'); ?></div>
|
||||
|
||||
<?php echo $user->getLastUpdate(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Fecha Clave Maestra'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Fecha Clave Maestra'); ?></div>
|
||||
|
||||
<?php echo gmdate('Y-m-d H:i:s', $user->getLastUpdateMPass()); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><?php echo __('Usado en'); ?></td>
|
||||
<td class="valField">
|
||||
<div class="lowres-title"><?php echo __('Usado en'); ?></div>
|
||||
<div class="list-wrap">
|
||||
<ul class="mdl-list">
|
||||
<?php foreach ($usage as $item): ?>
|
||||
<li class="mdl-list__item mdl-list__item" title="<?php echo $item->ref; ?>">
|
||||
<span class="mdl-list__item-primary-content">
|
||||
<i class="material-icons mdl-list__item-icon"><?php echo $item->icon; ?></i>
|
||||
<?php printf('%s: %s', $item->ref, $item->name ?: $item->id); ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$isView): ?>
|
||||
<input type="hidden" name="isLdap" value="<?php echo $user->isLdap(); ?>"/>
|
||||
<input type="hidden" name="sk" value="<?php echo $sk; ?>">
|
||||
<input type="hidden" name="isAjax" value="1">
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php if (!$isView): ?>
|
||||
<div class="action-in-box">
|
||||
|
||||
@@ -718,4 +718,56 @@ class UserRepository extends Repository implements RepositoryItemInterface
|
||||
|
||||
return DbWrapper::getResultsArray($queryData, $this->db);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the usage of the given user's id
|
||||
*
|
||||
* @param int $id
|
||||
* @return array
|
||||
*/
|
||||
public function getUsageForUser($id)
|
||||
{
|
||||
$query = 'SELECT * FROM (SELECT
|
||||
A.id,
|
||||
CONCAT(A.name, " (", C.name, ")") AS name,
|
||||
\'Account\' AS ref
|
||||
FROM Account A
|
||||
INNER JOIN Client C on A.clientId = C.id
|
||||
WHERE A.userId = ? OR A.userEditId = ?
|
||||
UNION ALL
|
||||
SELECT
|
||||
AU.accountId AS id,
|
||||
CONCAT(A.name, " (", C.name, ")") AS name,
|
||||
\'Account\' AS ref
|
||||
FROM AccountToUser AU
|
||||
INNER JOIN Account A on AU.accountId = A.id
|
||||
INNER JOIN Client C on A.clientId = C.id
|
||||
WHERE AU.userId = ?
|
||||
UNION ALL
|
||||
SELECT
|
||||
UUG.userGroupId AS id,
|
||||
G.name,
|
||||
\'UserGroup\' AS ref
|
||||
FROM
|
||||
UserToUserGroup UUG
|
||||
INNER JOIN UserGroup G on UUG.userGroupId = G.id
|
||||
WHERE UUG.userId = ?
|
||||
UNION ALL
|
||||
SELECT
|
||||
PL.id,
|
||||
CONCAT(A.name, " (", C.name, ")") AS name,
|
||||
\'PublicLink\' AS ref
|
||||
FROM
|
||||
PublicLink PL
|
||||
INNER JOIN Account A ON A.id = PL.itemId
|
||||
INNER JOIN Client C on A.clientId = C.id
|
||||
WHERE PL.userId = ?) Items
|
||||
ORDER BY Items.ref';
|
||||
|
||||
$queryData = new QueryData();
|
||||
$queryData->setQuery($query);
|
||||
$queryData->setParams(array_fill(0, 5, (int)$id));
|
||||
|
||||
return DbWrapper::getResultsArray($queryData, $this->db);
|
||||
}
|
||||
}
|
||||
@@ -328,6 +328,17 @@ class UserService extends Service
|
||||
return $this->userRepository->getUserEmailForGroup($groupId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the usage of the given user's id
|
||||
*
|
||||
* @param int $id
|
||||
* @return array
|
||||
*/
|
||||
public function getUsageForUser($id)
|
||||
{
|
||||
return $this->userRepository->getUsageForUser($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Psr\Container\ContainerExceptionInterface
|
||||
* @throws \Psr\Container\NotFoundExceptionInterface
|
||||
|
||||
Reference in New Issue
Block a user