Skip to content

Commit

Permalink
Merge pull request #40548 from nextcloud/fix/37082-fix-visual-label-f…
Browse files Browse the repository at this point in the history
…or-system-tag-on-settings-page

Add label for input field and select and adjust styles
  • Loading branch information
JuliaKirschenheuter authored Sep 21, 2023
2 parents d644525 + b933e2e commit a1a1b99
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
14 changes: 14 additions & 0 deletions apps/systemtags/css/settings.css
Original file line number Diff line number Diff line change
@@ -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%;
Expand Down
30 changes: 19 additions & 11 deletions apps/systemtags/templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,25 @@
<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>

0 comments on commit a1a1b99

Please sign in to comment.