From 0fd3d72416005e283182cea8fdaf1d8f8a2bf71c Mon Sep 17 00:00:00 2001 From: Katlyn Beck Date: Thu, 7 Jun 2018 18:34:47 +0000 Subject: [PATCH] CAT-172 patron edit reordered Reordered patron edit form to match KCLS xul client ordering -- Updates for current 3.2 applied by berick. Signed-off-by: Katlyn Beck Changes to be committed: modified: Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 --- .../src/templates/staff/circ/patron/t_edit.tt2 | 835 +++++++++------------ 1 file changed, 367 insertions(+), 468 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 3f95036ce6..f6fbe8d353 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -156,63 +156,35 @@ within the "form" by name for validation.
- + -
- [% draw_field_label('ac', 'barcode') %] -
- +
+ [% draw_field_label('au', 'dob') %] +
+ +
- - -
- [% l('Barcode is already in use') %] -
+ [% draw_example_text('au', 'dob') %]
- + -
- [% draw_field_label('au', 'usrname') %] +
+ [% draw_field_label('au', 'juvenile') %]
- -
-
-
- [% l('Username is already in use') %] -
+
- + -
- [% draw_field_label('au', 'passwd') %] - [% draw_form_input('au', 'passwd'); %] +
+ [% draw_field_label('au', 'prefix') %] [% draw_form_input('au', 'prefix'); %]
- + [% draw_example_text('au', 'prefix') %]
@@ -226,9 +198,6 @@ within the "form" by name for validation. [% l('Preferred Name') %] -
-
-
@@ -241,6 +210,15 @@ within the "form" by name for validation.
+ + +
+ [% draw_field_label('au', 'family_name') %] [% draw_form_input('au', 'family_name'); %] +
+ [% draw_example_text('au', 'family_name') %] +
+
+
@@ -249,7 +227,6 @@ within the "form" by name for validation.
[% draw_example_text('au', 'first_given_name') %]
-
@@ -261,16 +238,6 @@ within the "form" by name for validation.
- - -
- [% draw_field_label('au', 'family_name') %] - [% draw_form_input('au', 'family_name'); %] -
- [% draw_example_text('au', 'family_name') %] -
-
-
@@ -294,6 +261,16 @@ within the "form" by name for validation.
+ + +
+ [% draw_field_label('au', 'pref_family_name') %] + [% draw_form_input('au', 'pref_family_name'); %] +
+ [% draw_example_text('au', 'pref_family_name') %] +
+
+
@@ -314,16 +291,6 @@ within the "form" by name for validation.
- - -
- [% draw_field_label('au', 'pref_family_name') %] - [% draw_form_input('au', 'pref_family_name'); %] -
- [% draw_example_text('au', 'pref_family_name') %] -
-
-
@@ -359,130 +326,194 @@ within the "form" by name for validation.
- [% draw_field_label('au', 'alias') %] - [% draw_form_input('au', 'alias'); %] + [% draw_field_label('au', 'alias') %] [% draw_form_input('au', 'alias'); %]
[% draw_example_text('au', 'alias') %]
- + -
- [% draw_field_label('au', 'dob') %] -
- - +
+ -
- [% draw_example_text('au', 'dob') %] + +
+
+
+
+ [% l('This is a pending address') %] +
+
+ +
+
+
+
+ [% | l( + '{{addr._replaces.street1}}', + '{{addr._replaces.street2}}', + '
' + '{{addr._replaces.city}}', + '{{addr._replaces.state}}', + '{{addr._replaces.post_code}}') %] + Replaces: [_1] [_2] [_3] [_4], [_5] [_6] + [% END %] +
+
+
+ +
+
+ + +
+ [% draw_field_label('aua', 'address_type') %] [% draw_form_input('aua', 'address_type', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'address_type') %] +
-
- + -
- [% draw_field_label('au', 'juvenile') %] -
- +
+ [% draw_field_label('aua', 'post_code') %] [% draw_form_input('aua', 'post_code', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'post_code') %] +
-
- + -
- [% draw_field_label('au', 'ident_type') %] -
- +
+ [% draw_field_label('aua', 'street1') %] [% draw_form_input('aua', 'street1', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'street1') %] +
-
- + -
- [% draw_field_label('au', 'ident_value') %] - [% draw_form_input('au', 'ident_value') %] -
- [% draw_example_text('au', 'ident_value') %] +
+ [% draw_field_label('aua', 'street2') %] [% draw_form_input('aua', 'street2', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'street2') %] +
-
- + -
- [% draw_field_label('au', 'ident_type2') %] -
- +
+ [% draw_field_label('aua', 'city') %] [% draw_form_input('aua', 'city', 'addresses[$index]', '', 'addr._linked_owner') %] +
+ [% draw_example_text('aua', 'city') %] +
-
- -
- [% draw_field_label('au', 'ident_value2') %] - [% draw_form_input('au', 'ident_value2') %] -
- [% draw_example_text('au', 'ident_value2') %] + + +
+ [% draw_field_label('aua', 'county') %] [% draw_form_input('aua', 'county', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'county') %] +
-
+ - -
- [% draw_field_label('au', 'email') %] - [% draw_form_input('au', 'email', '', 'email') %] -
- - - [% l('Example: [_1]', - "{{org_settings['ui.patron.edit.au.email.example']}}") %] - +
+ [% draw_field_label('aua', 'state') %] [% draw_form_input('aua', 'state', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'state') %] +
-
-
-
- + + +
+ [% draw_field_label('aua', 'country') %] [% draw_form_input('aua', 'country', 'addresses[$index]', '', 'addr._linked_owner') + %] +
+ [% draw_example_text('aua', 'country') %] +
-
- + + + +
+ [% draw_field_label('aua', 'valid') %] +
+ +
+
+ [% draw_example_text('aua', 'valid') %] +
+ + + +
+ [% draw_field_label('aua', 'within_city_limits') %] +
+ +
+
+ [% draw_example_text('aua', 'within_city_limits') %] +
+
+ + + +
+ + +
+
- [% draw_field_label('au', 'day_phone') %] - [% draw_form_input('au', 'day_phone') %] + [% draw_field_label('au', 'day_phone') %] [% draw_form_input('au', 'day_phone') %]
- + [% draw_example_text('au', 'day_phone') %] - [% l('Example: [_1]', - "{{org_settings['ui.patron.edit.phone.example']}}") %] + [% l('Example: [_1]', "{{org_settings['ui.patron.edit.phone.example']}}") %]
@@ -490,17 +521,13 @@ within the "form" by name for validation.
- [% draw_field_label('au', 'evening_phone') %] - [% draw_form_input('au', 'evening_phone') %] + [% draw_field_label('au', 'evening_phone') %] [% draw_form_input('au', 'evening_phone') %]
- + [% draw_example_text('au', 'evening_phone') %] - [% l('Example: [_1]', - "{{org_settings['ui.patron.edit.phone.example']}}") %] + [% l('Example: [_1]', "{{org_settings['ui.patron.edit.phone.example']}}") %]
@@ -508,30 +535,43 @@ within the "form" by name for validation.
- [% draw_field_label('au', 'other_phone') %] - [% draw_form_input('au', 'other_phone') %] + [% draw_field_label('au', 'other_phone') %] [% draw_form_input('au', 'other_phone') %]
- + [% draw_example_text('au', 'other_phone') %] - [% l('Example: [_1]', - "{{org_settings['ui.patron.edit.phone.example']}}") %] + [% l('Example: [_1]', "{{org_settings['ui.patron.edit.phone.example']}}") %] + +
+
+ + +
+ [% draw_field_label('au', 'email') %] [% draw_form_input('au', 'email', '', 'email') %] +
+ + + [% l('Example: [_1]', "{{org_settings['ui.patron.edit.au.email.example']}}") %]
+
+
+ +
+
+ +
+
+
[% draw_field_label('au', 'home_ou') %]
- +
@@ -542,8 +582,7 @@ within the "form" by name for validation. [% draw_field_label('au', 'profile') %]
-
- -
+ +
[% draw_field_label('au', 'expire_date') %]
- +
@@ -589,11 +626,7 @@ within the "form" by name for validation.
[% draw_field_label('au', 'net_access_level') %]
-
@@ -604,10 +637,8 @@ within the "form" by name for validation.
[% draw_field_label('au', 'active') %]
- +
@@ -616,10 +647,8 @@ within the "form" by name for validation.
[% draw_field_label('au', 'barred') %]
- +
@@ -628,19 +657,16 @@ within the "form" by name for validation.
[% draw_field_label('au', 'master_account') %]
- +
- [% draw_field_label('au', 'claims_returned_count') %] - [% draw_form_input('au', 'claims_returned_count', - '', 'number', '!perms.UPDATE_PATRON_CLAIM_RETURN_COUNT') %] + [% draw_field_label('au', 'claims_returned_count') %] [% draw_form_input('au', 'claims_returned_count', '', 'number', '!perms.UPDATE_PATRON_CLAIM_RETURN_COUNT') + %]
[% draw_example_text('au', 'claims_returned_count') %]
@@ -649,9 +675,8 @@ within the "form" by name for validation.
- [% draw_field_label('au', 'claims_never_checked_out_count') %] - [% draw_form_input('au', 'claims_never_checked_out_count', - '', 'number', '!perms.UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT') %] + [% draw_field_label('au', 'claims_never_checked_out_count') %] [% draw_form_input('au', 'claims_never_checked_out_count', + '', 'number', '!perms.UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT') %]
[% draw_example_text('au', 'claims_never_checked_out_count') %]
@@ -662,11 +687,7 @@ within the "form" by name for validation.
[% draw_field_label('au', 'alert_message') %]
-
@@ -677,315 +698,193 @@ within the "form" by name for validation.
- - -
-
- -
-
- -
-
- -
-
- -
-
- - -
-
- -
-
- -
-
- -
-
- - -
-
- -
-
- + -
-
-
- -
-
-
- - [% l('Phone') %] -
-
- - [% l('Email') %] +
+
+
-
- - [% l('SMS') %] +
+
-
-
-
- -
-
- +
+
+ +
+
+ + +
-
-
-
- -
-
- - - +
+
+ +
+
+ +
-
-
-
- -
-
- + +
+
+ +
+
+ +
-
- -
- - -
-