|
Lines 636-686
Link Here
|
| 636 |
<label for="borrower_primary_contact_method">Main contact method:</label> |
636 |
<label for="borrower_primary_contact_method">Main contact method:</label> |
| 637 |
[% END %] |
637 |
[% END %] |
| 638 |
|
638 |
|
| 639 |
<select id="borrower_primary_contact_method" name="borrower_primary_contact_method"> |
639 |
[% SET contact_methods = AuthorisedValues.GetAuthValueDropbox('CONTACT_METHODS') %] |
|
|
640 |
[% IF contact_methods.count %] |
| 641 |
<select id="borrower_primary_contact_method" name="borrower_primary_contact_method"> |
| 640 |
<option value=""></option> |
642 |
<option value=""></option> |
| 641 |
[% UNLESS hidden.defined('phone') %] |
643 |
[% FOR contact_method IN contact_methods %] |
| 642 |
[% IF ( borrower.primary_contact_method == 'phone' ) %] |
644 |
[% IF contact_method.authorised_value == patron.primary_contact_method %] |
| 643 |
<option value="phone" selected="selected">Primary phone</option> |
645 |
<option value="[% contact_method.authorised_value | html %]" selected="selected">[% contact_method.lib | html %]</option> |
| 644 |
[% ELSE %] |
646 |
[% ELSE %] |
| 645 |
<option value="phone">Primary phone</option> |
647 |
<option value="[% contact_method.authorised_value | html %]">[% contact_method.lib | html %]</option> |
| 646 |
[% END %] |
648 |
[% END %] |
| 647 |
[% END %] |
|
|
| 648 |
[% UNLESS hidden.defined('phonepro') %] |
| 649 |
[% IF ( borrower.primary_contact_method == 'phonepro' ) %] |
| 650 |
<option value="phonepro" selected="selected">Secondary phone</option> |
| 651 |
[% ELSE %] |
| 652 |
<option value="phonepro">Secondary phone</option> |
| 653 |
[% END %] |
| 654 |
[% END %] |
| 655 |
[% UNLESS hidden.defined('mobile') %] |
| 656 |
[% IF ( borrower.primary_contact_method == 'mobile' ) %] |
| 657 |
<option value="mobile" selected="selected">Other phone</option> |
| 658 |
[% ELSE %] |
| 659 |
<option value="mobile">Other phone</option> |
| 660 |
[% END %] |
| 661 |
[% END %] |
| 662 |
[% UNLESS hidden.defined('email') %] |
| 663 |
[% IF ( borrower.primary_contact_method == 'email' ) %] |
| 664 |
<option value="email" selected="selected">Primary email</option> |
| 665 |
[% ELSE %] |
| 666 |
<option value="email">Primary email</option> |
| 667 |
[% END %] |
| 668 |
[% END %] |
| 669 |
[% UNLESS hidden.defined('emailpro') %] |
| 670 |
[% IF ( borrower.primary_contact_method == 'emailpro' ) %] |
| 671 |
<option value="emailpro" selected="selected">Secondary email</option> |
| 672 |
[% ELSE %] |
| 673 |
<option value="emailpro">Secondary email</option> |
| 674 |
[% END %] |
| 675 |
[% END %] |
| 676 |
[% UNLESS hidden.defined('fax') %] |
| 677 |
[% IF ( borrower.primary_contact_method == 'fax' ) %] |
| 678 |
<option value="fax" selected="selected">Fax</option> |
| 679 |
[% ELSE %] |
| 680 |
<option value="fax">Fax</option> |
| 681 |
[% END %] |
649 |
[% END %] |
| 682 |
[% END %] |
650 |
</select> |
| 683 |
</select> |
651 |
[% END %] |
| 684 |
[% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %] |
652 |
[% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %] |
| 685 |
</li> |
653 |
</li> |
| 686 |
[% END %] |
654 |
[% END %] |
| 687 |
- |
|
|