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, 8 Sep 2018 02:39:42 +0000 (22:39 -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 6f0dafb..2bbcbb0 100644 (file)
@@ -385,6 +385,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 
         ng-change="field_modified()" 
         ng-blur="handle_field_changed(patron, 'juvenile')"
@@ -610,6 +611,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 
         ng-change="field_modified()" 
         ng-blur="handle_field_changed(patron, 'active')"
@@ -622,6 +624,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 
         ng-change="field_modified()" 
         ng-blur="handle_field_changed(patron, 'barred')"
@@ -634,6 +637,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 
         ng-change="field_modified()" 
         ng-blur="handle_field_changed(patron, 'master_account')"
@@ -642,7 +646,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', 
@@ -651,9 +656,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',
@@ -662,6 +669,7 @@ within the "form" by name for validation.
     [% draw_example_text('au', 'claims_never_checked_out_count') %]
   </div>
 </div>
+</div>
 
 <!-- ALERT_MESSAGE -->
 
@@ -925,6 +933,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 
           type='checkbox' 
           ng-change="field_modified()" 
@@ -942,6 +951,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' 
           ng-change="field_modified()" 
@@ -1029,7 +1039,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()}}