modificada la vista cuando hay más de 3 permisos

This commit is contained in:
2025-04-08 22:37:53 +02:00
parent ae9af197ac
commit fc52417b53
2 changed files with 10 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class Routing extends BaseRouting
*
* If FALSE, will stop searching and do NO automatic routing.
*/
public bool $autoRoute = false;
public bool $autoRoute = true;
/**
* If TRUE, will enable the use of the 'prioritize' option

View File

@ -70,9 +70,12 @@
<td class="text-nowrap fw-semibold" >
&emsp;&emsp;<?= lang("RolesPermisos." . convertToCamelCase($key) . "Section") ?>
</td>
<td colspan="3">
<div class="row">
<?php foreach ($rules as $rule): ?>
<td>
<div class="form-check">
<div class="col-md-4">
<div class="form-check text-wrap">
<input type="checkbox"
id="<?= $key . '_' . $rule ?>"
name="<?= $key . '_' . $rule ?>"
@ -83,8 +86,11 @@
<?= lang("RolesPermisos." . $rule . "Permission") ?>
</label>
</div>
</td>
</div>
<?php endforeach; ?>
</div>
</td>
</tr>
<?php endforeach;
endforeach;