|
Lines 316-322
Link Here
|
| 316 |
[% UNLESS notitle %] |
316 |
[% UNLESS notitle %] |
| 317 |
[% IF Koha.Preference('BorrowersTitles') %] |
317 |
[% IF Koha.Preference('BorrowersTitles') %] |
| 318 |
<li> |
318 |
<li> |
| 319 |
<label for="btitle" [% IF mandatorytitle %]class="required"[% END %]> Salutation: </label> |
319 |
<label for="btitle" [% IF mandatorytitle %]class="required"[% END %] id="btitle_label"> Salutation: </label> |
| 320 |
<select id="btitle" name="title"> |
320 |
<select id="btitle" name="title"> |
| 321 |
<option value=""></option> |
321 |
<option value=""></option> |
| 322 |
[% FOREACH patron_title IN Koha.Preference('BorrowersTitles').split('\|') %] |
322 |
[% FOREACH patron_title IN Koha.Preference('BorrowersTitles').split('\|') %] |
|
Lines 338-346
Link Here
|
| 338 |
[% UNLESS nosurname %] |
338 |
[% UNLESS nosurname %] |
| 339 |
<li> |
339 |
<li> |
| 340 |
[% IF ( patron_category.category_type == 'I' ) %] |
340 |
[% IF ( patron_category.category_type == 'I' ) %] |
| 341 |
<label for="surname" class="required"> Name: </label> |
341 |
<label for="surname" class="required" id="surname_label"> Name: </label> |
| 342 |
[% ELSE %] |
342 |
[% ELSE %] |
| 343 |
<label for="surname" [% IF mandatorysurname %]class="required"[% END %]> Surname: </label> |
343 |
<label for="surname" [% IF mandatorysurname %]class="required"[% END %] id="surname_label"> Surname: </label> |
| 344 |
[% END %] |
344 |
[% END %] |
| 345 |
|
345 |
|
| 346 |
[% IF ( uppercasesurnames ) %] |
346 |
[% IF ( uppercasesurnames ) %] |
|
Lines 357-363
Link Here
|
| 357 |
[% UNLESS ( patron_category.category_type == 'I' ) %] |
357 |
[% UNLESS ( patron_category.category_type == 'I' ) %] |
| 358 |
[% UNLESS nofirstname %] |
358 |
[% UNLESS nofirstname %] |
| 359 |
<li> |
359 |
<li> |
| 360 |
<label for="firstname" [% IF mandatoryfirstname %]class="required"[% END %]> First name: </label> |
360 |
<label for="firstname" [% IF mandatoryfirstname %]class="required"[% END %] id="firstname_label"> First name: </label> |
| 361 |
<input type="text" id="firstname" name="firstname" size="20" value="[% borrower_data.firstname | html UNLESS op == 'duplicate' %]" /> |
361 |
<input type="text" id="firstname" name="firstname" size="20" value="[% borrower_data.firstname | html UNLESS op == 'duplicate' %]" /> |
| 362 |
[% IF ( mandatoryfirstname ) %] |
362 |
[% IF ( mandatoryfirstname ) %] |
| 363 |
<span class="required">Required</span> |
363 |
<span class="required">Required</span> |
|
Lines 366-372
Link Here
|
| 366 |
[% END #/UNLESS nofirstname %] |
366 |
[% END #/UNLESS nofirstname %] |
| 367 |
[% UNLESS nopreferred_name %] |
367 |
[% UNLESS nopreferred_name %] |
| 368 |
<li> |
368 |
<li> |
| 369 |
<label for="preferred_name" [% IF mandatorypreferred_name %]class="required"[% END %]> Preferred name: </label> |
369 |
<label for="preferred_name" [% IF mandatorypreferred_name %]class="required"[% END %] id="preferred_name_label"> Preferred name: </label> |
| 370 |
<input type="text" id="preferred_name" name="preferred_name" size="20" value="[% borrower_data.preferred_name | html UNLESS op == 'duplicate' %]" /> |
370 |
<input type="text" id="preferred_name" name="preferred_name" size="20" value="[% borrower_data.preferred_name | html UNLESS op == 'duplicate' %]" /> |
| 371 |
[% IF ( mandatorypreferred_name ) %] |
371 |
[% IF ( mandatorypreferred_name ) %] |
| 372 |
<span class="required">Required</span> |
372 |
<span class="required">Required</span> |
|
Lines 375-381
Link Here
|
| 375 |
[% END #/UNLESS nopreferred_name %] |
375 |
[% END #/UNLESS nopreferred_name %] |
| 376 |
[% UNLESS nomiddle_name %] |
376 |
[% UNLESS nomiddle_name %] |
| 377 |
<li> |
377 |
<li> |
| 378 |
<label for="middle_name" [% IF mandatorymiddle_name %]class="required"[% END %]> Middle name: </label> |
378 |
<label for="middle_name" [% IF mandatorymiddle_name %]class="required"[% END %] id="middle_name_label"> Middle name: </label> |
| 379 |
<input type="text" id="middle_name" name="middle_name" size="20" value="[% borrower_data.middle_name | html UNLESS op == 'duplicate' %]" /> |
379 |
<input type="text" id="middle_name" name="middle_name" size="20" value="[% borrower_data.middle_name | html UNLESS op == 'duplicate' %]" /> |
| 380 |
[% IF ( mandatorymiddle_name ) %] |
380 |
[% IF ( mandatorymiddle_name ) %] |
| 381 |
<span class="required">Required</span> |
381 |
<span class="required">Required</span> |
|
Lines 384-390
Link Here
|
| 384 |
[% END #/UNLESS nomiddle_name %] |
384 |
[% END #/UNLESS nomiddle_name %] |
| 385 |
[% UNLESS nodateofbirth %] |
385 |
[% UNLESS nodateofbirth %] |
| 386 |
<li> |
386 |
<li> |
| 387 |
<label for="dateofbirth" [% IF mandatorydateofbirth %]class="required"[% END %]> Date of birth: </label> |
387 |
<label for="dateofbirth" [% IF mandatorydateofbirth %]class="required"[% END %] id="dateofbirth_label"> Date of birth: </label> |
| 388 |
<input |
388 |
<input |
| 389 |
type="text" |
389 |
type="text" |
| 390 |
id="dateofbirth" |
390 |
id="dateofbirth" |
|
Lines 405-411
Link Here
|
| 405 |
[% END # /UNLESS nodateofbirth %] |
405 |
[% END # /UNLESS nodateofbirth %] |
| 406 |
[% UNLESS noinitials %] |
406 |
[% UNLESS noinitials %] |
| 407 |
<li> |
407 |
<li> |
| 408 |
<label for="initials" [% IF mandatoryinitials %]class="required"[% END %]> Initials: </label> |
408 |
<label for="initials" [% IF mandatoryinitials %]class="required"[% END %] id="initials_label"> Initials: </label> |
| 409 |
<input type="text" id="initials" name="initials" size="20" value="[% borrower_data.initials | html UNLESS op == 'duplicate' %]" /> |
409 |
<input type="text" id="initials" name="initials" size="20" value="[% borrower_data.initials | html UNLESS op == 'duplicate' %]" /> |
| 410 |
[% IF ( mandatoryinitials ) %] |
410 |
[% IF ( mandatoryinitials ) %] |
| 411 |
<span class="required">Required</span> |
411 |
<span class="required">Required</span> |
|
Lines 414-420
Link Here
|
| 414 |
[% END # /UNLESS noinitials %] |
414 |
[% END # /UNLESS noinitials %] |
| 415 |
[% UNLESS nopronouns %] |
415 |
[% UNLESS nopronouns %] |
| 416 |
<li> |
416 |
<li> |
| 417 |
<label for="pronouns" [% IF mandatorypronouns %]class="required"[% END %]> Pronouns: </label> |
417 |
<label for="pronouns" [% IF mandatorypronouns %]class="required"[% END %] id="pronouns_label"> Pronouns: </label> |
| 418 |
<input type="text" id="pronouns" name="pronouns" size="20" value="[% borrower_data.pronouns | html UNLESS op == 'duplicate' %]" /> |
418 |
<input type="text" id="pronouns" name="pronouns" size="20" value="[% borrower_data.pronouns | html UNLESS op == 'duplicate' %]" /> |
| 419 |
[% IF ( mandatorypronouns ) %] |
419 |
[% IF ( mandatorypronouns ) %] |
| 420 |
<span class="required">Required</span> |
420 |
<span class="required">Required</span> |
|
Lines 424-430
Link Here
|
| 424 |
[% END #/UNLESS ( I ) %] |
424 |
[% END #/UNLESS ( I ) %] |
| 425 |
[% UNLESS noothernames %] |
425 |
[% UNLESS noothernames %] |
| 426 |
<li> |
426 |
<li> |
| 427 |
<label for="othernames" [% IF mandatoryothernames %]class="required"[% END %]> Other name: </label> |
427 |
<label for="othernames" [% IF mandatoryothernames %]class="required"[% END %] id="othernames_label"> Other name: </label> |
| 428 |
<input type="text" id="othernames" name="othernames" size="20" value="[% borrower_data.othernames | html UNLESS op == 'duplicate' %]" /> |
428 |
<input type="text" id="othernames" name="othernames" size="20" value="[% borrower_data.othernames | html UNLESS op == 'duplicate' %]" /> |
| 429 |
[% IF ( mandatoryothernames ) %] |
429 |
[% IF ( mandatoryothernames ) %] |
| 430 |
<span class="required">Required</span> |
430 |
<span class="required">Required</span> |
|
Lines 436-468
Link Here
|
| 436 |
[% UNLESS ( patron_category.category_type == 'I' ) %] |
436 |
[% UNLESS ( patron_category.category_type == 'I' ) %] |
| 437 |
[% UNLESS nosex %] |
437 |
[% UNLESS nosex %] |
| 438 |
<li class="radio"> |
438 |
<li class="radio"> |
| 439 |
<label for="gender">Gender:</label> |
439 |
<label for="gender" id="gender_label">Gender:</label> |
| 440 |
[% UNLESS ( op == 'duplicate' ) %] |
440 |
[% UNLESS ( op == 'duplicate' ) %] |
| 441 |
[% IF ( female ) %] |
441 |
[% IF ( female ) %] |
| 442 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label> |
442 |
<label for="sex-female" id="sex-female_label"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label> |
| 443 |
[% ELSE %] |
443 |
[% ELSE %] |
| 444 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label> |
444 |
<label for="sex-female" id="sex-female_label"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label> |
| 445 |
[% END %] |
445 |
[% END %] |
| 446 |
[% IF ( male ) %] |
446 |
[% IF ( male ) %] |
| 447 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label> |
447 |
<label for="sex-male" id="sex-male_label"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label> |
| 448 |
[% ELSE %] |
448 |
[% ELSE %] |
| 449 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /><span class="patronsex-male"> Male</span></label> |
449 |
<label for="sex-male" id="sex-male_label"><input type="radio" name="sex" id="sex-male" value="M" /><span class="patronsex-male"> Male</span></label> |
| 450 |
[% END %] |
450 |
[% END %] |
| 451 |
[% IF ( other ) %] |
451 |
[% IF ( other ) %] |
| 452 |
<label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label> |
452 |
<label for="sex-other" id="sex-other_label" |
|
|
453 |
><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label |
| 454 |
> |
| 453 |
[% ELSE %] |
455 |
[% ELSE %] |
| 454 |
<label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label> |
456 |
<label for="sex-other" id="sex-other_label" |
|
|
457 |
><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label |
| 458 |
> |
| 455 |
[% END %] |
459 |
[% END %] |
| 456 |
[% IF ( none ) %] |
460 |
[% IF ( none ) %] |
| 457 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /><span class="patronsex-none"> None specified</span></label> |
461 |
<label for="sex-none" id="sex-none_label"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /><span class="patronsex-none"> None specified</span></label> |
| 458 |
[% ELSE %] |
462 |
[% ELSE %] |
| 459 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /><span class="patronsex-none"> None specified</span></label> |
463 |
<label for="sex-none" id="sex-none_label"><input type="radio" name="sex" id="sex-none" value="" /><span class="patronsex-none"> None specified</span></label> |
| 460 |
[% END %] |
464 |
[% END %] |
| 461 |
[% ELSE %] |
465 |
[% ELSE %] |
| 462 |
<label for="sex-female"><span class="patronsex-female">Female </span></label><input type="radio" name="sex" id="sex-female" value="F" /> |
466 |
<label for="sex-female" id="sex-female_label"><span class="patronsex-female">Female </span></label><input type="radio" name="sex" id="sex-female" value="F" /> |
| 463 |
<label for="sex-male"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" /> |
467 |
<label for="sex-male" id="sex-male_label"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" /> |
| 464 |
<label for="sex-other"><span class="patronsex-other">[% tp('gender', 'Other') | html %] </span></label><input type="radio" name="sex" id="sex-other" value="O" /> |
468 |
<label for="sex-other" id="sex-other_label"><span class="patronsex-other">[% tp('gender', 'Other') | html %] </span></label><input type="radio" name="sex" id="sex-other" value="O" /> |
| 465 |
<label for="sex-none"><span class="patronsex-none">None specified </span></label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
469 |
<label for="sex-none" id="sex-none_label"><span class="patronsex-none">None specified </span></label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
| 466 |
[% END # /UNLESS ( op == 'duplicate' ) %] |
470 |
[% END # /UNLESS ( op == 'duplicate' ) %] |
| 467 |
</li> |
471 |
</li> |
| 468 |
[% END # /UNLESS nosex %] |
472 |
[% END # /UNLESS nosex %] |
|
Lines 487-493
Link Here
|
| 487 |
<ol> |
491 |
<ol> |
| 488 |
[% IF patron_category.category_type == 'I' %] |
492 |
[% IF patron_category.category_type == 'I' %] |
| 489 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
493 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
| 490 |
<span class="label">Organization:</span> |
494 |
<span class="label" id="organization_label">Organization:</span> |
| 491 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
495 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
| 492 |
</li> |
496 |
</li> |
| 493 |
<li> |
497 |
<li> |
|
Lines 496-513
Link Here
|
| 496 |
</li> |
500 |
</li> |
| 497 |
[% ELSE %] |
501 |
[% ELSE %] |
| 498 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
502 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
| 499 |
<span class="label">Guarantor:</span> |
503 |
<span class="label" id="guarantor_label">Guarantor:</span> |
| 500 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
504 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
| 501 |
<input type="hidden" class="guarantor_id relation-[% r.id | html %]" name="guarantor_id" value="[% r.guarantor_id | html %]" /> |
505 |
<input type="hidden" class="guarantor_id relation-[% r.id | html %]" name="guarantor_id" value="[% r.guarantor_id | html %]" /> |
| 502 |
</li> |
506 |
</li> |
| 503 |
<li> |
507 |
<li> |
| 504 |
<span class="label">Relationship:</span> |
508 |
<span class="label" id="relationship_label">Relationship:</span> |
| 505 |
<span>[% r.relationship | html %]</span> |
509 |
<span>[% r.relationship | html %]</span> |
| 506 |
<input type="hidden" class="guarantor_relationship relation-[% r.id | html %]" name="guarantor_relationship" value="[% r.relationship | html %]" /> |
510 |
<input type="hidden" class="guarantor_relationship relation-[% r.id | html %]" name="guarantor_relationship" value="[% r.relationship | html %]" /> |
| 507 |
</li> |
511 |
</li> |
| 508 |
|
512 |
|
| 509 |
<li> |
513 |
<li> |
| 510 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
514 |
<label for="delete_guarantor-[% r.id | uri %]" id="delete_guarantor-[% r.id | uri %]_label">Remove: </label> |
| 511 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" onclick="toggle_guarantor_field([% r.id | html %])" /> |
515 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" onclick="toggle_guarantor_field([% r.id | html %])" /> |
| 512 |
</li> |
516 |
</li> |
| 513 |
[% END %] |
517 |
[% END %] |
|
Lines 518-524
Link Here
|
| 518 |
<fieldset class="guarantor"> |
522 |
<fieldset class="guarantor"> |
| 519 |
<ol> |
523 |
<ol> |
| 520 |
<li class="guarantor-details" data-borrowernumber="0"> |
524 |
<li class="guarantor-details" data-borrowernumber="0"> |
| 521 |
<span class="label">Guarantor:</span> |
525 |
<span class="label" id="relationship_label">Guarantor:</span> |
| 522 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank" |
526 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank" |
| 523 |
>[% guarantor.firstname | html %] [% guarantor.surname | html %] ([% guarantor.cardnumber | html %])</a |
527 |
>[% guarantor.firstname | html %] [% guarantor.surname | html %] ([% guarantor.cardnumber | html %])</a |
| 524 |
> |
528 |
> |
|
Lines 527-533
Link Here
|
| 527 |
|
531 |
|
| 528 |
[% UNLESS norelationship %] |
532 |
[% UNLESS norelationship %] |
| 529 |
<li> |
533 |
<li> |
| 530 |
<label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label> |
534 |
<label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="relationship_label">Relationship: </label> |
| 531 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
535 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
| 532 |
<option value=""></option> |
536 |
<option value=""></option> |
| 533 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
537 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
|
Lines 545-551
Link Here
|
| 545 |
[% END %] |
549 |
[% END %] |
| 546 |
|
550 |
|
| 547 |
<li> |
551 |
<li> |
| 548 |
<label for="guarantor_cancel"> </label> |
552 |
<label for="guarantor_cancel" id="guarantor_cancel_label"> </label> |
| 549 |
<span |
553 |
<span |
| 550 |
><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can" aria-hidden="true"></i> Remove</a></span |
554 |
><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can" aria-hidden="true"></i> Remove</a></span |
| 551 |
> |
555 |
> |
|
Lines 568-574
Link Here
|
| 568 |
|
572 |
|
| 569 |
[% UNLESS norelationship %] |
573 |
[% UNLESS norelationship %] |
| 570 |
<li> |
574 |
<li> |
| 571 |
<label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label> |
575 |
<label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="guarantor_relationship_label">Relationship: </label> |
| 572 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
576 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
| 573 |
<option value="" selected></option> |
577 |
<option value="" selected></option> |
| 574 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
578 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
|
Lines 586-592
Link Here
|
| 586 |
[% END %] |
590 |
[% END %] |
| 587 |
|
591 |
|
| 588 |
<li> |
592 |
<li> |
| 589 |
<label for="guarantor_cancel"> </label> |
593 |
<label for="guarantor_cancel" id="guarantor_cancel_label"> </label> |
| 590 |
<span |
594 |
<span |
| 591 |
><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can"></i> Remove</a></span |
595 |
><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can"></i> Remove</a></span |
| 592 |
> |
596 |
> |
|
Lines 605-611
Link Here
|
| 605 |
|
609 |
|
| 606 |
[% IF Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] |
610 |
[% IF Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] |
| 607 |
<li> |
611 |
<li> |
| 608 |
<label for="privacy_guarantor_checkouts">Show checkouts to guarantors:</label> |
612 |
<label for="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts_label">Show checkouts to guarantors:</label> |
| 609 |
<select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts"> |
613 |
<select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts"> |
| 610 |
[% IF borrower_data.privacy_guarantor_checkouts %] |
614 |
[% IF borrower_data.privacy_guarantor_checkouts %] |
| 611 |
<option value="0">No</option> |
615 |
<option value="0">No</option> |
|
Lines 620-626
Link Here
|
| 620 |
[% END %] |
624 |
[% END %] |
| 621 |
[% IF Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
625 |
[% IF Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
| 622 |
<li> |
626 |
<li> |
| 623 |
<label for="privacy_guarantor_fines">Show charges to guarantors:</label> |
627 |
<label for="privacy_guarantor_fines" id="privacy_guarantor_fines_label">Show charges to guarantors:</label> |
| 624 |
<select name="privacy_guarantor_fines" id="privacy_guarantor_fines"> |
628 |
<select name="privacy_guarantor_fines" id="privacy_guarantor_fines"> |
| 625 |
[% IF borrower_data.privacy_guarantor_fines %] |
629 |
[% IF borrower_data.privacy_guarantor_fines %] |
| 626 |
<option value="0">No</option> |
630 |
<option value="0">No</option> |
|
Lines 648-654
Link Here
|
| 648 |
<ol> |
652 |
<ol> |
| 649 |
[% UNLESS nocontactname %] |
653 |
[% UNLESS nocontactname %] |
| 650 |
<li> |
654 |
<li> |
| 651 |
<label for="contactname" [% IF mandatorycontactname %]class="required"[% END %]> Guarantor surname: </label> |
655 |
<label for="contactname" [% IF mandatorycontactname %]class="required"[% END %] id="contactname_label"> Guarantor surname: </label> |
| 652 |
<input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" /> |
656 |
<input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" /> |
| 653 |
[% IF ( mandatorycontactname ) %] |
657 |
[% IF ( mandatorycontactname ) %] |
| 654 |
<span class="required">Required</span> |
658 |
<span class="required">Required</span> |
|
Lines 659-665
Link Here
|
| 659 |
|
663 |
|
| 660 |
[% UNLESS nocontactfirstname %] |
664 |
[% UNLESS nocontactfirstname %] |
| 661 |
<li> |
665 |
<li> |
| 662 |
<label for="contactfirstname" [% IF mandatorycontactfirstname %]class="required"[% END %]> Guarantor first name: </label> |
666 |
<label for="contactfirstname" [% IF mandatorycontactfirstname %]class="required"[% END %] id="contactfirstname_label"> Guarantor first name: </label> |
| 663 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" /> |
667 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" /> |
| 664 |
[% IF ( mandatorycontactfirstname ) %] |
668 |
[% IF ( mandatorycontactfirstname ) %] |
| 665 |
<span class="required">Required</span> |
669 |
<span class="required">Required</span> |
|
Lines 670-676
Link Here
|
| 670 |
|
674 |
|
| 671 |
[% UNLESS norelationship %] |
675 |
[% UNLESS norelationship %] |
| 672 |
<li> |
676 |
<li> |
| 673 |
<label for="relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label> |
677 |
<label for="relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="relationship_label">Relationship: </label> |
| 674 |
<select class="relationship" name="relationship" id="relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
678 |
<select class="relationship" name="relationship" id="relationship" [% IF mandatoryrelationship %]required="required"[% END %]> |
| 675 |
<option value=""></option> |
679 |
<option value=""></option> |
| 676 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
680 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
|
Lines 705-711
Link Here
|
| 705 |
<ol> |
709 |
<ol> |
| 706 |
[% UNLESS nophone %] |
710 |
[% UNLESS nophone %] |
| 707 |
<li> |
711 |
<li> |
| 708 |
<label for="phone" [% IF mandatoryphone %]class="required"[% END %]> Primary phone: </label> |
712 |
<label for="phone" [% IF mandatoryphone %]class="required"[% END %] id="phone_label"> Primary phone: </label> |
| 709 |
<input type="text" id="phone" name="phone" value="[% patron.phone | html %]" /> |
713 |
<input type="text" id="phone" name="phone" value="[% patron.phone | html %]" /> |
| 710 |
[% IF ( mandatoryphone ) %] |
714 |
[% IF ( mandatoryphone ) %] |
| 711 |
<span class="required">Required</span> |
715 |
<span class="required">Required</span> |
|
Lines 716-722
Link Here
|
| 716 |
|
720 |
|
| 717 |
[% UNLESS nophonepro %] |
721 |
[% UNLESS nophonepro %] |
| 718 |
<li> |
722 |
<li> |
| 719 |
<label for="phonepro" [% IF mandatoryphonepro %]class="required"[% END %]> Secondary phone: </label> |
723 |
<label for="phonepro" [% IF mandatoryphonepro %]class="required"[% END %] id="phonepro_label"> Secondary phone: </label> |
| 720 |
<input type="text" id="phonepro" name="phonepro" value="[% patron.phonepro | html %]" /> |
724 |
<input type="text" id="phonepro" name="phonepro" value="[% patron.phonepro | html %]" /> |
| 721 |
[% IF ( mandatoryphonepro ) %] |
725 |
[% IF ( mandatoryphonepro ) %] |
| 722 |
<span class="required">Required</span> |
726 |
<span class="required">Required</span> |
|
Lines 726-732
Link Here
|
| 726 |
|
730 |
|
| 727 |
[% UNLESS nomobile %] |
731 |
[% UNLESS nomobile %] |
| 728 |
<li> |
732 |
<li> |
| 729 |
<label for="mobile" [% IF mandatorymobile %]class="required"[% END %]> Other phone: </label> |
733 |
<label for="mobile" [% IF mandatorymobile %]class="required"[% END %] id="mobile_label"> Other phone: </label> |
| 730 |
<input type="text" id="mobile" name="mobile" value="[% patron.mobile | html %]" /> |
734 |
<input type="text" id="mobile" name="mobile" value="[% patron.mobile | html %]" /> |
| 731 |
[% IF ( mandatorymobile ) %] |
735 |
[% IF ( mandatorymobile ) %] |
| 732 |
<span class="required">Required</span> |
736 |
<span class="required">Required</span> |
|
Lines 736-742
Link Here
|
| 736 |
|
740 |
|
| 737 |
[% UNLESS noemail %] |
741 |
[% UNLESS noemail %] |
| 738 |
<li> |
742 |
<li> |
| 739 |
<label for="email" [% IF mandatoryemail %]class="required"[% END %]> Primary email: </label> |
743 |
<label for="email" [% IF mandatoryemail %]class="required"[% END %] id="email_label"> Primary email: </label> |
| 740 |
[% IF ( NoUpdateEmail ) %] |
744 |
[% IF ( NoUpdateEmail ) %] |
| 741 |
<input type="text" id="email" name="email" size="45" value="[% patron.email | html %]" disabled="disabled" /> |
745 |
<input type="text" id="email" name="email" size="45" value="[% patron.email | html %]" disabled="disabled" /> |
| 742 |
[% ELSE %] |
746 |
[% ELSE %] |
|
Lines 751-757
Link Here
|
| 751 |
|
755 |
|
| 752 |
[% UNLESS noemailpro %] |
756 |
[% UNLESS noemailpro %] |
| 753 |
<li> |
757 |
<li> |
| 754 |
<label for="emailpro" [% IF mandatoryemailpro %]class="required"[% END %]> Secondary email: </label> |
758 |
<label for="emailpro" [% IF mandatoryemailpro %]class="required"[% END %] id="emailpro_label"> Secondary email: </label> |
| 755 |
[% IF ( NoUpdateEmail ) %] |
759 |
[% IF ( NoUpdateEmail ) %] |
| 756 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% patron.emailpro | html %]" disabled="disabled" /> |
760 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% patron.emailpro | html %]" disabled="disabled" /> |
| 757 |
[% ELSE %] |
761 |
[% ELSE %] |
|
Lines 765-771
Link Here
|
| 765 |
|
769 |
|
| 766 |
[% UNLESS nofax %] |
770 |
[% UNLESS nofax %] |
| 767 |
<li> |
771 |
<li> |
| 768 |
<label for="fax" [% IF mandatoryfax %]class="required"[% END %]> Fax: </label> |
772 |
<label for="fax" [% IF mandatoryfax %]class="required"[% END %] id="fax_label"> Fax: </label> |
| 769 |
<input type="text" id="fax" name="fax" value="[% patron.fax | html %]" /> |
773 |
<input type="text" id="fax" name="fax" value="[% patron.fax | html %]" /> |
| 770 |
[% IF ( mandatoryfax ) %] |
774 |
[% IF ( mandatoryfax ) %] |
| 771 |
<span class="required">Required</span> |
775 |
<span class="required">Required</span> |
|
Lines 775-781
Link Here
|
| 775 |
|
779 |
|
| 776 |
[% UNLESS noprimary_contact_method %] |
780 |
[% UNLESS noprimary_contact_method %] |
| 777 |
<li> |
781 |
<li> |
| 778 |
<label for="primary_contact_method" [% IF mandatoryprimary_contact_method %]class="required"[% END %]> Main contact method: </label> |
782 |
<label for="primary_contact_method" [% IF mandatoryprimary_contact_method %]class="required"[% END %] id="primary_contact_method_label"> Main contact method: </label> |
| 779 |
|
783 |
|
| 780 |
<select id="primary_contact_method" name="primary_contact_method"> |
784 |
<select id="primary_contact_method" name="primary_contact_method"> |
| 781 |
<option value=""></option> |
785 |
<option value=""></option> |
|
Lines 857-863
Link Here
|
| 857 |
<ol> |
861 |
<ol> |
| 858 |
[% UNLESS nocardnumber %] |
862 |
[% UNLESS nocardnumber %] |
| 859 |
<li> |
863 |
<li> |
| 860 |
<label for="cardnumber" class="[% mandatorycardnumber ? 'required' : 'validated' | html %]"> Card number: </label> |
864 |
<label for="cardnumber" class="[% mandatorycardnumber ? 'required' : 'validated' | html %]" id="cardnumber_label"> Card number: </label> |
| 861 |
|
865 |
|
| 862 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
866 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
| 863 |
<input |
867 |
<input |
|
Lines 915-921
Link Here
|
| 915 |
|
919 |
|
| 916 |
[% UNLESS nobranchcode %] |
920 |
[% UNLESS nobranchcode %] |
| 917 |
<li> |
921 |
<li> |
| 918 |
<label for="libraries" class="required">Library:</label> |
922 |
<label for="libraries" class="required" id="libraries_label">Library:</label> |
| 919 |
<select name="branchcode" id="libraries"> |
923 |
<select name="branchcode" id="libraries"> |
| 920 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
924 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
| 921 |
</select> |
925 |
</select> |
|
Lines 924-930
Link Here
|
| 924 |
[% END %] |
928 |
[% END %] |
| 925 |
|
929 |
|
| 926 |
<li> |
930 |
<li> |
| 927 |
<label for="categorycode_entry" class="required">Category: </label> |
931 |
<label for="categorycode_entry" class="required" id="categorycode_entry_label">Category: </label> |
| 928 |
<select id="categorycode_entry" name="categorycode"> |
932 |
<select id="categorycode_entry" name="categorycode"> |
| 929 |
[% FOREACH category_type IN patron_categories.keys.sort %] |
933 |
[% FOREACH category_type IN patron_categories.keys.sort %] |
| 930 |
[% SET optgroup_label = t("Unknown") %] |
934 |
[% SET optgroup_label = t("Unknown") %] |
|
Lines 979-985
Link Here
|
| 979 |
|
983 |
|
| 980 |
[% UNLESS nosort1 %] |
984 |
[% UNLESS nosort1 %] |
| 981 |
<li> |
985 |
<li> |
| 982 |
<label for="sort1" [% IF mandatorysort1 %]class="required"[% END %]> Sort 1: </label> |
986 |
<label for="sort1" [% IF mandatorysort1 %]class="required"[% END %] id="sort1_label"> Sort 1: </label> |
| 983 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=borrower_data.sort1, empty=1, size = 20 %] |
987 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=borrower_data.sort1, empty=1, size = 20 %] |
| 984 |
[% IF ( mandatorysort1 ) %] |
988 |
[% IF ( mandatorysort1 ) %] |
| 985 |
<span class="required">Required</span> |
989 |
<span class="required">Required</span> |
|
Lines 989-995
Link Here
|
| 989 |
|
993 |
|
| 990 |
[% UNLESS nosort2 %] |
994 |
[% UNLESS nosort2 %] |
| 991 |
<li> |
995 |
<li> |
| 992 |
<label for="sort2" [% IF mandatorysort2 %]class="required"[% END %]> Sort 2: </label> |
996 |
<label for="sort2" [% IF mandatorysort2 %]class="required"[% END %] id="sort2_label"> Sort 2: </label> |
| 993 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=borrower_data.sort2, empty=1, size = 20 %] |
997 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=borrower_data.sort2, empty=1, size = 20 %] |
| 994 |
[% IF ( mandatorysort2 ) %] |
998 |
[% IF ( mandatorysort2 ) %] |
| 995 |
<span class="required">Required</span> |
999 |
<span class="required">Required</span> |
|
Lines 999-1020
Link Here
|
| 999 |
|
1003 |
|
| 1000 |
[% UNLESS noautorenew_checkouts %] |
1004 |
[% UNLESS noautorenew_checkouts %] |
| 1001 |
<li class="radio"> |
1005 |
<li class="radio"> |
| 1002 |
<label for="yes-autorenew_checkouts"> Allow auto-renewal of items: </label> |
1006 |
<label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label"> Allow auto-renewal of items: </label> |
| 1003 |
[% IF ( borrower_data.autorenew_checkouts || op == 'add_form' ) %] |
1007 |
[% IF ( borrower_data.autorenew_checkouts || op == 'add_form' ) %] |
| 1004 |
<label for="yes-autorenew_checkouts"> |
1008 |
<label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label"> |
| 1005 |
Yes |
1009 |
Yes |
| 1006 |
<input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" checked="checked" /> |
1010 |
<input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" checked="checked" /> |
| 1007 |
</label> |
1011 |
</label> |
| 1008 |
<label for="no-autorenew_checkouts"> |
1012 |
<label for="no-autorenew_checkouts" id="no-autorenew_checkouts_label"> |
| 1009 |
No |
1013 |
No |
| 1010 |
<input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" /> |
1014 |
<input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" /> |
| 1011 |
</label> |
1015 |
</label> |
| 1012 |
[% ELSE %] |
1016 |
[% ELSE %] |
| 1013 |
<label for="yes-autorenew_checkouts"> |
1017 |
<label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label"> |
| 1014 |
Yes |
1018 |
Yes |
| 1015 |
<input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" /> |
1019 |
<input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" /> |
| 1016 |
</label> |
1020 |
</label> |
| 1017 |
<label for="no-autorenew_checkouts"> |
1021 |
<label for="no-autorenew_checkouts" id="no-autorenew_checkouts_label"> |
| 1018 |
No |
1022 |
No |
| 1019 |
<input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" checked="checked" /> |
1023 |
<input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" checked="checked" /> |
| 1020 |
</label> |
1024 |
</label> |
|
Lines 1024-1045
Link Here
|
| 1024 |
|
1028 |
|
| 1025 |
[% UNLESS noprotected || !CanUpdateProtectPatron %] |
1029 |
[% UNLESS noprotected || !CanUpdateProtectPatron %] |
| 1026 |
<li class="radio"> |
1030 |
<li class="radio"> |
| 1027 |
<label for="protected">Protected:</label> |
1031 |
<label for="protected" id="protected_label">Protected:</label> |
| 1028 |
[% IF ( patron.protected == 1 ) %] |
1032 |
[% IF ( patron.protected == 1 ) %] |
| 1029 |
<label for="yes-protected"> |
1033 |
<label for="yes-protected" id="yes-protected_label"> |
| 1030 |
Yes |
1034 |
Yes |
| 1031 |
<input type="radio" id="yes-protected" name="protected" value="1" checked="checked" /> |
1035 |
<input type="radio" id="yes-protected" name="protected" value="1" checked="checked" /> |
| 1032 |
</label> |
1036 |
</label> |
| 1033 |
<label for="no-protected"> |
1037 |
<label for="no-protected" id="no-protected_label"> |
| 1034 |
No |
1038 |
No |
| 1035 |
<input type="radio" id="no-protected" name="protected" value="0" /> |
1039 |
<input type="radio" id="no-protected" name="protected" value="0" /> |
| 1036 |
</label> |
1040 |
</label> |
| 1037 |
[% ELSE %] |
1041 |
[% ELSE %] |
| 1038 |
<label for="yes-protected"> |
1042 |
<label for="yes-protected" id="yes-protected_label"> |
| 1039 |
Yes |
1043 |
Yes |
| 1040 |
<input type="radio" id="yes-protected" name="protected" value="1" /> |
1044 |
<input type="radio" id="yes-protected" name="protected" value="1" /> |
| 1041 |
</label> |
1045 |
</label> |
| 1042 |
<label for="no-protected"> |
1046 |
<label for="no-protected" id="no-protected_label"> |
| 1043 |
No |
1047 |
No |
| 1044 |
<input type="radio" id="no-protected" name="protected" value="0" checked="checked" /> |
1048 |
<input type="radio" id="no-protected" name="protected" value="0" checked="checked" /> |
| 1045 |
</label> |
1049 |
</label> |
|
Lines 1049-1055
Link Here
|
| 1049 |
|
1053 |
|
| 1050 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
1054 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
| 1051 |
<li> |
1055 |
<li> |
| 1052 |
<label for="checkprevcheckout">Check for previous checkouts: </label> |
1056 |
<label for="checkprevcheckout" id="checkprevcheckout_label">Check for previous checkouts: </label> |
| 1053 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
1057 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
| 1054 |
[% IF ( borrower_data.checkprevcheckout == 'yes' ) %] |
1058 |
[% IF ( borrower_data.checkprevcheckout == 'yes' ) %] |
| 1055 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
1059 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
|
Lines 1070-1076
Link Here
|
| 1070 |
|
1074 |
|
| 1071 |
[% IF Koha.Preference('TranslateNotices') %] |
1075 |
[% IF Koha.Preference('TranslateNotices') %] |
| 1072 |
<li> |
1076 |
<li> |
| 1073 |
<label for="lang">Preferred language for notices: </label> |
1077 |
<label for="lang" id="lang_label">Preferred language for notices: </label> |
| 1074 |
<select id="lang" name="lang"> |
1078 |
<select id="lang" name="lang"> |
| 1075 |
<option value="default">Default</option> |
1079 |
<option value="default">Default</option> |
| 1076 |
[% FOR language IN languages %] |
1080 |
[% FOR language IN languages %] |
|
Lines 1111-1117
Link Here
|
| 1111 |
<ol> |
1115 |
<ol> |
| 1112 |
[% UNLESS nodateenrolled %] |
1116 |
[% UNLESS nodateenrolled %] |
| 1113 |
<li> |
1117 |
<li> |
| 1114 |
<label for="from" [% IF mandatorydateenrolled %]class="required"[% END %]> Registration date: </label> |
1118 |
<label for="from" [% IF mandatorydateenrolled %]class="required"[% END %] id="from_label"> Registration date: </label> |
| 1115 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% borrower_data.dateenrolled | html %]" class="flatpickr" data-date_to="to" /> |
1119 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% borrower_data.dateenrolled | html %]" class="flatpickr" data-date_to="to" /> |
| 1116 |
[% IF ( mandatorydateenrolled ) %] |
1120 |
[% IF ( mandatorydateenrolled ) %] |
| 1117 |
<span class="required">Required</span> |
1121 |
<span class="required">Required</span> |
|
Lines 1124-1130
Link Here
|
| 1124 |
[% END # /UNLESS nodateenrolled %] |
1128 |
[% END # /UNLESS nodateenrolled %] |
| 1125 |
|
1129 |
|
| 1126 |
<li [% IF nodateexpiry %]style="display:none"[% END %]> |
1130 |
<li [% IF nodateexpiry %]style="display:none"[% END %]> |
| 1127 |
<label for="to" [% IF mandatorydateexpiry %]class="required"[% END %]> Expiry date (leave blank for auto calc): </label> |
1131 |
<label for="to" [% IF mandatorydateexpiry %]class="required"[% END %] id="to_label"> Expiry date (leave blank for auto calc): </label> |
| 1128 |
[% UNLESS ( op == 'add_form' ) %] |
1132 |
[% UNLESS ( op == 'add_form' ) %] |
| 1129 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% borrower_data.dateexpiry | html UNLESS op == 'duplicate' %]" class="flatpickr" /> |
1133 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% borrower_data.dateexpiry | html UNLESS op == 'duplicate' %]" class="flatpickr" /> |
| 1130 |
[% ELSE %] |
1134 |
[% ELSE %] |
|
Lines 1141-1147
Link Here
|
| 1141 |
|
1145 |
|
| 1142 |
[% UNLESS noopacnote %] |
1146 |
[% UNLESS noopacnote %] |
| 1143 |
<li> |
1147 |
<li> |
| 1144 |
<label for="opacnote" [% IF mandatoryopacnote %]class="required"[% END %]> OPAC note: </label> |
1148 |
<label for="opacnote" [% IF mandatoryopacnote %]class="required"[% END %] id="opacnote_label"> OPAC note: </label> |
| 1145 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% borrower_data.opacnote | html UNLESS op == 'duplicate' %]</textarea> |
1149 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% borrower_data.opacnote | html UNLESS op == 'duplicate' %]</textarea> |
| 1146 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
1150 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
| 1147 |
[% IF ( mandatoryopacnote ) %] |
1151 |
[% IF ( mandatoryopacnote ) %] |
|
Lines 1152-1158
Link Here
|
| 1152 |
|
1156 |
|
| 1153 |
[% UNLESS noborrowernotes %] |
1157 |
[% UNLESS noborrowernotes %] |
| 1154 |
<li> |
1158 |
<li> |
| 1155 |
<label for="borrowernotes" [% IF mandatoryborrowernotes %]class="required"[% END %]> Circulation note: </label> |
1159 |
<label for="borrowernotes" [% IF mandatoryborrowernotes %]class="required"[% END %] id="borrowernotes_label"> Circulation note: </label> |
| 1156 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrower_data.borrowernotes | $raw UNLESS op == 'duplicate' %]</textarea> |
1160 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrower_data.borrowernotes | $raw UNLESS op == 'duplicate' %]</textarea> |
| 1157 |
<div class="hint">This message displays when checking out to this patron</div> |
1161 |
<div class="hint">This message displays when checking out to this patron</div> |
| 1158 |
[% IF ( mandatoryborrowernotes ) %] |
1162 |
[% IF ( mandatoryborrowernotes ) %] |
|
Lines 1174-1180
Link Here
|
| 1174 |
<ol> |
1178 |
<ol> |
| 1175 |
[% UNLESS nouserid %] |
1179 |
[% UNLESS nouserid %] |
| 1176 |
<li> |
1180 |
<li> |
| 1177 |
<label for="userid" [% IF mandatoryuserid %]class="required"[% END %]> Username: </label> |
1181 |
<label for="userid" [% IF mandatoryuserid %]class="required"[% END %] id="userid_label"> Username: </label> |
| 1178 |
|
1182 |
|
| 1179 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
1183 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
| 1180 |
<input type="text" disabled="disabled" style="display:none" /> |
1184 |
<input type="text" disabled="disabled" style="display:none" /> |
|
Lines 1201-1207
Link Here
|
| 1201 |
|
1205 |
|
| 1202 |
[% UNLESS nopassword %] |
1206 |
[% UNLESS nopassword %] |
| 1203 |
<li> |
1207 |
<li> |
| 1204 |
<label for="password" [% IF mandatorypassword %]class="required"[% END %]> Password: </label> |
1208 |
<label for="password" [% IF mandatorypassword %]class="required"[% END %] id="password_label"> Password: </label> |
| 1205 |
[% IF ( op == 'add_form' ) %] |
1209 |
[% IF ( op == 'add_form' ) %] |
| 1206 |
[% IF ( NoUpdateLogin ) %] |
1210 |
[% IF ( NoUpdateLogin ) %] |
| 1207 |
[% IF ( op == 'duplicate' ) %] |
1211 |
[% IF ( op == 'duplicate' ) %] |
|
Lines 1252-1258
Link Here
|
| 1252 |
</li> |
1256 |
</li> |
| 1253 |
|
1257 |
|
| 1254 |
<li> |
1258 |
<li> |
| 1255 |
<label for="password2" [% IF mandatorypassword %]class="required"[% END %]> Confirm password: </label> |
1259 |
<label for="password2" [% IF mandatorypassword %]class="required"[% END %] id="password2_label"> Confirm password: </label> |
| 1256 |
[% IF ( op == 'add_form' ) %] |
1260 |
[% IF ( op == 'add_form' ) %] |
| 1257 |
[% IF ( NoUpdateLogin ) %] |
1261 |
[% IF ( NoUpdateLogin ) %] |
| 1258 |
[% IF ( op == 'duplicate' ) %] |
1262 |
[% IF ( op == 'duplicate' ) %] |
|
Lines 1297-1303
Link Here
|
| 1297 |
[% END # /UNLESS nopassword %] |
1301 |
[% END # /UNLESS nopassword %] |
| 1298 |
[% UNLESS ( !CanUpdatePasswordExpiration ) %] |
1302 |
[% UNLESS ( !CanUpdatePasswordExpiration ) %] |
| 1299 |
<li> |
1303 |
<li> |
| 1300 |
<label for="password_expiration_date">Password expiration date:</label> |
1304 |
<label for="password_expiration_date" id="password_expiration_date_label">Password expiration date:</label> |
| 1301 |
<input type="text" id="password_expiration_date" name="password_expiration_date" maxlength="10" size="10" value="[% borrower_data.password_expiration_date | html %]" class="flatpickr" /> |
1305 |
<input type="text" id="password_expiration_date" name="password_expiration_date" maxlength="10" size="10" value="[% borrower_data.password_expiration_date | html %]" class="flatpickr" /> |
| 1302 |
</li> |
1306 |
</li> |
| 1303 |
[% END %] |
1307 |
[% END %] |
|
Lines 1318-1326
Link Here
|
| 1318 |
<ol class="radio"> |
1322 |
<ol class="radio"> |
| 1319 |
[% UNLESS nogonenoaddress %] |
1323 |
[% UNLESS nogonenoaddress %] |
| 1320 |
<li> |
1324 |
<li> |
| 1321 |
<label class="radio [% IF mandatorygonenoaddress %]required[% END %]" for="yesgonenoaddress"> Address correction needed: </label> |
1325 |
<label class="radio [% IF mandatorygonenoaddress %]required[% END %]" for="yesgonenoaddress" id="yesgonenoaddress_label"> Address correction needed: </label> |
| 1322 |
[% IF CAN_user_circulate_manage_restrictions %] |
1326 |
[% IF CAN_user_circulate_manage_restrictions %] |
| 1323 |
<label for="yesgonenoaddress"> |
1327 |
<label for="yesgonenoaddress" id="yesgonenoaddress_label"> |
| 1324 |
[% IF ( borrower_data.gonenoaddress ) %] |
1328 |
[% IF ( borrower_data.gonenoaddress ) %] |
| 1325 |
<input type="radio" id="yesgonenoaddress" name="gonenoaddress" value="1" checked="checked" /> |
1329 |
<input type="radio" id="yesgonenoaddress" name="gonenoaddress" value="1" checked="checked" /> |
| 1326 |
[% ELSE %] |
1330 |
[% ELSE %] |
|
Lines 1328-1334
Link Here
|
| 1328 |
[% END %] |
1332 |
[% END %] |
| 1329 |
Yes |
1333 |
Yes |
| 1330 |
</label> |
1334 |
</label> |
| 1331 |
<label for="nogonenoaddress"> |
1335 |
<label for="nogonenoaddress" id="nogonenoaddress_label"> |
| 1332 |
[% IF ( borrower_data.gonenoaddress ) %] |
1336 |
[% IF ( borrower_data.gonenoaddress ) %] |
| 1333 |
<input type="radio" id="nogonenoaddress" name="gonenoaddress" value="0" /> |
1337 |
<input type="radio" id="nogonenoaddress" name="gonenoaddress" value="0" /> |
| 1334 |
[% ELSE %] |
1338 |
[% ELSE %] |
|
Lines 1348-1354
Link Here
|
| 1348 |
<li> |
1352 |
<li> |
| 1349 |
<label class="radio [% IF mandatorylost %]required[% END %]" for="yeslost"> Lost card: </label> |
1353 |
<label class="radio [% IF mandatorylost %]required[% END %]" for="yeslost"> Lost card: </label> |
| 1350 |
[% IF CAN_user_circulate_manage_restrictions %] |
1354 |
[% IF CAN_user_circulate_manage_restrictions %] |
| 1351 |
<label for="yeslost"> |
1355 |
<label for="yeslost" id="yeslost_label"> |
| 1352 |
[% IF ( borrower_data.lost ) %] |
1356 |
[% IF ( borrower_data.lost ) %] |
| 1353 |
<input type="radio" id="yeslost" name="lost" value="1" checked="checked" /> |
1357 |
<input type="radio" id="yeslost" name="lost" value="1" checked="checked" /> |
| 1354 |
[% ELSE %] |
1358 |
[% ELSE %] |
|
Lines 1356-1362
Link Here
|
| 1356 |
[% END %] |
1360 |
[% END %] |
| 1357 |
Yes |
1361 |
Yes |
| 1358 |
</label> |
1362 |
</label> |
| 1359 |
<label for="nolost"> |
1363 |
<label for="nolost" id="nolost_label"> |
| 1360 |
[% IF ( borrower_data.lost ) %] |
1364 |
[% IF ( borrower_data.lost ) %] |
| 1361 |
<input type="radio" id="nolost" name="lost" value="0" /> |
1365 |
<input type="radio" id="nolost" name="lost" value="0" /> |
| 1362 |
[% ELSE %] |
1366 |
[% ELSE %] |
|
Lines 1439-1445
Link Here
|
| 1439 |
<ol> |
1443 |
<ol> |
| 1440 |
[% IF Koha.Preference('PatronRestrictionTypes') %] |
1444 |
[% IF Koha.Preference('PatronRestrictionTypes') %] |
| 1441 |
<li> |
1445 |
<li> |
| 1442 |
<label for="debarred_type">Type:</label> |
1446 |
<label for="debarred_type" id="debarred_type_label">Type:</label> |
| 1443 |
<select name="debarred_type"> |
1447 |
<select name="debarred_type"> |
| 1444 |
[% FOREACH restriction_type IN restriction_types %] |
1448 |
[% FOREACH restriction_type IN restriction_types %] |
| 1445 |
[% IF !restriction_type.is_system %] |
1449 |
[% IF !restriction_type.is_system %] |
|
Lines 1454-1464
Link Here
|
| 1454 |
</li> |
1458 |
</li> |
| 1455 |
[% END %] |
1459 |
[% END %] |
| 1456 |
<li> |
1460 |
<li> |
| 1457 |
<label for="debarred_comment">Comment: </label> |
1461 |
<label for="debarred_comment" id="debarred_comment_label">Comment: </label> |
| 1458 |
<input type="text" id="debarred_comment" name="debarred_comment" /> |
1462 |
<input type="text" id="debarred_comment" name="debarred_comment" /> |
| 1459 |
</li> |
1463 |
</li> |
| 1460 |
<li> |
1464 |
<li> |
| 1461 |
<label for="debarred_expiration">Expiration: </label> |
1465 |
<label for="debarred_expiration" id="debarred_expiration_label">Expiration: </label> |
| 1462 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" /> |
1466 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" /> |
| 1463 |
<a href="#" id="clear_debarred_expiration">Clear date</a> |
1467 |
<a href="#" id="clear_debarred_expiration">Clear date</a> |
| 1464 |
</li> |
1468 |
</li> |
|
Lines 1483-1512
Link Here
|
| 1483 |
</legend> |
1487 |
</legend> |
| 1484 |
<ol class="radio"> |
1488 |
<ol class="radio"> |
| 1485 |
<li> |
1489 |
<li> |
| 1486 |
<label class="radio" for="housebound_chooser"> Chooser: </label> |
1490 |
<label class="radio" for="housebound_chooser" id="housebound_chooser_label"> Chooser: </label> |
| 1487 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
1491 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
| 1488 |
<label for="yes_housebound_chooser">Yes </label> |
1492 |
<label for="yes_housebound_chooser" id="yes_housebound_chooser_label">Yes </label> |
| 1489 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> |
1493 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> |
| 1490 |
<label for="no_housebound_chooser">No </label> |
1494 |
<label for="no_housebound_chooser" id="no_housebound_chooser_label">No </label> |
| 1491 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> |
1495 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> |
| 1492 |
[% ELSE %] |
1496 |
[% ELSE %] |
| 1493 |
<label for="yes_housebound_chooser">Yes </label> |
1497 |
<label for="yes_housebound_chooser" id="yes_housebound_chooser_label">Yes </label> |
| 1494 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> |
1498 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> |
| 1495 |
<label for="no_housebound_chooser">No </label> |
1499 |
<label for="no_housebound_chooser" id="no_housebound_chooser_label">No </label> |
| 1496 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> |
1500 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> |
| 1497 |
[% END %] |
1501 |
[% END %] |
| 1498 |
</li> |
1502 |
</li> |
| 1499 |
<li> |
1503 |
<li> |
| 1500 |
<label class="radio" for="housebound_deliverer">Deliverer:</label> |
1504 |
<label class="radio" for="housebound_deliverer" id="housebound_deliverer_label">Deliverer:</label> |
| 1501 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
1505 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
| 1502 |
<label for="yes_housebound_deliverer">Yes </label> |
1506 |
<label for="yes_housebound_deliverer" id="yes_housebound_deliverer_label">Yes </label> |
| 1503 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> |
1507 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> |
| 1504 |
<label for="no_housebound_deliverer">No </label> |
1508 |
<label for="no_housebound_deliverer" id="no_housebound_deliverer_label">No </label> |
| 1505 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> |
1509 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> |
| 1506 |
[% ELSE %] |
1510 |
[% ELSE %] |
| 1507 |
<label for="yes_housebound_deliverer">Yes </label> |
1511 |
<label for="yes_housebound_deliverer" id="yes_housebound_deliverer_label">Yes </label> |
| 1508 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> |
1512 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> |
| 1509 |
<label for="no_housebound_deliverer">No </label> |
1513 |
<label for="no_housebound_deliverer" id="no_housebound_deliverer_label">No </label> |
| 1510 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> |
1514 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> |
| 1511 |
[% END %] |
1515 |
[% END %] |
| 1512 |
</li> |
1516 |
</li> |
|
Lines 1536-1544
Link Here
|
| 1536 |
[% FOREACH patron_attribute IN pa_loo.items %] |
1540 |
[% FOREACH patron_attribute IN pa_loo.items %] |
| 1537 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
1541 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
| 1538 |
[% IF patron_attribute.mandatory %] |
1542 |
[% IF patron_attribute.mandatory %] |
| 1539 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label> |
1543 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required" id="[% patron_attribute.form_id | html %]_label" |
|
|
1544 |
>[% patron_attribute.description | html %]: |
| 1545 |
</label> |
| 1540 |
[% ELSE %] |
1546 |
[% ELSE %] |
| 1541 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
1547 |
<label for="[% patron_attribute.form_id | html %]" id="[% patron_attribute.form_id | html %]_label">[% patron_attribute.description | html %]: </label> |
| 1542 |
[% END %] |
1548 |
[% END %] |
| 1543 |
[% IF ( patron_attribute.use_dropdown ) %] |
1549 |
[% IF ( patron_attribute.use_dropdown ) %] |
| 1544 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]> |
1550 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]> |
|
Lines 1620-1633
Link Here
|
| 1620 |
[% IF ( SMSSendDriver ) %] |
1626 |
[% IF ( SMSSendDriver ) %] |
| 1621 |
[% IF !nosmsalertnumber %] |
1627 |
[% IF !nosmsalertnumber %] |
| 1622 |
<p> |
1628 |
<p> |
| 1623 |
<label for="SMSnumber">SMS number:</label> |
1629 |
<label for="SMSnumber" id="SMSnumber_label">SMS number:</label> |
| 1624 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
1630 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
| 1625 |
<span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
1631 |
<span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
| 1626 |
</p> |
1632 |
</p> |
| 1627 |
[% END %] |
1633 |
[% END %] |
| 1628 |
[% IF SMSSendDriver == 'Email' && !nosms_provider_id %] |
1634 |
[% IF SMSSendDriver == 'Email' && !nosms_provider_id %] |
| 1629 |
<p> |
1635 |
<p> |
| 1630 |
<label for="sms_provider_id">SMS provider:</label> |
1636 |
<label for="sms_provider_id" id="sms_provider_id_label">SMS provider:</label> |
| 1631 |
<select id="sms_provider_id" name="sms_provider_id"> |
1637 |
<select id="sms_provider_id" name="sms_provider_id"> |
| 1632 |
<option value="">Unknown</option> |
1638 |
<option value="">Unknown</option> |
| 1633 |
[% FOREACH s IN sms_providers %] |
1639 |
[% FOREACH s IN sms_providers %] |
| 1634 |
- |
|
|