Merge pull request #2491 from nextcloud/fix-groups-enable-visual

Put "Enable only for specific groups" into a new div
This commit is contained in:
Roeland Jago Douma 2016-12-05 08:45:18 +01:00 committed by GitHub
commit eeb81ec783
2 changed files with 6 additions and 3 deletions

View File

@ -629,6 +629,10 @@ span.version {
white-space: pre-line;
}
#apps-list .groups-enable {
margin-top: 8px;
}
#app-category-1 {
margin-bottom: 18px;
}

View File

@ -125,11 +125,10 @@ script(
<input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
{{#if active}}
<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
<span class="groups-enable">
<div class="groups-enable">
<input type="checkbox" class="groups-enable__checkbox checkbox" id="groups_enable-{{id}}"/>
<label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
</span>
<br />
</div>
<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
{{else}}
<input class="enable{{#if needsDownload}} needs-download{{/if}}" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>