From: Garry Collum Date: Mon, 22 Mar 2021 19:09:16 +0000 (-0400) Subject: LP1920273: improve Bootstrap self registration display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9109d90a049b06bac4ba7e871a891c533b07f470;p=evergreen%2Fpines.git LP1920273: improve Bootstrap self registration display This patch makes the form in the self-registration screen in the Bootstrap opac a little responsive on smaller devices. To test. 1. Turn on self-registration in the library settings. 2. Go to the self-registration screen and make the screen as small as possible. 3. Apply the patch. 4. Notice that the form labels and input boxes are now more aesthetic. 5. Create some self-registration requests to make sure the form captures the data. Signed-off-by: Garry Collum Signed-off-by: Rogan Hamby Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates-bootstrap/opac/register.tt2 b/Open-ILS/src/templates-bootstrap/opac/register.tt2 index 40eb721102..73cc27388b 100755 --- a/Open-ILS/src/templates-bootstrap/opac/register.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/register.tt2 @@ -47,8 +47,8 @@ register_fields = [ %]

[% l('Account Registration') %]

-
-
+
+

[% l('Request a Library Card')%]

★ = Required Field
@@ -96,30 +96,29 @@ register_fields = [ [% END %]
- - - - - + %] + +
+ [% IF ctx.register.invalid.bad_home_ou %] + + [% l('Please select a valid library') %] + + [% END %] +
+ [% # <=== shifting code left for readability -# render the table row for each of the register fields +# render a row for each of the register fields FOR field_def IN register_fields; fclass = field_def.class; fname = field_def.name; @@ -148,20 +147,23 @@ FOR field_def IN register_fields; NEXT UNLESS require OR show; %] - - - - - + + [% END %] + + [% IF ctx.register.opt_in_settings.size > 0 %] [% FOR optin IN ctx.register.opt_in_settings %] - - - - - + +
+ +
+ [% END %] [% END %] - - - -
- - [% INCLUDE build_org_selector +
+ +
+ [% INCLUDE build_org_selector name='stgu.home_ou' value=value || ctx_org can_have_users_only=1 valid_org_list=ctx.register.valid_orgs - %] -
- [% IF ctx.register.invalid.bad_home_ou %] - - [% l('Please select a valid library') %] - - [% END %] -
- - - [% IF fname == "dob"; %] -
- -
- -
-
- [% ELSE; %] + +
+ +
+ [% IF fname == "dob"; %] +
+ +
+ +
+
+ [% ELSE; %] [% END %] -
- [% IF require %] - - [% END %] + + + +
[% IF invalid_require %] @@ -198,36 +199,39 @@ FOR field_def IN register_fields; [% l('(Example: [_1])', example) %] [% END %] - -
+
+ +
-
+ +
+
+
[% END %]
@@ -260,4 +264,4 @@ $(document).ready(function(){ }); $('.datepicker').datepicker("setDate", new Date()); }); - \ No newline at end of file +