summaryrefslogtreecommitdiffstats
path: root/settings/templates/apps.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-18 14:29:45 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-03 12:42:35 +0200
commit53dc30af4fb09dabdd342ccd5dee9f20eaac52b0 (patch)
treea3aaf443b52356122bc001adee7e8a639b794b9d /settings/templates/apps.php
parentbf9b634fd8981e8cb11bf2c44fbe283588bc048e (diff)
downloadnextcloud-server-53dc30af4fb09dabdd342ccd5dee9f20eaac52b0.tar.gz
nextcloud-server-53dc30af4fb09dabdd342ccd5dee9f20eaac52b0.zip
Add option to enable app for specific groups
Diffstat (limited to 'settings/templates/apps.php')
-rw-r--r--settings/templates/apps.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index b7f3b6121ad..fa4cb48bce0 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,13 @@
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')); ?>" />
+ <input class="hidden" type="checkbox" id="groups_enable"/>
+ <label class="hidden" for="groups_enable"><?php p($l->t('Only for specific groups')); ?></label>
+ <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>