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. * 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 * If TRUE, will enable the use of the 'prioritize' option

View File

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