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, 16 Oct 2019 18:45:00 +0000 (14:45 -0400)
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 6f4ef6e..c197a31 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 25ad2fb..eb5522e 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')"
@@ -427,7 +425,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>
 
@@ -448,13 +447,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') %]
@@ -623,7 +616,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')"
@@ -637,7 +629,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')"
@@ -651,7 +642,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')"
@@ -1025,7 +1015,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()" 
@@ -1043,7 +1032,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()"