summaryrefslogtreecommitdiffstats
path: root/settings/templates/apps.php
diff options
context:
space:
mode:
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>