PINES Cust: Fix layout for Patron Edit Form
authorMcCanna <tmccanna@georgialibraries.org>
Mon, 5 Nov 2018 18:18:46 +0000 (13:18 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 30 Jan 2019 14:18:23 +0000 (09:18 -0500)
Readjustments to previous customizations that no longer work
properly with 3.2. Also added links to relevant documentation.

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

index 76414f9..13245af 100644 (file)
       <a href 
         ng-class="{disabled : edit_passthru.vis_level == 0}"
         ng-click="edit_passthru.vis_level=0">[% l('All Fields') %]</a>
+    </span> | 
+       <span class="pad-all-min">
+      <a href="https://pines.georgialibraries.org/dokuwiki/doku.php?id=circ:accounts:reg_field_desc" 
+        target="_blank"  style="font-weight:bold;color:#379676;">PINES Field Documentation</a>
     </span>
   </span>
 </div>
index 8f4769e..8476252 100644 (file)
@@ -378,7 +378,6 @@ within the "form" by name for validation.
   </div>
   <div class="col-md-6 patron-reg-example">
     [% draw_example_text('au', 'dob') %]
-    <span>Example: 09/15/1980</span>
   </div>
 </div>
 
@@ -387,7 +386,6 @@ 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')"
@@ -417,7 +415,8 @@ within the "form" by name for validation.
   [% draw_form_input('au', 'ident_value') %]
   <div class="col-md-6 patron-reg-example">
     [% draw_example_text('au', 'ident_value') %]
-    <span>Example: GA-123456789</span>
+    <span>Example: GA-123456789 <a href="https://pines.georgialibraries.org/dokuwiki/doku.php?id=circ:accounts:reg_field_desc#idformats"
+           target="_blank">(see more examples)</a></span>
   </div>
 </div>
 
@@ -438,13 +437,7 @@ within the "form" by name for validation.
 
 <!-- IDENT_VALUE2 -->
 <div class="row reg-field-row" ng-show="show_field('au.ident_value2')">
-  <!-- PINES Customization: Relabel field -->
-  <div class="col-md-3 reg-field-label">
-      <!--field label -->
-      <label class="ng-binding">Parent/Guardian</label>
-      <!--field documentation img/link-->
-      <img class="ng-hide" ng-show="field_doc.au.ident_value2" ng-click="set_selected_field_doc('au','ident_value2')" src="/images/question-mark.png">
-  </div>
+  [% draw_field_label('au', 'ident_value2') %]
   [% draw_form_input('au', 'ident_value2') %]
   <div class="col-md-6 patron-reg-example">
     [% draw_example_text('au', 'ident_value2') %]
@@ -613,7 +606,6 @@ 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')"
@@ -627,7 +619,6 @@ 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')"
@@ -641,7 +632,6 @@ 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')"
@@ -966,7 +956,6 @@ 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()" 
@@ -984,7 +973,6 @@ 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()"