Archived
1
0

Changes of the last few months including restructuring system from using only ranks to permissions

This commit is contained in:
Marcel
2018-12-26 18:19:28 +01:00
parent 72f3434803
commit 1a1ac17ecf
38 changed files with 845 additions and 361 deletions

View File

@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="right_col" role="main">
<div class="row">
@@ -77,5 +77,36 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</div>
</div>
</div>
<div class="col-md-6 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_title">
<h2>Individuelle Rechte</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form method="POST" class="form">
<?php foreach ($availablePermissions as $group => $perms): ?>
<h4>
<?= $group ?>
<input type="checkbox" class="group-all">
</h4>
<ul>
<?php foreach ($perms as $perm):
$name = $group . '.' . $perm; ?>
<li>
<label data-toggle="tooltip" title="blablabla" for="<?= $group . $perm ?>"><?= $name ?></label>
<input type="checkbox" value="true" name="permissions[<?= $group . $perm ?>]" id="<?= $group . $perm ?>" <?= in_array($name, $permissions) ? 'checked' : '' ?>>
</li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
<input type="submit" class="btn btn-primary" value="Speichern">
</form>
</div>
</div>
</div>
</div>
</div>