page.sheet.{{entity.readable}}.php 678 B

123456789101112131415161718
  1. {"label":"Fiche entité","syntax":"php"}
  2. <?php
  3. User::check_access('{{plugin}}','read');
  4. require_once(__DIR__.SLASH.'{{Entity}}.class.php');
  5. ${{entity}} = {{Entity}}::provide();
  6. ?>
  7. <div class="{{plugin}}">
  8. <div id="{{entity-readable}}-form" class="row {{entity-readable}}-form" data-action="{{plugin}}_{{entity_readable}}_save" data-id="<?php echo ${{entity}}->id; ?>">
  9. <div class="col-md-12">
  10. <h3>{{Entity}}</h3>{{:fields}}
  11. <label for="{{value.key}}">{{value.label}}</label>
  12. {{value.input}}{{/:fields}}
  13. <br/>
  14. <div onclick="{{plugin}}_{{entity_readable}}_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div>
  15. </div>
  16. </div>
  17. </div>