From 97c4f7122d81d1c94da1a89d0f765fd634dd7387 Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Wed, 28 Apr 2021 12:15:08 +0200
Subject: [PATCH] refs #19423 [finc] improve form fields search favorites new
 list

* set fieldset legend into template
* styling fieldset legend
* move legend position
---
 themes/finc/scss/compiled.scss                | 12 ++++++++++
 .../finc/templates/myresearch/editlist.phtml  | 24 ++++++++++---------
 2 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/themes/finc/scss/compiled.scss b/themes/finc/scss/compiled.scss
index 64437ba4f50..117e5c97bd9 100644
--- a/themes/finc/scss/compiled.scss
+++ b/themes/finc/scss/compiled.scss
@@ -380,6 +380,18 @@ fieldset {
   }
 }
 
+.form-edit-list {
+  fieldset {
+    border: 0;
+    float: none;
+    padding: 0;
+  }
+  legend {
+    font-size: $font-size-base;
+    margin-left: -14px;
+  }
+}
+
 //// Legend elements
 // Limit to etc in Advanced search
 legend {
diff --git a/themes/finc/templates/myresearch/editlist.phtml b/themes/finc/templates/myresearch/editlist.phtml
index 364c4bbfdcb..7495bb34897 100644
--- a/themes/finc/templates/myresearch/editlist.phtml
+++ b/themes/finc/templates/myresearch/editlist.phtml
@@ -31,17 +31,19 @@
     <input type="hidden" name="public" value="0" />
   <?php else: ?>
     <div class="form-group">
-      <label class="control-label"><?=$this->transEsc('Access') ?></label>
-      <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>
-      </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>
-      </div>
+      <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>
+        </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>
+        </div>
+      </fieldset>
     </div>
   <?php endif; ?>
   <div class="form-group">
-- 
GitLab