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 570-575 legend:hover { Link Here
570
                                            </ol>
570
                                            </ol>
571
                                        </fieldset> <!-- /#memberentry_guarantor -->
571
                                        </fieldset> <!-- /#memberentry_guarantor -->
572
                                    </span> <!-- #/memberentry_guarantor_anchor -->
572
                                    </span> <!-- #/memberentry_guarantor_anchor -->
573
574
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
575
                                        <fieldset class="rows">
576
                                            <legend>Non-patron guarantor</legend>
577
                                            <ol>
578
                                                [% UNLESS nocontactname %]
579
                                                    <li>
580
                                                        [% IF ( mandatorycontactname ) %]
581
                                                            <label for="contactname" class="required">
582
                                                        [% ELSE %]
583
                                                            <label for="contactname">
584
                                                        [% END %]
585
                                                            Guarantor surname:
586
                                                        </label>
587
                                                        <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
588
                                                        [% IF ( mandatorycontactname ) %]
589
                                                            <span class="required">Required</span>
590
                                                        [% END %]
591
                                                        <div class="hint">Non-patron guarantor surname</div>
592
                                                    </li>
593
                                                [% END # /UNLESS nocontactname %]
594
595
                                                [% UNLESS nocontactfirstname %]
596
                                                    <li>
597
                                                        [% IF ( mandatorycontactfirstname ) %]
598
                                                            <label for="contactfirstname" class="required">
599
                                                        [% ELSE %]
600
                                                            <label for="contactfirstname">
601
                                                        [% END %]
602
                                                            Guarantor first name:
603
                                                        </label>
604
                                                        <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
605
                                                        [% IF ( mandatorycontactfirstname ) %]
606
                                                            <span class="required">Required</span>
607
                                                        [% END %]
608
                                                        <div class="hint">Non-patron guarantor first name</div>
609
                                                    </li>
610
                                                [% END # /UNLESS noaltcontactfirstname %]
611
612
                                                [% UNLESS norelationship %]
613
                                                    [% IF possible_relationships %]
614
                                                        <li>
615
                                                            <label for="relationship">Relationship: </label>
616
                                                            <select class="relationship" name="relationship">
617
                                                                <option value=""></option>
618
                                                                [% FOREACH pr IN possible_relationships.split('\|') %]
619
                                                                    [% IF pr == relationship %]
620
                                                                        <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
621
                                                                    [% ELSE %]
622
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
623
                                                                    [% END %]
624
                                                                [% END %]
625
                                                            </select>
626
                                                        </li>
627
                                                    [% END #/IF possible_relationships %]
628
                                                [% END # /UNLESS norelationship %]
629
                                            </ol>
630
                                        </fieldset>
631
                                    [% END %]
573
                                [% END # /IF show_guarantor || guarantor  %]
632
                                [% END # /IF show_guarantor || guarantor  %]
574
633
575
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
634
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
Lines 580-637 legend:hover { Link Here
580
                                    <fieldset class="rows" id="memberentry_contact">
639
                                    <fieldset class="rows" id="memberentry_contact">
581
                                        <legend id="contact_lgd">Contact</legend>
640
                                        <legend id="contact_lgd">Contact</legend>
582
                                        <ol>
641
                                        <ol>
583
                                            [% UNLESS nocontactname %]
584
                                                <li>
585
                                                    [% IF ( mandatorycontactname ) %]
586
                                                        <label for="contactname" class="required">
587
                                                    [% ELSE %]
588
                                                        <label for="contactname">
589
                                                    [% END %]
590
                                                        Guarantor surname:
591
                                                    </label>
592
                                                    <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
593
                                                    [% IF ( mandatorycontactname ) %]
594
                                                        <span class="required">Required</span>
595
                                                    [% END %]
596
                                                    <div class="hint">Non-patron guarantor surname</div>
597
                                                </li>
598
                                            [% END # /UNLESS nocontactname %]
599
600
                                            [% UNLESS nocontactfirstname %]
601
                                                <li>
602
                                                    [% IF ( mandatorycontactfirstname ) %]
603
                                                        <label for="contactfirstname" class="required">
604
                                                    [% ELSE %]
605
                                                        <label for="contactfirstname">
606
                                                    [% END %]
607
                                                        Guarantor first name:
608
                                                    </label>
609
                                                    <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
610
                                                    [% IF ( mandatorycontactfirstname ) %]
611
                                                        <span class="required">Required</span>
612
                                                    [% END %]
613
                                                    <div class="hint">Non-patron guarantor first name</div>
614
                                                </li>
615
                                            [% END # /UNLESS noaltcontactfirstname %]
616
617
                                            [% UNLESS norelationship %]
618
                                                [% IF possible_relationships %]
619
                                                    <li>
620
                                                        <label for="relationship">Relationship: </label>
621
                                                        <select class="relationship" name="relationship">
622
                                                            <option value=""></option>
623
                                                            [% FOREACH pr IN possible_relationships.split('\|') %]
624
                                                                [% IF pr == relationship %]
625
                                                                    <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
626
                                                                [% ELSE %]
627
                                                                    <option value="[% pr | html %]">[% pr | html %]</option>
628
                                                                [% END %]
629
                                                            [% END %]
630
                                                        </select>
631
                                                    </li>
632
                                                [% END #/IF possible_relationships %]
633
                                            [% END # /UNLESS norelationship %]
634
635
                                            [% UNLESS nophone %]
642
                                            [% UNLESS nophone %]
636
                                                <li>
643
                                                <li>
637
                                                    [% IF ( mandatoryphone ) %]
644
                                                    [% IF ( mandatoryphone ) %]
638
- 

Return to bug 25654