diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 7f6465d5c5..33aaf5054b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -778,19 +778,28 @@ th { padding: 3px 4px; } -div { - &.required_label { - display: none; +.required_label { + display: none; - &.required { - color: #C00; - display: block; - font-size: 95%; - margin-left: 10rem; - margin-top: 3px; - } + &.required { + color: #C00; + display: block; + font-size: 95%; + margin-left: 10rem; + margin-top: 3px; } +} +.attr-control { + margin-left: 9.5rem; + + .required { + display: inline-block; + margin-left: 0; + } +} + +div { &.rows { clear: left; float: left; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 12a9e264a1..978c592b67 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -1006,13 +1006,15 @@ [% ELSE %] [% END %] - [% IF pa.type.mandatory %] -
Required
- [% END %] - Clear - [% IF ( pa.type.repeatable ) %] - New - [% END %] +
+ Clear + [% IF ( pa.type.repeatable ) %] + New + [% END %] + [% IF pa.type.mandatory %] + Required + [% END %] +
[% ELSE %] [% IF ( pa.type.authorised_value_category ) %] [% AuthorisedValues.GetByCode( pa.type.authorised_value_category, pa_value, 1 ) | html_line_break %] @@ -1231,13 +1233,14 @@ $(".patron-attributes").on( 'click', '.clear-attribute', function(e) { e.preventDefault(); - $(this).parent() + $(this).closest("li") .find('textarea').val("").end() .find('select').val("").end(); } ); $(".patron-attributes").on( 'click', '.clone-attribute', function() { - var clone = $(this).parent().clone().insertAfter( $(this).parent() ); + let li = $(this).closest("li"); + var clone = li.clone().insertAfter( li ); var newId = 50 + parseInt(Math.random() * 100000); $('input[type!="hidden"],select,textarea', clone).attr('id', 'patron-attr-' + newId).attr('value', '');