From 9d874ce41b75bafccfc128da143ce3f632470187 Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Mon, 27 Sep 2021 13:56:11 +0200 Subject: [PATCH] refs #19837 [fid_bbi] improve form fields search favorites new list --- themes/fid_bbi/scss/blocks/form.scss | 14 +++++++ .../templates/myresearch/editlist.phtml | 39 ++++++------------- 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/themes/fid_bbi/scss/blocks/form.scss b/themes/fid_bbi/scss/blocks/form.scss index 23264e41652..14a36d3abcc 100644 --- a/themes/fid_bbi/scss/blocks/form.scss +++ b/themes/fid_bbi/scss/blocks/form.scss @@ -157,3 +157,17 @@ @extend label; flex: 1; } + +.form-edit-list { + fieldset { + border: 0; + float: none; + padding: 0; + width: 100%; + } + legend { + color: $black; + font-size: inherit; + width: 30%; + } +} diff --git a/themes/fid_bbi/templates/myresearch/editlist.phtml b/themes/fid_bbi/templates/myresearch/editlist.phtml index 243dbaefdce..d86923dec7b 100644 --- a/themes/fid_bbi/templates/myresearch/editlist.phtml +++ b/themes/fid_bbi/templates/myresearch/editlist.phtml @@ -55,35 +55,20 @@ $this->headTitle($this->translate($pageTitle)); <input type="hidden" name="public" value="0"> <?php else: ?> <div class="form-group"> - <div class="form-label" id="access-label"> - <?=$this->translate('Access')?> - </div> - <div class="form-inputs" aria-labelledby="access-label"> - <p> - <input - id="list_public_1" - type="radio" - name="public" - value="1" - <?=$this->list->isPublic() ? 'checked' : ''?> - > - <label for="list_public_1"> - <?=$this->translate('Public')?> + <?php /* refs #19837 improve favorite edit list - GG */ ?> + <fieldset> + <legend><?=$this->transEsc('Access') ?></legend> + <div class="radio inline"> + <label> + <input id="list_public_1" type="radio" name="public" value="1"<?php if ($this->list->isPublic()): ?> checked="checked"<?php endif; ?>/> <?=$this->transEsc('Public') ?> </label> - </p> - <p> - <input - id="list_public_0" - type="radio" - name="public" - value="0" - <?=!$this->list->isPublic() ? 'checked' : ''?> - > - <label for="list_public_0"> - <?=$this->translate('Private')?> + </div> + <div class="radio inline"> + <label> + <input id="list_public_0" type="radio" name="public" value="0"<?php if (!$this->list->isPublic()): ?> checked="checked"<?php endif; ?>/> <?=$this->transEsc('Private') ?> </label> - </p> - </div> + </div> + </fieldset> </div> <?php endif; ?> -- GitLab