managegroups.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <h3 class="uk-h3"><?php echo $I18n->t('managegroups.groupmanagement'); ?></h3>
  2. <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
  3. <div class="uk-width-1-2">
  4. <h4 class="uk-h4"><?php echo $I18n->t('managegroups.addormodify'); ?></h4>
  5. <form class="uk-form-horizontal uk-margin-small" method="post">
  6. <div class="uk-margin">
  7. <label class="uk-form-label" for="name"><?php echo $I18n->t('managegroups.input.name'); ?> *</label>
  8. <div class="uk-form-controls">
  9. <input class="uk-input" id="name" type="text" autocomplete="off" name="fdata[name]"
  10. value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
  11. </div>
  12. </div>
  13. <div class="uk-margin">
  14. <label class="uk-form-label" for="description"><?php echo $I18n->t('managegroups.input.description'); ?> *</label>
  15. <div class="uk-form-controls">
  16. <input class="uk-input" id="description" type="text" autocomplete="off" name="fdata[description]"
  17. value="<?php echo $TemplateData['editData']['description'] ?? ''; ?>">
  18. </div>
  19. </div>
  20. <?php if(isset($TemplateData['editData']['name']) && (($TemplateData['editData']['protected'] ?? '') == '0' ? true : false)) { ?>
  21. <div class="uk-margin">
  22. <div class="uk-form-label"><?php echo $I18n->t('managegroups.input.delete'); ?> <span uk-icon="warning"></span></div>
  23. <div class="uk-form-controls uk-form-controls-text">
  24. <label>
  25. <input class="uk-checkbox" type="checkbox" name="fdata[doDelete]" value="1">
  26. <?php echo $I18n->t('managegroups.input.delete.howto'); ?>
  27. </label>
  28. </div>
  29. </div>
  30. <?php } ?>
  31. <div class="uk-margin">
  32. <button class="uk-button uk-button-primary" type="submit" name="submitForm">
  33. <?php echo $I18n->t('managegroups.input.save'); ?>
  34. </button>
  35. </div>
  36. </form>
  37. </div>
  38. <div class="uk-width-1-2">
  39. <h4 class="uk-h4"><?php echo $I18n->t('managegroups.availablegroups'); ?></h4>
  40. <table class="uk-table">
  41. <thead>
  42. <tr>
  43. <th><?php echo $I18n->t('global.name'); ?></th>
  44. <th><?php echo $I18n->t('global.description'); ?></th>
  45. <th></th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <?php foreach($TemplateData['existingGroups'] as $k=>$v) { ?>
  50. <tr>
  51. <td>
  52. <?php echo $v['name']; ?><br/>
  53. <small><?php echo $v['created']; ?></small>
  54. </td>
  55. <td><?php echo $v['description']; ?></td>
  56. <td>
  57. <a href="index.php?p=managegroups&m=edit&id=<?php echo $k; ?>" uk-icon="pencil"></a>
  58. </td>
  59. </tr>
  60. <?php } ?>
  61. </tbody>
  62. </table>
  63. </div>
  64. </div>