From: Bill Erickson Date: Sun, 10 May 2015 21:08:16 +0000 (-0400) Subject: patron reg cont. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e1a387699715f2fb17faec99b97cd85b6e9b3b50;p=working%2FEvergreen.git patron reg cont. Signed-off-by: Bill Erickson --- 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}} +