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>
Sat, 19 Nov 2022 19:52:45 +0000 (14:52 -0500)
- 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 ebafd08..2b72912 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()" 
@@ -662,6 +663,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()" 
@@ -675,6 +677,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()" 
@@ -688,6 +691,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()" 
@@ -697,7 +701,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', 
@@ -706,9 +711,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',
@@ -717,6 +724,7 @@ within the "form" by name for validation.
     [% draw_example_text('au', 'claims_never_checked_out_count') %]
   </div>
 </div>
+</div>
 
 <div ng-if="!offline">
 
@@ -1099,6 +1107,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' 
@@ -1117,6 +1126,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}}"
@@ -1210,7 +1220,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()}}