Staff Client Customization: Patron Registration Form Tweaks
authorMcCanna <tmccanna@georgialibraries.org>
Wed, 8 Nov 2017 20:35:19 +0000 (15:35 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 14 Sep 2021 18:00:12 +0000 (14:00 -0400)
- Fixed alignment of checkboxes.
- Hid Claims returned on new patron registration form.
- Hid Claims never checked out.
- Made survey drop 'up' instead of dropdown so it
  doesn't disappear off of page.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2

index 4b4925d..f2d9d09 100644 (file)
@@ -398,6 +398,7 @@ within the "form" by name for validation.
 <div class="row reg-field-row" ng-show="show_field('au.juvenile')">
   [% draw_field_label('au', 'juvenile') %]
   <div class="col-md-3 reg-field-input">
+    <div class='checkbox' style="margin-left:20px;">
       <input 
         aria-labelledby="{{idl_fields.au.juvenile.name}}"
         ng-change="field_modified()" 
@@ -648,6 +649,7 @@ within the "form" by name for validation.
 <div class="row reg-field-row" ng-show="show_field('au.active')">
   [% draw_field_label('au', 'active') %]
   <div class="col-md-3 reg-field-input">
+    <div class='checkbox' style="margin-left:20px;">
       <input 
         aria-labelledby="{{idl_fields.au.active.name}}"
         ng-change="field_modified()" 
@@ -661,6 +663,7 @@ within the "form" by name for validation.
 <div class="row reg-field-row" ng-show="show_field('au.barred')">
   [% draw_field_label('au', 'barred') %]
   <div class="col-md-3 reg-field-input">
+    <div class='checkbox' style="margin-left:20px;">
       <input 
         aria-labelledby="{{idl_fields.au.barred.name}}"
         ng-change="field_modified()" 
@@ -674,6 +677,7 @@ within the "form" by name for validation.
 <div class="row reg-field-row" ng-show="show_field('au.master_account')">
   [% draw_field_label('au', 'master_account') %]
   <div class="col-md-3 reg-field-input">
+    <div class='checkbox' style="margin-left:20px;">
       <input 
         aria-labelledby="{{idl_fields.au.master_account.name}}"
         ng-change="field_modified()" 
@@ -683,7 +687,8 @@ within the "form" by name for validation.
 </div>
 
 <!-- CLAIMS_RETURNED_COUNT -->
-
+<!-- PINES Customization: hide field if new patron registration -->
+<div ng-if="patron_id">
 <div class="row reg-field-row" ng-show="show_field('au.claims_returned_count')">
   [% draw_field_label('au', 'claims_returned_count') %]
   [% draw_form_input('au', 'claims_returned_count', 
@@ -692,9 +697,11 @@ within the "form" by name for validation.
     [% draw_example_text('au', 'claims_returned_count') %]
   </div>
 </div>
+</div>
 
 <!-- CLAIMS_NEVER_CHECKED_OUT_COUNT -->
-
+<!-- PINES Customization: Hide this field since we don't use it -->
+<div style="display:none;">
 <div class="row reg-field-row" ng-show="show_field('au.claims_never_checked_out_count')">
   [% draw_field_label('au', 'claims_never_checked_out_count') %]
   [% draw_form_input('au', 'claims_never_checked_out_count',
@@ -703,6 +710,7 @@ within the "form" by name for validation.
     [% draw_example_text('au', 'claims_never_checked_out_count') %]
   </div>
 </div>
+</div>
 
 <!-- ALERT_MESSAGE -->
 
@@ -1104,6 +1112,7 @@ within the "form" by name for validation.
   <div class="row reg-field-row" ng-show="show_field('aua.valid')">
     [% draw_field_label('aua', 'valid') %]
     <div class="col-md-3 reg-field-input">
+      <div class='checkbox' style="margin-left:20px;">
         <input 
           aria-labelledby="{{idl_fields.aua.valid.name}}"
           type='checkbox' 
@@ -1122,6 +1131,7 @@ within the "form" by name for validation.
   <div class="row reg-field-row" ng-show="show_field('aua.within_city_limits')">
     [% draw_field_label('aua', 'within_city_limits') %]
     <div class="col-md-3 reg-field-input">
+      <div class='checkbox' style="margin-left:20px;">
         <input 
           type='checkbox'
           aria-labelledby="{{idl_fields.aua.within_city_limits.name}}"
@@ -1215,7 +1225,7 @@ within the "form" by name for validation.
       style="margin-bottom: 10px;">
       <div class="col-md-6">{{question.question()}}</div>
       <div class="col-md-6">
-        <div class="btn-group" uib-dropdown>
+        <div class="btn-group dropup" uib-dropdown>
           <button type="button" class="btn btn-default" uib-dropdown-toggle>
             <span style="padding-right: 5px;">
               {{survey_responses[question.id()].answer()}}