1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- global $myUser;
- User::check_access('rank','configure');
- ?>
- <div class="row">
- <div class="col-md-12">
- <br>
- <h3>Rangs & Accès</h3>
- <hr/>
- <div id="rankForm" class="row" data-action="save_rank">
- <div class="col-md-4">
- <label for="label">Libellé :</label>
- <input id="label" class="form-control" placeholder="Libellé" type="text">
- </div>
- <div class="col-md-4">
- <label for="description">Description :</label>
- <input id="description" class="form-control" placeholder="Description" type="text">
- </div>
- <div class="col-md-4 text-right">
- <div onclick="save_rank();" class="btn btn-success noLabel"><i class="fas fa-check"></i> Enregistrer</div>
- </div>
- </div>
- <br/>
- <div class="panel panel-default">
- <div class="panel-heading">Rangs existants :</div><br>
- <table id="ranks" class="table table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>Libellé</th>
- <th>Description</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr data-id="{{id}}" class="hidden">
- <td>{{id}}</td>
- <td>{{label}}</td>
- <td>
- <span>{{description}}</span>
- <div class="rank-rights text-muted">
- <ul>
- {{#rights}}
- <li class="d-flex">
- <div class="mr-2">
- <span class="text-info font-weight-bold">{{firm}}</span>
- <code class="">{{section}}</code>
- </div>
- <div>
- {{#read}}<i title="Lecture" class="text-dark far fa-eye"></i>{{/read}}
- {{#edit}}<i title="Edition" class="text-info fas fa-pencil-alt"></i>{{/edit}}
- {{#delete}}<i title="Suppression" class="text-danger far fa-trash-alt"></i>{{/delete}}
- {{#configure}}<i title="Configuration" class="text-warning fas fa-wrench"></i>{{/configure}}
- </div>
- </li>
- {{/rights}}
- </ul>
- </div>
- </td>
- <td class="option option-3 text-right">
- <a href="setting.php?section=right&rank={{id}}" class="btn btn-primary btn-squarred btn-mini"><i class="fas fa-lock"></i></a>
- <div onclick="edit_rank(this)" class="btn btn-info btn-squarred btn-mini"><i class="fas fa-pencil-alt"></i></div>
- <div onclick="delete_rank(this)" class="btn btn-danger btn-squarred btn-mini"><i class="fas fa-times"></i></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
|