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 447-452 legend:hover { Link Here
447
                                                        </ol>
447
                                                        </ol>
448
                                                    </fieldset>
448
                                                    </fieldset>
449
                                                [% END # END relationships foreach %]
449
                                                [% END # END relationships foreach %]
450
                                                [% IF guarantor && (!relationships) %]
451
                                                    <fieldset class="rows">
452
                                                        <ol>
453
                                                            <li class="guarantor-details" data-borrowernumber="0">
454
                                                                <span class="label">Patron #:</span>
455
                                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.borrowernumber | html %]</a>
456
                                                                <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/>
457
                                                            </li>
458
459
                                                            <li>
460
                                                                <label for="guarantor_surname">Surname: </label>
461
                                                                <span class="new_guarantor_surname_text">[% guarantor.surname | html %]</span>
462
                                                            </li>
463
464
                                                            <li>
465
                                                                <label for="guarantor_firstname">First name: </label>
466
                                                                <span class="new_guarantor_firstname_text">[% guarantor.firstname | html %]</span>
467
                                                            </li>
468
469
                                                            <li>
470
                                                                <label for="guarantor_relationship">Relationship: </label>
471
                                                                <select class="new_guarantor_relationship" name="new_guarantor_relationship">
472
                                                                    [% FOREACH pr IN possible_relationships.split('\|') %]
473
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
474
                                                                    [% END %]
475
                                                                </select>
476
                                                            </li>
477
478
                                                            <li>
479
                                                                <label for="guarantor_cancel">&nbsp;</label>
480
                                                                <span><a href="#" class="guarantor_cancel">Remove</a></span>
481
                                                            </li>
482
                                                        </ol>
483
                                                    </fieldset>
484
                                                [% END %]
450
                                            </span> <!-- #/guarantor_relationships -->
485
                                            </span> <!-- #/guarantor_relationships -->
451
486
452
                                            <fieldset class="rows guarantor" id="guarantor_template">
487
                                            <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