From 95fc5addec189d21f4d714e3863c81d85d95ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu> Date: Thu, 11 Dec 2014 15:24:36 +0100 Subject: [PATCH] adjust styling of missing dependencies in apps management --- settings/css/settings.css | 5 +++++ settings/templates/apps.php | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 4594a22c6d..5cd9207fd6 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -200,6 +200,11 @@ span.version { margin-left:1em; margin-right:1em; color:#555; } border-bottom: 1px solid #e8e8e8; } +.app-dependencies { + margin-top: 10px; + color: #c33; +} + .missing-dependencies { list-style: initial; list-style-type: initial; diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 3bb0d45f58..48fe0f5a9c 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -52,12 +52,14 @@ </p> {{/if}} {{#unless canInstall}} - <div><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></div> + <div class="app-dependencies"> + <p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p> <ul class="missing-dependencies"> {{#each missingDependencies}} <li>{{this}}</li> {{/each}} </ul> + </div> {{/unless}} {{#if update}} @@ -70,9 +72,7 @@ <br /> <input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px"> {{else}} - {{#if canInstall}} - <input class="enable" type="submit" data-appid="{{id}}" data-active="false" value="<?php p($l->t("Enable"));?>"/> - {{/if}} + <input class="enable" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/> {{/if}} {{#if canUnInstall}} <input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" /> -- GitLab