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

Return to bug 25654