123456789101112131415161718 |
- {"label":"Fiche entité","syntax":"php"}
- <?php
- User::check_access('{{plugin}}','read');
- require_once(__DIR__.SLASH.'{{Entity}}.class.php');
- ${{entity}} = {{Entity}}::provide();
- ?>
- <div class="{{plugin}}">
- <div id="{{entity-readable}}-form" class="row {{entity-readable}}-form" data-action="{{plugin}}_{{entity_readable}}_save" data-id="<?php echo ${{entity}}->id; ?>">
- <div class="col-md-12">
- <h3>{{Entity}}</h3>{{:fields}}
- <label for="{{value.key}}">{{value.label}}</label>
- {{value.input}}{{/:fields}}
- <br/>
- <div onclick="{{plugin}}_{{entity_readable}}_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div>
- </div>
- </div>
- </div>
|