1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <h3 class="uk-h3"><?php echo $I18n->t('managegroups.groupmanagement'); ?></h3>
- <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
- <div class="uk-width-1-2">
- <h4 class="uk-h4"><?php echo $I18n->t('managegroups.addormodify'); ?></h4>
- <form class="uk-form-horizontal uk-margin-small" method="post">
- <div class="uk-margin">
- <label class="uk-form-label" for="name"><?php echo $I18n->t('managegroups.input.name'); ?> *</label>
- <div class="uk-form-controls">
- <input class="uk-input" id="name" type="text" autocomplete="off" name="fdata[name]"
- value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
- </div>
- </div>
- <div class="uk-margin">
- <label class="uk-form-label" for="description"><?php echo $I18n->t('managegroups.input.description'); ?> *</label>
- <div class="uk-form-controls">
- <input class="uk-input" id="description" type="text" autocomplete="off" name="fdata[description]"
- value="<?php echo $TemplateData['editData']['description'] ?? ''; ?>">
- </div>
- </div>
- <?php if(isset($TemplateData['editData']['name']) && (($TemplateData['editData']['protected'] ?? '') == '0' ? true : false)) { ?>
- <div class="uk-margin">
- <div class="uk-form-label"><?php echo $I18n->t('managegroups.input.delete'); ?> <span uk-icon="warning"></span></div>
- <div class="uk-form-controls uk-form-controls-text">
- <label>
- <input class="uk-checkbox" type="checkbox" name="fdata[doDelete]" value="1">
- <?php echo $I18n->t('managegroups.input.delete.howto'); ?>
- </label>
- </div>
- </div>
- <?php } ?>
- <div class="uk-margin">
- <button class="uk-button uk-button-primary" type="submit" name="submitForm">
- <?php echo $I18n->t('managegroups.input.save'); ?>
- </button>
- </div>
- </form>
- </div>
- <div class="uk-width-1-2">
- <h4 class="uk-h4"><?php echo $I18n->t('managegroups.availablegroups'); ?></h4>
- <table class="uk-table">
- <thead>
- <tr>
- <th><?php echo $I18n->t('global.name'); ?></th>
- <th><?php echo $I18n->t('global.description'); ?></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach($TemplateData['existingGroups'] as $k=>$v) { ?>
- <tr>
- <td>
- <?php echo $v['name']; ?><br/>
- <small><?php echo $v['created']; ?></small>
- </td>
- <td><?php echo $v['description']; ?></td>
- <td>
- <a href="index.php?p=managegroups&m=edit&id=<?php echo $k; ?>" uk-icon="pencil"></a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- </div>
|