Modificando usuarios y roles

This commit is contained in:
imnavajas
2024-05-03 01:09:25 +02:00
parent 497e55f593
commit 9858616b6e
20 changed files with 57 additions and 626 deletions

View File

@ -57,36 +57,25 @@
<div class="table-responsive">
<table class="table table-flush-spacing">
<tbody>
<?php foreach (getAllFolder() as $folder): ?>
<?php foreach (getAllClass() as $item): ?>
<?php if (str_contains($item['path'], $folder)): ?>
<tr>
<td class="text-nowrap fw-semibold">
<?= getDictionary($folder) ?? '' ?>
>> <?= getDictionary($item['name']) ?>
</td>
<?php foreach ($item['methods'] as $subitem): ?>
<?php if (!getIgnoreMethod($subitem)): ?>
<td>
<div class="form-check">
<input type="checkbox"
id="<?= $item['name'] . '_' . $subitem ?>"
name="<?= $item['name'] . '_' . $subitem ?>"
class="form-check-input"
<?= ruleIsChecked($group->rules, $item['name'], $subitem) ? 'checked' : '' ?>
>
<label for="<?= $item['name'] . '_' . $subitem ?>"
class="form-check-label"><?= getDictionary($subitem) ?></label>
</div>
</td>
<?php endif; ?>
<?php endforeach; ?>
</tr>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<tr>
<td class="text-nowrap fw-semibold">
Recurso
</td>
<td>
<div class="form-check">
<input type="checkbox"
id="recurso_name"
name="recurso_name"
class="form-check-input"
checked
>
<label for="recurso_name"
class="form-check-label">Permiso</label>
</div>
</td>
</tr>
<?php foreach (getAllClass() as $item): ?>
<?php /*foreach (getAllClass() as $item): ?>
<?php if (empty($item['path'])): ?>
<tr>
<td class="text-nowrap fw-semibold"><?= getDictionary($item['name']) ?></td>
@ -108,7 +97,7 @@
<?php endforeach; ?>
</tr>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; */?>
</tbody>
</table>
</div>