mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadido cambio de contraseña en perfil de usuario (mejorar UI
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
|
||||
<?= $this->extend('themes/vuexy/main/general_settings_layout') ?>
|
||||
|
||||
<?= $this->section('content'); ?>
|
||||
@ -12,10 +11,11 @@
|
||||
<form id="formAccountSettings" method="POST" action="<?= site_url("profile/store") ?>">
|
||||
<?= csrf_field() ?>
|
||||
<div class="row">
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="first_name" class="form-label"><?= lang("App.profile_first_name") ?></label>
|
||||
<div class="mb-3 col-md-4">
|
||||
<label for="first_name" class="form-label"><?= lang("App.profile_first_name") ?> *</label>
|
||||
<input
|
||||
class="form-control"
|
||||
tabindex="1"
|
||||
type="text"
|
||||
id="first_name"
|
||||
name="first_name"
|
||||
@ -24,9 +24,10 @@
|
||||
autofocus
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="last_name" class="form-label"><?= lang("App.profile_last_name") ?></label>
|
||||
<div class="mb-3 col-md-4">
|
||||
<label for="last_name" class="form-label"><?= lang("App.profile_last_name") ?> *</label>
|
||||
<input class="form-control"
|
||||
tabindex="2"
|
||||
type="text"
|
||||
name="last_name"
|
||||
id="last_name"
|
||||
@ -34,21 +35,47 @@
|
||||
value="<?= (isset($obj)) ? $obj->last_name : set_value('last_name'); ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<div class="mb-3 col-md-4">
|
||||
<label for="email" class="form-label"><?= lang("App.profile_email") ?></label>
|
||||
<input
|
||||
class="form-control"
|
||||
tabindex="3"
|
||||
type="text"
|
||||
id="email"
|
||||
name="email"
|
||||
disabled
|
||||
placeholder="<?= lang("App.profile_email_ph") ?>"
|
||||
value="<?= (isset($obj)) ? $obj->email : set_value('email'); ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="new_pwd" class="form-label"><?= lang("App.profile_password") ?></label>
|
||||
<input
|
||||
class="form-control"
|
||||
tabindex="4"
|
||||
type="text"
|
||||
id="new_pwd"
|
||||
name="new_pwd"
|
||||
placeholder="<?= lang("App.profile_password_ph") ?>"
|
||||
value=""
|
||||
/>
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="new_pwd_confirm" class="form-label"><?= lang("App.profile_confirm_password") ?></label>
|
||||
<input
|
||||
class="form-control"
|
||||
tabindex="5"
|
||||
type="text"
|
||||
id="new_pwd_confirm"
|
||||
name="new_pwd_confirm"
|
||||
placeholder="<?= lang("App.profile_confirm_password_ph") ?>"
|
||||
value=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<button type="submit" class="btn btn-primary me-2"><?= $btn_submit['title'] ?? '' ?></button>
|
||||
<button type="reset" class="btn btn-label-secondary"><?= $btn_return['title'] ?? '' ?></button>
|
||||
<button type="submit" class="btn btn-primary me-2"><?= lang("Basic.global.Save") ?? '' ?></button>
|
||||
<?= anchor(route_to("home"), lang("Basic.global.Cancel"), ["class" => "btn btn-danger"]) ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -96,12 +123,7 @@
|
||||
<?= $this->section('additionalInlineJs') ?>
|
||||
"use strict";
|
||||
$(document).ready(function () {
|
||||
$('#first_name').focus();
|
||||
$('#first_name').focus();
|
||||
});
|
||||
$('.file-upload').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('#file').trigger('click');
|
||||
});
|
||||
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
Reference in New Issue
Block a user