12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- global $myUser;
- User::check_access('planning','configure');
- require_once(__DIR__.SLASH.'PlanningEventType.class.php');
- ?>
- <div class="row">
- <div class="col-md-12">
- <br>
- <?php if($myUser->can('planning', 'edit')) : ?>
- <div onclick="planning_setting_save();" class="btn btn-success float-right"><i class="fas fa-check"></i> Enregistrer</div>
- <?php endif; ?>
- <h3>Réglages planning</h3>
- <div class="clear"></div>
- <hr>
- </div>
- </div>
- <div class="row">
- <!-- search results -->
- <div class="col-md-12">
- <div class="tab-container noPrint">
- <ul class="nav nav-tabs" role="tablist">
- <li class="nav-item"><a data-toggle="tab" class="nav-link active" href="#tab-types" aria-controls="tab-types" aria-selected="false">Types d'événements</a></li>
- <li class="nav-item"><a data-toggle="tab" class="nav-link" href="#tab-settings" aria-controls="tab-settings" aria-selected="false">Paramètres</a></li>
- </ul>
- </div>
- <div class="tab-content">
- <!-- Onglet Types d'événement -->
- <div class="tab-pane show active in" id="tab-types" role="tabpanel" aria-labelledby="tab-types"><br>
- <legend>Types d'évenements :</legend>
- <table id="planning_event_types" class="table table-striped " data-entity-search="planning_event_type_search">
- <thead>
- <tr>
- <th data-sortable="label">Libellé</th>
- <?php if($myUser->superadmin): ?>
- <th class="text-center">Éditable<small class="text-muted"> - Modifiable par les non-superadmin</small></th>
- <?php endif; ?>
- <th></th>
- </tr>
- </thead>
- <thead>
- <tr id="event-type-form" data-action="planning_event_type_save" data-id="">
- <th>
- <div class="input-group">
- <input id="icon" data-type="icon" value="fas fa-info-circle input-group-prepend" class="form-control" type="text">
- <input id="label" name="label" placeholder="Ajoutez un type d'évenement, ex : Congès" class="form-control"type="text">
- <input id="color" name="color" class="form-control col-sm-1 input-group-append" type="text" data-type="color">
- </div>
- </th>
- <?php if($myUser->superadmin): ?>
- <th class="text-center"><input id="editable" data-type="checkbox" class="form-control" type="checkbox"></th>
- <?php endif; ?>
- <th><div onclick="planning_event_type_save();" class="btn btn-success right"><i class="fas fa-check"></i> Enregistrer</div></th>
- </tr>
- </thead>
- <tbody>
- <tr data-id="{{id}}" class="hidden">
- <td><div class="planning-type-chip" style="background:{{color}};color:{{textcolor}}"><i class="{{icon}}"></i></div> {{label}}</td>
- <?php if($myUser->superadmin): ?>
- <td class="text-center">
- {{#editable}}<i class="fas fa-check text-success"></i>{{/editable}}
- {{^editable}}<i class="fas fa-times text-danger"></i> {{/editable}}
- </td>
- <?php endif; ?>
- <td class="text-right">
- {{#superadmin}}
- <div class="btn btn-info btn-mini btn-squarred" onclick="planning_event_type_edit(this);"><i class="fas fa-pencil-alt"></i></div>
- <div class="btn btn-danger btn-mini btn-squarred" onclick="planning_event_type_delete(this);"><i class="far fa-trash-alt"></i></div>
- {{/superadmin}}
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- Onglet Paramètres -->
- <div class="tab-pane" id="tab-settings" role="tabpanel" aria-labelledby="tab-settings"><br>
- <?php echo Configuration::html('planning'); ?>
- </div>
- </div>
- </div>
- <div class="row">
- <!-- search results -->
- <div class="col-xl-12">
-
- </div>
- </div>
|