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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+35 lines)
Lines 417-422 Link Here
417
                                                        </ol>
417
                                                        </ol>
418
                                                    </fieldset>
418
                                                    </fieldset>
419
                                                [% END # END relationships foreach %]
419
                                                [% END # END relationships foreach %]
420
                                                [% IF guarantor && (!relationships) %]
421
                                                    <fieldset class="rows">
422
                                                        <ol>
423
                                                            <li class="guarantor-details" data-borrowernumber="0">
424
                                                                <span class="label">Patron #:</span>
425
                                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.borrowernumber | html %]</a>
426
                                                                <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/>
427
                                                            </li>
428
429
                                                            <li>
430
                                                                <label for="guarantor_surname">Surname: </label>
431
                                                                <span class="new_guarantor_surname_text">[% guarantor.surname | html %]</span>
432
                                                            </li>
433
434
                                                            <li>
435
                                                                <label for="guarantor_firstname">First name: </label>
436
                                                                <span class="new_guarantor_firstname_text">[% guarantor.firstname | html %]</span>
437
                                                            </li>
438
439
                                                            <li>
440
                                                                <label for="guarantor_relationship">Relationship: </label>
441
                                                                <select class="new_guarantor_relationship" name="new_guarantor_relationship">
442
                                                                    [% FOREACH pr IN possible_relationships.split('\|') %]
443
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
444
                                                                    [% END %]
445
                                                                </select>
446
                                                            </li>
447
448
                                                            <li>
449
                                                                <label for="guarantor_cancel">&nbsp;</label>
450
                                                                <span><a href="#" class="guarantor_cancel">Remove</a></span>
451
                                                            </li>
452
                                                        </ol>
453
                                                    </fieldset>
454
                                                [% END %]
420
                                            </span> <!-- #/guarantor_relationships -->
455
                                            </span> <!-- #/guarantor_relationships -->
421
456
422
                                            <fieldset class="rows guarantor" id="guarantor_template">
457
                                            <fieldset class="rows guarantor" id="guarantor_template">
(-)a/members/memberentry.pl (-1 / +9 lines)
Lines 594-599 if (C4::Context->preference("IndependentBranches")) { Link Here
594
    }
594
    }
595
}
595
}
596
if ($op eq 'add'){
596
if ($op eq 'add'){
597
    if ( $guarantor_id ) {
598
        my $guarantordata = $guarantor->unblessed;
599
        foreach (qw(streetnumber address streettype address2
600
          zipcode country city state phone phonepro mobile fax email emailpro branchcode
601
          B_streetnumber B_streettype B_address B_address2
602
          B_city B_state B_zipcode B_country B_email B_phone)) {
603
              $newdata{$_} = $guarantordata->{$_};
604
        }
605
    }
597
    $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1);
606
    $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1);
598
}
607
}
599
if ($op eq "modify")  {
608
if ($op eq "modify")  {
600
- 

Return to bug 23808