export calendar - modifica impostazioni

This commit is contained in:
2026-05-26 14:10:04 +02:00
parent 60ebd3b652
commit 982d754857
26 changed files with 1609 additions and 289 deletions
@@ -42,9 +42,10 @@
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<input type="hidden" name="is_admin" value="0">
<div class="form-group">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="isAdmin" name="is_admin" value="1">
<input type="checkbox" class="custom-control-input" id="isAdmin" name="is_admin" value="1" <?php echo e(old('is_admin') === '1' ? 'checked' : ''); ?>>
<label class="custom-control-label" for="isAdmin">Superadmin (bypass ACL)</label>
</div>
</div>
@@ -61,12 +62,12 @@
</tr>
</thead>
<tbody>
<?php $__currentLoopData = ['individui', 'gruppi', 'eventi', 'documenti', 'mailing', 'viste']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $__currentLoopData = \App\Models\User::MODULES; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><strong><?php echo e(ucfirst($module)); ?></strong></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="0" <?php echo e(old('permissions.' . $module, '1') == '0' ? 'checked' : ''); ?>></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="1" <?php echo e(old('permissions.' . $module, '1') == '1' ? 'checked' : ''); ?>></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="2" <?php echo e(old('permissions.' . $module, '1') == '2' ? 'checked' : ''); ?>></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="0" <?php echo e(old('permissions.' . $module, $module === 'settings' ? '0' : '1') == '0' ? 'checked' : ''); ?>></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="1" <?php echo e(old('permissions.' . $module, $module === 'settings' ? '0' : '1') == '1' ? 'checked' : ''); ?>></td>
<td><input type="radio" name="permissions[<?php echo e($module); ?>]" value="2" <?php echo e(old('permissions.' . $module, $module === 'settings' ? '0' : '1') == '2' ? 'checked' : ''); ?>></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>