Bug 10865: (Follow-up) Add CSS style for form hints
This patch adds a new "hint" class for displaying information relating
to a form field. On the list edit screen the hint also has an alert
class to highlight it.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Works as advertised.
Tested with Bootstrap and prog theme. Some notes:
- When OpacAllowPublicListCreation is turned off, the permissions
don't show.
- When OpacAllowPublicListCreation is turned off, we could also hide
the Category pull down in the [new list] pop up, as there is only
Private left as an option.
- Maybe we should move the new list link outside of the tabs?
When OpacAllowPublicListCreation is turned off, but public lists
exist, the link 'new list' will still show on the public list tab,
but a private list will be created.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 9094b4a1bb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Conflicts:
koha-tmpl/opac-tmpl/bootstrap/css/opac.css
This commit is contained in:
parent
2d0731c5ab
commit
c706ace587
|
|
@ -744,6 +744,10 @@ fieldset.rows li.lradio label {
|
|||
width: auto;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
fieldset.rows .hint {
|
||||
display: block;
|
||||
margin-left: 11em;
|
||||
}
|
||||
fieldset.action {
|
||||
clear: both;
|
||||
float: none;
|
||||
|
|
@ -2357,6 +2361,9 @@ a.reviewlink:visited {
|
|||
fieldset.rows ol {
|
||||
margin-left: 0;
|
||||
}
|
||||
fieldset.rows .hint {
|
||||
margin-left: 0;
|
||||
}
|
||||
body {
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -559,7 +559,7 @@
|
|||
[% END %]
|
||||
</select>
|
||||
[% IF ( category2 && !OpacAllowPublicListCreation ) %]
|
||||
The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again.
|
||||
<span class="hint alert alert-info">The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again.</span>
|
||||
[% END %]
|
||||
</li>
|
||||
[% INCLUDE list_permissions %]
|
||||
|
|
|
|||
|
|
@ -733,6 +733,10 @@ fieldset {
|
|||
}
|
||||
}
|
||||
}
|
||||
.hint {
|
||||
display: block;
|
||||
margin-left : 11em;
|
||||
}
|
||||
}
|
||||
&.action {
|
||||
clear : both;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,9 @@
|
|||
ol {
|
||||
margin-left : 0;
|
||||
}
|
||||
.hint {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
body {
|
||||
|
|
|
|||
Loading…
Reference in New Issue