From 5169b973f00626522b274934c386cce5eb632fa7 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Wed, 7 Mar 2018 17:47:23 +0000 Subject: [PATCH] LP#1754110 Patron Reg. Field Label Override Supply additional parameter to draw_field_label macro to apply custom labels to patron reg/edit fields. Signed-off-by: Kyle Huckins Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../src/templates/staff/circ/patron/t_edit.tt2 | 8 ++++++-- 1 files changed, 6 insertions(+), 2 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 1c66575..2fff639 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -92,9 +92,13 @@ -[% MACRO draw_field_label (cls, field) BLOCK %] +[% +# draws a label for inputs based on the idl class's field's +# label OR a supplied string +MACRO draw_field_label (cls, field, label_override) BLOCK %]
- + [% IF label_override %] + [% ELSE %][% END %]