|
Lines 606-656
Link Here
|
| 606 |
<label for="borrower_primary_contact_method">Main contact method:</label> |
606 |
<label for="borrower_primary_contact_method">Main contact method:</label> |
| 607 |
[% END %] |
607 |
[% END %] |
| 608 |
|
608 |
|
| 609 |
<select id="borrower_primary_contact_method" name="borrower_primary_contact_method"> |
609 |
[% SET contact_methods = AuthorisedValues.GetAuthValueDropbox('CONTACT_METHODS') %] |
|
|
610 |
[% IF contact_methods.count %] |
| 611 |
<select id="borrower_primary_contact_method" name="borrower_primary_contact_method"> |
| 610 |
<option value=""></option> |
612 |
<option value=""></option> |
| 611 |
[% UNLESS hidden.defined('phone') %] |
613 |
[% FOR contact_method IN contact_methods %] |
| 612 |
[% IF ( borrower.primary_contact_method == 'phone' ) %] |
614 |
[% IF contact_method.authorised_value == patron.primary_contact_method %] |
| 613 |
<option value="phone" selected="selected">Primary phone</option> |
615 |
<option value="[% contact_method.authorised_value | html %]" selected="selected">[% contact_method.lib | html %]</option> |
| 614 |
[% ELSE %] |
616 |
[% ELSE %] |
| 615 |
<option value="phone">Primary phone</option> |
617 |
<option value="[% contact_method.authorised_value | html %]">[% contact_method.lib | html %]</option> |
| 616 |
[% END %] |
618 |
[% END %] |
| 617 |
[% END %] |
|
|
| 618 |
[% UNLESS hidden.defined('phonepro') %] |
| 619 |
[% IF ( borrower.primary_contact_method == 'phonepro' ) %] |
| 620 |
<option value="phonepro" selected="selected">Secondary phone</option> |
| 621 |
[% ELSE %] |
| 622 |
<option value="phonepro">Secondary phone</option> |
| 623 |
[% END %] |
| 624 |
[% END %] |
| 625 |
[% UNLESS hidden.defined('mobile') %] |
| 626 |
[% IF ( borrower.primary_contact_method == 'mobile' ) %] |
| 627 |
<option value="mobile" selected="selected">Other phone</option> |
| 628 |
[% ELSE %] |
| 629 |
<option value="mobile">Other phone</option> |
| 630 |
[% END %] |
| 631 |
[% END %] |
| 632 |
[% UNLESS hidden.defined('email') %] |
| 633 |
[% IF ( borrower.primary_contact_method == 'email' ) %] |
| 634 |
<option value="email" selected="selected">Primary email</option> |
| 635 |
[% ELSE %] |
| 636 |
<option value="email">Primary email</option> |
| 637 |
[% END %] |
| 638 |
[% END %] |
| 639 |
[% UNLESS hidden.defined('emailpro') %] |
| 640 |
[% IF ( borrower.primary_contact_method == 'emailpro' ) %] |
| 641 |
<option value="emailpro" selected="selected">Secondary email</option> |
| 642 |
[% ELSE %] |
| 643 |
<option value="emailpro">Secondary email</option> |
| 644 |
[% END %] |
| 645 |
[% END %] |
| 646 |
[% UNLESS hidden.defined('fax') %] |
| 647 |
[% IF ( borrower.primary_contact_method == 'fax' ) %] |
| 648 |
<option value="fax" selected="selected">Fax</option> |
| 649 |
[% ELSE %] |
| 650 |
<option value="fax">Fax</option> |
| 651 |
[% END %] |
619 |
[% END %] |
| 652 |
[% END %] |
620 |
</select> |
| 653 |
</select> |
621 |
[% END %] |
| 654 |
[% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %] |
622 |
[% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %] |
| 655 |
</li> |
623 |
</li> |
| 656 |
[% END %] |
624 |
[% END %] |
| 657 |
- |
|
|