From e1a387699715f2fb17faec99b97cd85b6e9b3b50 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sun, 10 May 2015 17:08:16 -0400 Subject: [PATCH] patron reg cont. Signed-off-by: Bill Erickson --- .../src/templates/staff/circ/patron/t_edit.tt2 | 46 +++++++---- Open-ILS/src/templates/staff/css/circ.css.tt2 | 21 ++++- .../web/js/ui/default/staff/circ/patron/regctl.js | 93 +++++++++++++--------- 3 files changed, 104 insertions(+), 56 deletions(-) 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 7320247549..b95af058c7 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -4,27 +4,45 @@
- {{idl_fields[selected_field_doc.fm_class()][selected_field_doc.field()].label}} + + {{idl_fields[selected_field_doc.fm_class()][selected_field_doc.field()].label}} +
{{selected_field_doc.string()}}
-[% MACRO formfield(cls, field, path, input_type) BLOCK %] -[% IF NOT input_type; input_type = 'text'; END %] +[% MACRO formfield(cls, field, path, input_type) BLOCK; + + # input field generator for text/number/checkbox fields + + IF NOT input_type; input_type = 'text'; END %] +
+ + + +
- [% IF path %] - - + + + [% + model = path ? 'patron.' _ path _ '.' _ field : 'patron.' _ field; + IF input_type == 'checkbox' %] + +
+ +
+ [% ELSE %] + + + class="form-control" ng-model="[% model %]"/> [% END %]
@@ -61,7 +79,7 @@ src='[% DOC_IMG %]'>
-
@@ -70,22 +88,22 @@
- - {{idl_fields.au.profile.label}} +