cambios de legacytables3

This commit is contained in:
Jaime Jiménez
2023-05-16 12:59:12 +02:00
parent ea0c714550
commit 5a0b82dcbb
58 changed files with 2955 additions and 468 deletions

View File

@ -56,7 +56,7 @@
<?php foreach($item['methods'] as $subitem): ?>
<?php if(!getIgnoreMethod($subitem)): ?>
<div class="custom-control custom-switch">
<input type="checkbox" id="<?=$item['name'].'_'.$subitem?>" name="<?=$item['name'].'_'.$subitem?>" class="custom-control-input">
<input type="checkbox" id="<?=$item['name'].'_'.$subitem?>" name="<?=$item['name'].'_'.$subitem?>" class="custom-control-input" <?=ruleIsChecked($group->rules, $item['name'], $subitem)?'checked':''?> >
<label for="<?=$item['name'].'_'.$subitem?>" class="custom-control-label"><?=getDictionary($subitem)?></label>
</div>
<?php endif; ?>
@ -81,7 +81,7 @@
<?php foreach($item['methods'] as $subitem): ?>
<?php if(!getIgnoreMethod($subitem)): ?>
<div class="custom-control custom-switch">
<input type="checkbox" id="<?=$item['name'].'_'.$subitem?>" name="<?=$item['name'].'_'.$subitem?>" class="custom-control-input">
<input type="checkbox" id="<?=$item['name'].'_'.$subitem?>" name="<?=$item['name'].'_'.$subitem?>" class="custom-control-input" <?=ruleIsChecked($group->rules, $item['name'], $subitem)?'checked':''?> >
<label for="<?=$item['name'].'_'.$subitem?>" class="custom-control-label"><?=getDictionary($subitem)?></label>
</div>
<?php endif; ?>

View File

@ -15,27 +15,32 @@
<table id="tableOfGroups" class="table table-striped table-hover using-data-table" style="width: 100%;">
<thead>
<tr>
<th><?=lang("Group.id")?></th>
<th><?=lang("Group.group_grid_title")?></th>
<?php /* <th><?=//lang("Group.id")?></th> */ ?>
<th><?=lang("Group.group_grid_title")?></th>
<th><?=lang("Group.group_grid_dashboard")?></th>
<th><?= lang('UserGroups.token') ?></th>
<?php /*
<th><?= lang('UserGroups.token') ?></th>
<th><?= lang('UserGroups.createdAt') ?></th>
<th><?= lang('UserGroups.updatedAt') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
*/ ?>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($userGroupList as $item ) : ?>
<tr>
<?php /*
<td class="align-middle text-center">
<?=$item->id_group ?>
</td>
*/ ?>
<td class="align-middle">
<?= esc($item->title) ?>
</td>
<td class="align-middle">
<?= esc($item->dashboard) ?>
</td>
<?php /*
<td class="align-middle">
<?= esc($item->token) ?>
</td>
@ -46,6 +51,7 @@
<td class="align-middle text-nowrap">
<?= empty($item->updated_at) ? '' : date('d/m/Y H:m:s', strtotime($item->updated_at)) ?>
</td>
*/ ?>
<td class="align-middle text-center text-nowrap">
<?=anchor(route_to('editGroup', $item->id_group), lang('Basic.global.edit'), ['class'=>'btn btn-sm btn-warning btn-edit me-1', 'data-id'=>$item->id_group,]); ?>
<?=anchor('#confirm2delete', lang('Basic.global.Delete'), ['class'=>'btn btn-sm btn-danger btn-delete ms-1', 'data-href'=>route_to('deleteGroup', $item->id_group), 'data-bs-toggle'=>'modal', 'data-bs-target'=>'#confirm2delete']); ?>