[% DOC_IMG = '/images/question-mark.png' %]
[% l('Patron Edit') %]
[% l('Show Only Required Fields') %]
[% l('Show Suggested Fields') %]
[% l('Show All Fields') %]
{{idl_fields[selected_field_doc.fm_class()][selected_field_doc.field()].label}}
{{selected_field_doc.string()}}
[% MACRO formfield(cls, field, path, input_type) BLOCK; # input field generator for common text/number/checkbox fields IF NOT input_type; input_type = 'text'; END %]
[% model = path ? 'patron.' _ path _ '.' _ field : 'patron.' _ field; IF input_type == 'checkbox' %]
[% ELSE %] [% END %]
[% IF field == 'barcode' %] [% ELSIF field == 'password' %] [% ELSE %] [% set_str = "org_settings['ui.patron.edit." _ cls _ "." _ field _ ".example']"; %] [% l('Example: [_1]', "{{" _ set_str _ "}}") %] [% IF field.match('phone') %] [% l('Example: [_1]', "{{org_settings['ui.patron.edit.phone.example']}}") %] [% END %] [% END %]
[% END %] [% formfield('ac', 'barcode', 'card') %] [% formfield('au', 'usrname') %] [% formfield('au', 'passwd') %] [% formfield('au', 'prefix') %] [% formfield('au', 'first_given_name') %] [% formfield('au', 'second_given_name') %] [% formfield('au', 'family_name') %] [% formfield('au', 'suffix') %] [% formfield('au', 'alias') %]
[% formfield('au', 'juvenile', '', 'checkbox') %]
[% formfield('au', 'ident_value') %] [% formfield('au', 'ident_value2') %] [% formfield('au', 'email', '', 'email') %] [% formfield('au', 'day_phone') %] [% formfield('au', 'evening_phone') %] [% formfield('au', 'other_phone') %]
[% formfield('au', 'active', '', 'checkbox') %] [% formfield('au', 'barred', '', 'checkbox') %] [% formfield('au', 'master_account', '', 'checkbox') %] [% formfield('au', 'claims_returned_count', '', 'number') %] [% formfield('au', 'claims_never_checked_out_count', '', 'number') %] [% formfield('au', 'alert_message') %]
[% l('Phone') %]
[% l('Email') %]
[% l('SMS') %]
[% formfield('aua', 'address_type', 'mailing_address') %] [% formfield('aua', 'post_code', 'mailing_address') %] [% formfield('aua', 'street1', 'mailing_address') %] [% formfield('aua', 'street2', 'mailing_address') %] [% formfield('aua', 'city', 'mailing_address') %] [% formfield('aua', 'county', 'mailing_address') %] [% formfield('aua', 'state', 'mailing_address') %] [% formfield('aua', 'country', 'mailing_address') %] [% formfield('aua', 'valid', 'mailing_address', 'checkbox') %] [% formfield('aua', 'within_city_limits', 'mailing_address', 'checkbox') %]