From ced2598e8f7957591a8573b11b21a46aaf31e377 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sat, 15 Aug 2015 15:41:59 -0400 Subject: [PATCH] LP#1452950 required/suggested/all fields selectors Wire up links for Required, suggested, and All fields links. Also move the patron control bar out to its own template since it must be loaded from 2 different places in the markup, one for edit and one for register. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- .../src/templates/staff/circ/patron/index.tt2 | 24 +--- .../staff/circ/patron/reg_actions.tt2 | 32 ++++++ .../templates/staff/circ/patron/t_edit.tt2 | 62 ++++------- Open-ILS/src/templates/staff/css/circ.css.tt2 | 1 - .../src/templates/staff/css/style.css.tt2 | 7 ++ .../js/ui/default/staff/circ/patron/app.js | 6 + .../js/ui/default/staff/circ/patron/regctl.js | 103 ++++++++++++++++-- 7 files changed, 160 insertions(+), 75 deletions(-) create mode 100644 Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index a224fa1e69..1db25c2a6c 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -145,29 +145,7 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
-
- - [% l('Show:') %] - - [% l('Required Fields') %] - - - [% l('Suggested Fields') %] - - - [% l('All Fields') %] - - -
-
-
- - - - - - -
+ [% INCLUDE 'staff/circ/patron/reg_actions.tt2' %]
diff --git a/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 b/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 new file mode 100644 index 0000000000..12aa57f7af --- /dev/null +++ b/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 @@ -0,0 +1,32 @@ + + +
+ + [% l('Show:') %] + + [% l('Required Fields') %] + + + [% l('Suggested Fields') %] + + + [% l('All Fields') %] + + +
+
+
+ + + + + + +
+ diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 8d82201cb0..29c15ecc67 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -10,32 +10,11 @@
-
- - [% l('Show:') %] - - [% l('Required Fields') %] - - - [% l('Suggested Fields') %] - - - [% l('All Fields') %] - - -
-
-
- - - - - - -
+ [% INCLUDE 'staff/circ/patron/reg_actions.tt2' %]
+
[% l('Patron Edit') %]
@@ -54,16 +33,17 @@ IF NOT input_type; input_type = 'text'; END %] -
+
- + - - + +
@@ -135,7 +115,7 @@ [% formfield('au', 'suffix') %] [% formfield('au', 'alias') %] -
+
-
+
-
+
-
+
-
+
-
+
-