diff options
author | icewind1991 <robin@icewind.nl> | 2014-06-03 19:01:12 +0200 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-06-03 19:01:12 +0200 |
commit | cdf8a123e7133fdb59991ee1bc830e625727460f (patch) | |
tree | 90fb931f8f0adccd8687c154723e53d5fb3e7dec /settings/templates | |
parent | e4c3ff03d60d5b541e483050174b1b7456e4babd (diff) | |
parent | a3202f1f031b443433aefc74958b268ceae3e024 (diff) | |
download | nextcloud-server-cdf8a123e7133fdb59991ee1bc830e625727460f.tar.gz nextcloud-server-cdf8a123e7133fdb59991ee1bc830e625727460f.zip |
Merge pull request #8264 from owncloud/app-enable-by-group
Add the option to enable apps only for specific groups
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/apps.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php index b7f3b6121ad..776c3220462 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -16,7 +16,7 @@ <?php endif; ?> <?php foreach($_['apps'] as $app):?> - <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>" + <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>" data-groups="<?php p($app['groups']) ?>" <?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?> data-type="<?php p($app['internal'] ? 'internal' : 'external') ?>" data-installed="1"> <a class="app<?php if(!$app['internal']) p(' externalapp') ?>" @@ -53,6 +53,16 @@ print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p> <input class="enable hidden" type="submit" /> <input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" /> + <br /> + <input class="hidden" type="checkbox" id="groups_enable"/> + <label class="hidden" for="groups_enable"><?php p($l->t('Enable only for specific groups')); ?></label> + <br /> + <select class="hidden" id="group_select" multiple="multiple" title="<?php p($l->t('All')); ?>"> + <?php foreach($_['groups'] as $group):?> + <option value="<?php p($group);?>"><?php p($group); ?></option> + <?php endforeach;?> + </select> + <div class="warning hidden"></div> </div> </div> |