Lines 407-451
legend:hover {
Link Here
|
407 |
|
407 |
|
408 |
[% IF show_guarantor || guarantor %] |
408 |
[% IF show_guarantor || guarantor %] |
409 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
409 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
410 |
<span 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>Guarantor information</legend> |
413 |
|
413 |
|
414 |
<span id="guarantor_relationships"> |
414 |
<div id="guarantor_relationships"> |
415 |
[% FOREACH r IN relationships %] |
415 |
[% FOREACH r IN relationships %] |
416 |
<fieldset class="rows"> |
416 |
<fieldset> |
417 |
<ol> |
417 |
<ol> |
418 |
[% IF category_type == 'I' %] |
418 |
[% IF category_type == 'I' %] |
419 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
419 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
420 |
<span class="label">Organization #:</span> [% IF ( r.guarantor_id ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a>[% END %] |
420 |
<span class="label">Organization:</span> |
|
|
421 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
421 |
</li> |
422 |
</li> |
422 |
|
|
|
423 |
<li> |
423 |
<li> |
424 |
<label for="guarantor_surname">Organization name: </label> |
424 |
<span class="label">Relationship:</span> |
425 |
<span>[% r.guarantor.surname | html %]</span> |
425 |
<span>[% r.relationship | html %]</span> |
426 |
</li> |
426 |
</li> |
427 |
[% ELSE %] |
427 |
[% ELSE %] |
428 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
428 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
429 |
<span class="label">Patron card number:</span> |
429 |
<span class="label">Guarantor:</span> |
430 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor.cardnumber | html %]</a> |
430 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
431 |
</li> |
431 |
</li> |
432 |
|
|
|
433 |
[% IF r.guarantor.surname %] |
434 |
<li> |
435 |
<label for="guarantor_surname">Surname: </label> |
436 |
<span>[% r.guarantor.surname | html %]</span> |
437 |
</li> |
438 |
[% END %] |
439 |
|
440 |
[% IF r.guarantor.firstname %] |
441 |
<li> |
442 |
<label for="guarantor_firstname">First name: </label> |
443 |
<span>[% r.guarantor.firstname | html %]</span> |
444 |
</li> |
445 |
[% END %] |
446 |
|
447 |
<li> |
432 |
<li> |
448 |
<label for="relationship">Relationship: </label> |
433 |
<span class="label">Relationship:</span> |
449 |
<span>[% r.relationship | html %]</span> |
434 |
<span>[% r.relationship | html %]</span> |
450 |
</li> |
435 |
</li> |
451 |
|
436 |
|
Lines 467-482
legend:hover {
Link Here
|
467 |
</li> |
452 |
</li> |
468 |
|
453 |
|
469 |
<li> |
454 |
<li> |
470 |
<label for="guarantor_surname">Surname: </label> |
|
|
471 |
<span class="new_guarantor_surname_text">[% guarantor.surname | html %]</span> |
472 |
</li> |
473 |
|
474 |
<li> |
475 |
<label for="guarantor_firstname">First name: </label> |
476 |
<span class="new_guarantor_firstname_text">[% guarantor.firstname | html %]</span> |
477 |
</li> |
478 |
|
479 |
<li> |
480 |
[% UNLESS empty_relationship_allowed %] |
455 |
[% UNLESS empty_relationship_allowed %] |
481 |
<label for="guarantor_relationship" class="required">Relationship: </label> |
456 |
<label for="guarantor_relationship" class="required">Relationship: </label> |
482 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" required="required"> |
457 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" required="required"> |
Lines 503-529
legend:hover {
Link Here
|
503 |
</ol> |
478 |
</ol> |
504 |
</fieldset> |
479 |
</fieldset> |
505 |
[% END %] |
480 |
[% END %] |
506 |
</span> <!-- #/guarantor_relationships --> |
481 |
</div> <!-- #/guarantor_relationships --> |
507 |
|
482 |
|
508 |
<fieldset class="rows guarantor" id="guarantor_template"> |
483 |
<fieldset class="guarantor" id="guarantor_template"> |
509 |
<ol> |
484 |
<ol> |
510 |
<li class="guarantor-details" data-borrowernumber="0"> |
485 |
<li class="guarantor-details" data-borrowernumber="0"> |
511 |
<span class="label">Patron card number:</span> |
486 |
<span class="label">Guarantor:</span> |
512 |
<span class="new_guarantor_id_text"></span> |
487 |
<a class="new_guarantor_link" href="#" target="blank"> |
|
|
488 |
<span class="new_guarantor_firstname_text"></span> <span class="new_guarantor_surname_text"></span> |
489 |
(<span class="new_guarantor_id_text"></span>) |
490 |
</a> |
513 |
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/> |
491 |
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/> |
514 |
</li> |
492 |
</li> |
515 |
|
493 |
|
516 |
<li> |
494 |
<li> |
517 |
<label for="guarantor_surname">Surname: </label> |
|
|
518 |
<span class="new_guarantor_surname_text"></span> |
519 |
</li> |
520 |
|
521 |
<li> |
522 |
<label for="guarantor_firstname">First name: </label> |
523 |
<span class="new_guarantor_firstname_text"></span> |
524 |
</li> |
525 |
|
526 |
<li> |
527 |
[% UNLESS empty_relationship_allowed %] |
495 |
[% UNLESS empty_relationship_allowed %] |
528 |
<label for="guarantor_relationship" class="required">Relationship: </label> |
496 |
<label for="guarantor_relationship" class="required">Relationship: </label> |
529 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" required="required"> |
497 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" required="required"> |
Lines 545-551
legend:hover {
Link Here
|
545 |
|
513 |
|
546 |
<li> |
514 |
<li> |
547 |
<label for="guarantor_cancel"> </label> |
515 |
<label for="guarantor_cancel"> </label> |
548 |
<span><a href="#" class="guarantor_cancel">Remove</a></span> |
516 |
<span><a href="#" class="guarantor_cancel"><i class="fa fa-trash"></i> Remove</a></span> |
549 |
</li> |
517 |
</li> |
550 |
</ol> |
518 |
</ol> |
551 |
</fieldset> |
519 |
</fieldset> |
Lines 591-597
legend:hover {
Link Here
|
591 |
[% END %] |
559 |
[% END %] |
592 |
</ol> |
560 |
</ol> |
593 |
</fieldset> <!-- /#memberentry_guarantor --> |
561 |
</fieldset> <!-- /#memberentry_guarantor --> |
594 |
</span> <!-- #/memberentry_guarantor_anchor --> |
562 |
</div> <!-- #/memberentry_guarantor_anchor --> |
595 |
[% END # /IF show_guarantor || guarantor %] |
563 |
[% END # /IF show_guarantor || guarantor %] |
596 |
|
564 |
|
597 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
565 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |