mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido opcion de crear contraseña en interfaz de administrador
This commit is contained in:
@ -1,26 +1,25 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-6 px-4">
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="firstName" class="form-label">
|
||||
<?= lang('Users.firstName') ?>
|
||||
</label>
|
||||
<input tabindex="1" type="text" id="firstName" name="first_name" maxLength="150" class="form-control"
|
||||
value="<?= old('first_name', $user->first_name) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">
|
||||
<?= lang('Users.email') ?>*
|
||||
</label>
|
||||
<input tabindex="13" type="email" id="email" name="email" maxLength="150" class="form-control"
|
||||
<input tabindex="3" type="email" id="email" name="email" maxLength="150" class="form-control"
|
||||
value="<?= old('email', $user->email) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="form-group">
|
||||
<label for="group" class="form-label"> <?= lang('Users.group') ?></label>
|
||||
<select tabindex="17" name="group[]" id="group" multiple="multiple"
|
||||
<select tabindex="5" name="group[]" id="group" multiple="multiple"
|
||||
class="form-control select2 form-select">
|
||||
<option value=""><?= lang('Basic.global.pleaseSelectA', [lang('Users.group')]) ?></option>
|
||||
<?php
|
||||
@ -36,10 +35,27 @@
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div><!--//.mb-3 -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="cliente_id" class="form-label">
|
||||
<?= lang('Presupuestos.clienteId') ?>
|
||||
</label>
|
||||
<select tabindex="7" id="cliente_id" name="cliente_id" class="form-control select2bs2" style="width: 100%;">
|
||||
|
||||
<?php if (isset($clienteList) && is_array($clienteList) && !empty($clienteList)) :
|
||||
foreach ($clienteList as $k => $v) : ?>
|
||||
<option value="<?= $k ?>" <?= $k == $user->cliente_id ? ' selected' : '' ?>>
|
||||
<?= $v ?>
|
||||
</option>
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-md-12 col-lg-6 px-4">
|
||||
|
||||
<div class="mb-3">
|
||||
@ -48,14 +64,14 @@
|
||||
</label>
|
||||
<input tabindex="2" type="text" id="lastName" name="last_name" maxLength="150" class="form-control"
|
||||
value="<?= old('last_name', $user->last_name) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="status" class="form-label">
|
||||
<?= lang('Users.blocked') ?>
|
||||
</label>
|
||||
<?php $isBanned = old('blocked', $user->status); ?>
|
||||
<select tabindex="12" name="status" id="status" class="select2 form-control">
|
||||
<select tabindex="4" name="status" id="status" class="select2 form-control">
|
||||
<option value="0" <?= is_null($isBanned) ? 'selected' : '' ?>><?= lang("Users.non_blocked") ?></option>
|
||||
<option value="1" <?= $isBanned === "banned" ? 'selected' : '' ?>><?= lang("Users.blocked") ?></option>
|
||||
</select>
|
||||
@ -66,29 +82,29 @@
|
||||
<?= lang('Users.status') ?>
|
||||
</label>
|
||||
<?php $isActive = old('status', $user->active); ?>
|
||||
<select tabindex="16" name="active" id="active" class="select2 form-control">
|
||||
<select tabindex="6" name="active" id="active" class="select2 form-control">
|
||||
<option value="1" <?= $isActive ? 'selected' : '' ?>><?= lang("Users.global_active") ?></option>
|
||||
<option value="0" <?= $isActive ? '' : 'selected' ?>><?= lang("Users.global_inactive") ?></option>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
</div><!--//.col -->
|
||||
<div class="col-md-12 col-lg-6 px-4">
|
||||
<div class="mb-3">
|
||||
<label for="cliente_id" class="form-label">
|
||||
<?= lang('Presupuestos.clienteId') ?>
|
||||
</label>
|
||||
<select id="cliente_id" name="cliente_id" class="form-control select2bs2" style="width: 100%;">
|
||||
|
||||
<?php if (isset($clienteList) && is_array($clienteList) && !empty($clienteList)) :
|
||||
foreach ($clienteList as $k => $v) : ?>
|
||||
<option value="<?= $k ?>" <?= $k == $user->cliente_id ? ' selected' : '' ?>>
|
||||
<?= $v ?>
|
||||
</option>
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">
|
||||
<?= lang('Users.password') ?>
|
||||
</label>
|
||||
<input
|
||||
tabindex="8"
|
||||
type="text"
|
||||
id="password"
|
||||
name="password"
|
||||
maxLength="50"
|
||||
class="form-control"
|
||||
placeholder="Introduzca contraseña para cambiarla"
|
||||
value=""
|
||||
>
|
||||
|
||||
</div>
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
</div><!-- //.row -->
|
||||
@ -17,8 +17,8 @@
|
||||
<tr>
|
||||
<th><?= lang('Users.firstName') ?></th>
|
||||
<th><?= lang('Users.lastName') ?></th>
|
||||
<th><?= lang('Users.group') ?></th>
|
||||
<th><?= lang('Users.lastAccess') ?></th>
|
||||
<th><?= lang('Users.email') ?></th>
|
||||
<th><?= lang('Users.lastAccess') ?></th>
|
||||
<?php /*
|
||||
<th><?= lang('Users.mobile') ?></th>
|
||||
<th><?= lang('Users.email') ?></th>
|
||||
@ -46,11 +46,10 @@
|
||||
<td class="align-middle">
|
||||
<?= empty($item->last_name) || strlen($item->last_name) < 51 ? esc($item->last_name) : character_limiter(esc($item->last_name), 50) ?>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<?= empty($item->group) ? "" : character_limiter(esc(lang('Users.' . $item->group)), 50) ?>
|
||||
</td>
|
||||
|
||||
<td class="align-middle text-nowrap">
|
||||
<td class="align-middle">
|
||||
<?= empty($item->email) ? "" : character_limiter(esc(lang($item->email)), 50) ?>
|
||||
</td>
|
||||
<td class="align-middle text-nowrap">
|
||||
<?= empty($item->last_active) ? '' : date('d/m/Y H:m:s', strtotime($item->last_active)) ?>
|
||||
</td>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user