page.sheet.php 1.5 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. if(!$myUser->can('navigation','read')) throw new Exception("Vous n'avez pas la permission pour executer cette fonctionnalité",403);
  3. require_once('MenuItem.class.php');
  4. $menuitem = MenuItem::provide();
  5. ?>
  6. <div class="navigation">
  7. <div id="menuitem-form" class="row menuitem-form" data-action="navigation_menuitem_save" data-id="<?php echo $menuitem->id; ?>">
  8. <div class="col-md-12">
  9. <h3>MenuItem</h3>
  10. <label for="icon">icon</label>
  11. <input id="icon" name="icon" class="form-control" placeholder="" value="<?php echo $menuitem->icon; ?>" type="text">
  12. <label for="label">label</label>
  13. <input id="label" name="label" class="form-control" placeholder="" value="<?php echo $menuitem->label; ?>" type="text">
  14. <label for="url">url</label>
  15. <input id="url" name="url" class="form-control" placeholder="" value="<?php echo $menuitem->url; ?>" type="text">
  16. <label for="color">color</label>
  17. <input id="color" name="color" class="form-control" placeholder="" value="<?php echo $menuitem->color; ?>" type="text">
  18. <label for="sort">sort</label>
  19. <input id="sort" name="sort" class="form-control" placeholder="" value="<?php echo $menuitem->sort; ?>" type="text">
  20. <label for="parent">parent</label>
  21. <input id="parent" name="parent" class="form-control" placeholder="" value="<?php echo $menuitem->parent; ?>" type="text">
  22. <br/>
  23. <div onclick="navigation_menuitem_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div>
  24. </div>
  25. </div>
  26. </div>