12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {"label":"Setting liste","syntax":"php"}
- <?php
- global $myUser;
- User::check_access('{{plugin}}','configure');
- require_once(__DIR__.SLASH.'{{Entity}}.class.php');
- ?>
- <br>
- <h3>Réglages {{plugin}}</h3>
- <hr/>
- <div class="row">
- {{~! Recherche non avancée}}
- <div class="col-md-8">
- <select id="filters" data-type="filter" data-label="Recherche" data-function="{{plugin}}_{{entity_readable}}_search">
- <option value="label" data-filter-type="text">Libellé</option>
- </select>
- </div>
- {{/~}}
- <div class="col-md-4">
- <?php if($myUser->can('{{plugin}}', 'edit')) : ?>
- <a href="index.php?module={{plugin}}&page=sheet.{{entity.readable}}" class="btn btn-success right"><i class="fas fa-plus"></i> Ajouter</a>
- <?php endif; ?>
- </div>
- </div>
- <br/>
- <div class="row">
- <!-- search results -->
- <div class="col-xl-12">
- <table id="{{entity-readable}}s" class="table table-striped " data-entity-search="{{plugin}}_{{entity_readable}}_search">
- <thead>
- <tr>
- <th>#</th>{{:fields}}
- <th data-sortable="{{key}}">{{value.label}}</th>{{/:fields}}
- <th></th>
- </tr>
- </thead>
- {{~ Formulaire dans le tableau de liste }}
- <thead>
- <tr id="{{entity-readable}}-form" data-action="{{plugin}}_{{entity_readable}}_save" data-id="">
- <th>#</th>{{:fields}}
- <th><input id="{{key}}" name="{{key}}" class="form-control" placeholder="" value="" type="text"></th>{{/:fields}}
- <th><div onclick="{{plugin}}_{{entity_readable}}_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div></th>
- </tr>
- </thead>
- {{/~}}
- <tbody>
- <tr data-id="{{id}}" class="hidden">
- <td>{{id}}</td>{{:fields}}
- <td>{{{{value.key}}}}</td>{{/:fields}}
- <td>
- <div class="btn-group btn-group-sm" role="group">
- {{~! Formulaire dans le tableau de liste }}
- <a class="btn btn-info" href="index.php?module={{plugin}}&page=sheet.{{entity.readable}}&id={{id}}"><i class="fas fa-pencil-alt"></i></a>
- {{/~}}
- {{~ Formulaire dans le tableau de liste }}
- <div class="btn btn-info " onclick="{{plugin}}_{{entity_readable}}_edit(this);"><i class="fas fa-pencil-alt"></i></div>
- {{/~}}
- <div class="btn btn-danger " onclick="{{plugin}}_{{entity_readable}}_delete(this);"><i class="far fa-trash-alt"></i></div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- {{~! Recherche non avancée}}<!-- Pagination -->
-
- <ul class="pagination justify-content-center">
- <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');{{plugin}}_{{entity_readable}}_search();">
- <span class="page-link">{{label}}</span>
- </li>
- </ul>{{/~}}
- </div>
- </div>
|