From c706ace5872a3eef0ca44d67d074b8fd1354b7a8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 9 Apr 2014 12:41:24 -0400 Subject: [PATCH] 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 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 (cherry picked from commit 9094b4a1bbff95e0f8e5747a805dacede165bc9a) Signed-off-by: Fridolin Somers Conflicts: koha-tmpl/opac-tmpl/bootstrap/css/opac.css --- koha-tmpl/opac-tmpl/bootstrap/css/opac.css | 7 +++++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/less/opac.less | 4 ++++ koha-tmpl/opac-tmpl/bootstrap/less/responsive.less | 3 +++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css index 99719d5ef4..542ecd2c8f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css +++ b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css @@ -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; } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 39159ccb75..7d77432c38 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -559,7 +559,7 @@ [% END %] [% 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. + 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. [% END %] [% INCLUDE list_permissions %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less index 4e1e42200e..0737cfa481 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less +++ b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less @@ -733,6 +733,10 @@ fieldset { } } } + .hint { + display: block; + margin-left : 11em; + } } &.action { clear : both; diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less b/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less index 4714ee76f9..5b4ed29a4b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less +++ b/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less @@ -81,6 +81,9 @@ ol { margin-left : 0; } + .hint { + margin-left: 0; + } } } body { -- 2.39.5