View | Details | Raw Unified | Return to bug 25654
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-54 / +60 lines)
Lines 409-415 legend:hover { Link Here
409
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
409
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
410
                                    <span id="memberentry_guarantor_anchor">
410
                                    <span id="memberentry_guarantor_anchor">
411
                                        <fieldset id="memberentry_guarantor" class="rows">
411
                                        <fieldset id="memberentry_guarantor" class="rows">
412
                                            <legend>Guarantor information</legend>
412
                                            <legend>Patron guarantor</legend>
413
413
414
                                            <span id="guarantor_relationships">
414
                                            <span id="guarantor_relationships">
415
                                                [% FOREACH r IN relationships %]
415
                                                [% FOREACH r IN relationships %]
Lines 592-597 legend:hover { Link Here
592
                                            </ol>
592
                                            </ol>
593
                                        </fieldset> <!-- /#memberentry_guarantor -->
593
                                        </fieldset> <!-- /#memberentry_guarantor -->
594
                                    </span> <!-- #/memberentry_guarantor_anchor -->
594
                                    </span> <!-- #/memberentry_guarantor_anchor -->
595
596
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
597
                                        <fieldset class="rows" id="non_patron_guarantor">
598
                                            <legend>Non-patron guarantor</legend>
599
                                            <ol>
600
                                                [% UNLESS nocontactname %]
601
                                                    <li>
602
                                                        [% IF ( mandatorycontactname ) %]
603
                                                            <label for="contactname" class="required">
604
                                                        [% ELSE %]
605
                                                            <label for="contactname">
606
                                                        [% END %]
607
                                                            Guarantor surname:
608
                                                        </label>
609
                                                        <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
610
                                                        [% IF ( mandatorycontactname ) %]
611
                                                            <span class="required">Required</span>
612
                                                        [% END %]
613
                                                        <div class="hint">Non-patron guarantor surname</div>
614
                                                    </li>
615
                                                [% END # /UNLESS nocontactname %]
616
617
                                                [% UNLESS nocontactfirstname %]
618
                                                    <li>
619
                                                        [% IF ( mandatorycontactfirstname ) %]
620
                                                            <label for="contactfirstname" class="required">
621
                                                        [% ELSE %]
622
                                                            <label for="contactfirstname">
623
                                                        [% END %]
624
                                                            Guarantor first name:
625
                                                        </label>
626
                                                        <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
627
                                                        [% IF ( mandatorycontactfirstname ) %]
628
                                                            <span class="required">Required</span>
629
                                                        [% END %]
630
                                                        <div class="hint">Non-patron guarantor first name</div>
631
                                                    </li>
632
                                                [% END # /UNLESS noaltcontactfirstname %]
633
634
                                                [% UNLESS norelationship %]
635
                                                    [% IF possible_relationships %]
636
                                                        <li>
637
                                                            <label for="relationship">Relationship: </label>
638
                                                            <select class="relationship" name="relationship">
639
                                                                <option value=""></option>
640
                                                                [% FOREACH pr IN possible_relationships.split('\|') %]
641
                                                                    [% IF pr == relationship %]
642
                                                                        <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
643
                                                                    [% ELSE %]
644
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
645
                                                                    [% END %]
646
                                                                [% END %]
647
                                                            </select>
648
                                                        </li>
649
                                                    [% END #/IF possible_relationships %]
650
                                                [% END # /UNLESS norelationship %]
651
                                            </ol>
652
                                        </fieldset> <!-- /#non_patron_guarantor -->
653
                                    [% END # /UNLESS nocontactname && nocontactfirstname && norelationship %]
595
                                [% END # /IF show_guarantor || guarantor  %]
654
                                [% END # /IF show_guarantor || guarantor  %]
596
655
597
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
656
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
Lines 602-659 legend:hover { Link Here
602
                                    <fieldset class="rows" id="memberentry_contact">
661
                                    <fieldset class="rows" id="memberentry_contact">
603
                                        <legend id="contact_lgd">Contact</legend>
662
                                        <legend id="contact_lgd">Contact</legend>
604
                                        <ol>
663
                                        <ol>
605
                                            [% UNLESS nocontactname %]
606
                                                <li>
607
                                                    [% IF ( mandatorycontactname ) %]
608
                                                        <label for="contactname" class="required">
609
                                                    [% ELSE %]
610
                                                        <label for="contactname">
611
                                                    [% END %]
612
                                                        Guarantor surname:
613
                                                    </label>
614
                                                    <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
615
                                                    [% IF ( mandatorycontactname ) %]
616
                                                        <span class="required">Required</span>
617
                                                    [% END %]
618
                                                    <div class="hint">Non-patron guarantor surname</div>
619
                                                </li>
620
                                            [% END # /UNLESS nocontactname %]
621
622
                                            [% UNLESS nocontactfirstname %]
623
                                                <li>
624
                                                    [% IF ( mandatorycontactfirstname ) %]
625
                                                        <label for="contactfirstname" class="required">
626
                                                    [% ELSE %]
627
                                                        <label for="contactfirstname">
628
                                                    [% END %]
629
                                                        Guarantor first name:
630
                                                    </label>
631
                                                    <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
632
                                                    [% IF ( mandatorycontactfirstname ) %]
633
                                                        <span class="required">Required</span>
634
                                                    [% END %]
635
                                                    <div class="hint">Non-patron guarantor first name</div>
636
                                                </li>
637
                                            [% END # /UNLESS noaltcontactfirstname %]
638
639
                                            [% UNLESS norelationship %]
640
                                                [% IF possible_relationships %]
641
                                                    <li>
642
                                                        <label for="relationship">Relationship: </label>
643
                                                        <select class="relationship" name="relationship">
644
                                                            <option value=""></option>
645
                                                            [% FOREACH pr IN possible_relationships.split('\|') %]
646
                                                                [% IF pr == relationship %]
647
                                                                    <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
648
                                                                [% ELSE %]
649
                                                                    <option value="[% pr | html %]">[% pr | html %]</option>
650
                                                                [% END %]
651
                                                            [% END %]
652
                                                        </select>
653
                                                    </li>
654
                                                [% END #/IF possible_relationships %]
655
                                            [% END # /UNLESS norelationship %]
656
657
                                            [% UNLESS nophone %]
664
                                            [% UNLESS nophone %]
658
                                                <li>
665
                                                <li>
659
                                                    [% IF ( mandatoryphone ) %]
666
                                                    [% IF ( mandatoryphone ) %]
660
- 

Return to bug 25654