Change groups enable to block element

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: Felix A. Epp <work@felixepp.de>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-12-02 23:54:24 +01:00 committed by Felix A. Epp
parent 220452e943
commit 0d61707e25
2 changed files with 6 additions and 3 deletions

View File

@ -592,6 +592,10 @@ span.version {
white-space: pre-line; white-space: pre-line;
} }
#apps-list .groups-enable {
margin-top: 8px;
}
#app-category-1 { #app-category-1 {
margin-bottom: 18px; 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}}" /> <input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
{{#if active}} {{#if active}}
<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/> <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}}"/> <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> <label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
</span> </div>
<br />
<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px"> <input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
{{else}} {{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"));?>"/> <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"));?>"/>