managegroups.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <h3><?php echo $I18n->t('managegroups.groupmanagement'); ?></h3>
  2. <h4><?php echo $I18n->t('managegroups.addormodify'); ?></h4>
  3. <form class="maxSizeForm" method="post">
  4. <div class="field-row-stacked">
  5. <label for="name"><?php echo $I18n->t('managegroups.input.name'); ?> *</label>
  6. <input id="name" type="text" autocomplete="off" name="fdata[name]"
  7. value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
  8. </div>
  9. <div class="field-row-stacked">
  10. <label for="description"><?php echo $I18n->t('managegroups.input.description'); ?> *</label>
  11. <input id="description" type="text" autocomplete="off" name="fdata[description]"
  12. value="<?php echo $TemplateData['editData']['description'] ?? ''; ?>">
  13. </div>
  14. <?php if(isset($TemplateData['editData']['name']) && (($TemplateData['editData']['protected'] ?? '') == '0' ? true : false)) { ?>
  15. <div class="field-row-stacked">
  16. <p>
  17. <?php echo $I18n->t('managegroups.input.delete.howto'); ?>
  18. </p>
  19. </div>
  20. <div class="field-row-stacked">
  21. <input id="doDelete" type="checkbox" name="fdata[doDelete]" value="1">
  22. <label for="doDelete"><?php echo $I18n->t('managegroups.input.delete'); ?></label>
  23. </div>
  24. <?php } ?>
  25. <div class="field-row-stacked">
  26. <input type="submit" name="submitForm" value="<?php echo $I18n->t('managegroups.input.save'); ?>" />
  27. </div>
  28. </form>
  29. <h4><?php echo $I18n->t('managegroups.availablegroups'); ?></h4>
  30. <div class="sunken-panel">
  31. <table width="100%">
  32. <thead>
  33. <tr>
  34. <th width="200px"><?php echo $I18n->t('global.name'); ?></th>
  35. <th><?php echo $I18n->t('global.created'); ?></th>
  36. <th><?php echo $I18n->t('global.description'); ?></th>
  37. <th></th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. <?php foreach($TemplateData['existingGroups'] as $k=>$v) { ?>
  42. <tr>
  43. <td><?php echo $v['name']; ?></td>
  44. <td><?php echo $v['created']; ?></td>
  45. <td><?php echo $v['description']; ?></td>
  46. <td>
  47. <a href="index.php?p=managegroups&m=edit&id=<?php echo $k; ?>"><?php echo $I18n->t('global.edit'); ?></a>
  48. </td>
  49. </tr>
  50. <?php } ?>
  51. </tbody>
  52. </table>
  53. </div>