diff options
author | Julia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com> | 2023-09-21 12:20:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 12:20:51 +0200 |
commit | a1a1b990e62c046d17fe0a2f7991f102a93361c0 (patch) | |
tree | 979d79e8816f560e3fd0adeb8c44bb34520e0a04 | |
parent | d6445254ac8d54b746a45905cfba7ceade858d86 (diff) | |
parent | b933e2e60d25d885e5fc8c1950031ede2219478e (diff) | |
download | nextcloud-server-a1a1b990e62c046d17fe0a2f7991f102a93361c0.tar.gz nextcloud-server-a1a1b990e62c046d17fe0a2f7991f102a93361c0.zip |
Merge pull request #40548 from nextcloud/fix/37082-fix-visual-label-for-system-tag-on-settings-page
Add label for input field and select and adjust styles
-rw-r--r-- | apps/systemtags/css/settings.css | 14 | ||||
-rw-r--r-- | apps/systemtags/templates/admin.php | 30 |
2 files changed, 33 insertions, 11 deletions
diff --git a/apps/systemtags/css/settings.css b/apps/systemtags/css/settings.css index 02713e35219..eb1d2ad45f6 100644 --- a/apps/systemtags/css/settings.css +++ b/apps/systemtags/css/settings.css @@ -1,6 +1,20 @@ .systemtag-input { display: flex; flex-wrap: wrap; + align-items: center; +} +.systemtag-input--name { + margin-right: 3px; +} +.systemtag-input--name, +.systemtag-input--level { + display: flex; + flex-direction: column; +} +.systemtag-input--actions { + margin-top: 25px; + display: flex; + flex-direction: row; } #systemtags .select2-container { width: 100%; diff --git a/apps/systemtags/templates/admin.php b/apps/systemtags/templates/admin.php index 998e8628c3d..881172944df 100644 --- a/apps/systemtags/templates/admin.php +++ b/apps/systemtags/templates/admin.php @@ -36,17 +36,25 @@ style('systemtags', 'settings'); <h3 id="systemtag_create"><?php p($l->t('Create a new tag')); ?></h3> <div class="systemtag-input"> - <input type="text" id="systemtag_name" name="systemtag_name" placeholder="<?php p($l->t('Name')); ?>"> - - <select id="systemtag_level"> - <option value="3"><?php p($l->t('Public')); ?></option> - <option value="2"><?php p($l->t('Restricted')); ?></option> - <option value="0"><?php p($l->t('Invisible')); ?></option> - </select> - - <a id="systemtag_delete" class="hidden button"><span><?php p($l->t('Delete')); ?></span></a> - <a id="systemtag_reset" class="button"><span><?php p($l->t('Reset')); ?></span></a> - <a id="systemtag_submit" class="button"><span><?php p($l->t('Create')); ?></span></a> + <div class="systemtag-input--name"> + <label for="systemtag_name"><?php p($l->t('Tag name')); ?></label> + <input type="text" id="systemtag_name" name="systemtag_name" placeholder="<?php p($l->t('Name')); ?>"> + </div> + + <div class="systemtag-input--level"> + <label for="systemtag_level"><?php p($l->t('Tag level')); ?></label> + <select id="systemtag_level"> + <option value="3"><?php p($l->t('Public')); ?></option> + <option value="2"><?php p($l->t('Restricted')); ?></option> + <option value="0"><?php p($l->t('Invisible')); ?></option> + </select> + </div> + + <div class="systemtag-input--actions"> + <a id="systemtag_delete" class="hidden button systemtag-input--actions-button"><span><?php p($l->t('Delete')); ?></span></a> + <a id="systemtag_reset" class="button systemtag-input--actions-button"><span><?php p($l->t('Reset')); ?></span></a> + <a id="systemtag_submit" class="button systemtag-input--actions-button"><span><?php p($l->t('Create')); ?></span></a> + </div> </div> </form> |