mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
falta lenguaje de user y usermodel. Repasar funcionalidades
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
<?php if (config('Basics')->theme['name'] == 'Bootstrap5') { ?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="exclamation-triangle-fill" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
|
||||
@ -18,18 +17,3 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-dismissible alert-warning">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fas fa-exclamation-triangle"></i> Please correct the errors below:</h4>
|
||||
<ul>
|
||||
<?php foreach ($errors as $error) : ?>
|
||||
<li><?= esc($error) ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div><!--//.alert-->
|
||||
</div><!--//.col-->
|
||||
</div><!--//.row -->
|
||||
<?php } ?>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.0 KiB |
@ -19,14 +19,23 @@
|
||||
<label for="state" class="form-label">
|
||||
<?=lang('Users.state') ?>*
|
||||
</label>
|
||||
<input type="text" id="state" name="state" required maxLength="255" class="form-control" value="<?=old('state', $user->state) ?>">
|
||||
<input type="text" id="state" name="state" maxLength="255" class="form-control" value="<?=old('state', $user->state) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="country" class="form-label">
|
||||
<?=lang('Users.country') ?>*
|
||||
</label>
|
||||
<input type="text" id="country" name="country" required maxLength="2" class="form-control" value="<?=old('country', $user->country) ?>">
|
||||
|
||||
<select id="country" name="country" required class="form-control " style="width: 100%;" >
|
||||
<option value=""><?=lang('Basic.global.pleaseSelectA', [lang('Users.country')]) ?></option>
|
||||
|
||||
<?php foreach ($paisList as $item) : ?>
|
||||
<option value="<?=$item->code ?>"<?=$item->code==$user->country ? ' selected':'' ?> >
|
||||
<?=$item->nombre ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
@ -41,7 +50,7 @@
|
||||
<label for="mobile" class="form-label">
|
||||
<?=lang('Users.mobile') ?>*
|
||||
</label>
|
||||
<input type="text" id="mobile" name="mobile" required maxLength="50" class="form-control" value="<?=old('mobile', $user->mobile) ?>">
|
||||
<input type="text" id="mobile" name="mobile" maxLength="50" class="form-control" value="<?=old('mobile', $user->mobile) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
@ -64,8 +73,15 @@
|
||||
<select name="group[]" id="group" multiple="multiple">
|
||||
<option value=""><?=lang('Basic.global.pleaseSelectA', [lang('Users.group')]) ?></option>
|
||||
<?php foreach ($groups as $item) : ?>
|
||||
<option value="<?=$item->token ?>" data-select2-id=<?=$item->token ?>> <?= $item->title ?>
|
||||
</option>
|
||||
<?php if (isset($selectedGroups) && sizeof($selectedGroups)>=1): ?>
|
||||
<?php foreach ($selectedGroups as $selItem) : ?>
|
||||
<option value="<?=$item->token ?>" data-select2-id=<?=$item->token ?> <?=$item->token==$selItem['token_group']?'selected':'' ?>> <?= $item->title ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<option value="<?=$item->token ?>" data-select2-id=<?=$item->token ?> > <?= $item->title ?>
|
||||
</option>
|
||||
<?php endif ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
@ -99,7 +115,7 @@
|
||||
<div class="mb-3">
|
||||
<div class="form-group">
|
||||
<label for="language" class="text-dark"><?=lang("Users.language")?></label>
|
||||
<?php $id_select = (isset($obj)) ? $obj['language']??[] : set_value('language');?>
|
||||
<?php $id_select = old('language', $user->language);?>
|
||||
<select name="language" id="language" class="form-control">
|
||||
<option value=""><?=lang("App.global_select")?></option>
|
||||
<option value="en" <?= $id_select == "en" ? 'selected' : '' ?>><?=lang("App.lang_en")?></option>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
</td>
|
||||
|
||||
<td class="align-middle">
|
||||
<!-- GROUP -->
|
||||
<?= empty($ [$item->token]) || strlen($groupsPerUser[$item->token]) < 51 ? esc($groupsPerUser[$item->token]) : character_limiter(esc($groupsPerUser[$item->token]), 50) ?>
|
||||
</td>
|
||||
|
||||
<td class="align-middle">
|
||||
|
||||
Reference in New Issue
Block a user