Lines 1365-1455
Link Here
|
1365 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1365 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1366 |
Patron restrictions |
1366 |
Patron restrictions |
1367 |
</legend> |
1367 |
</legend> |
1368 |
[% IF ( patron.restrictions.count ) %] |
1368 |
<div class="patron_restrictions"> |
1369 |
<table> |
1369 |
[% IF ( patron.restrictions.count ) %] |
1370 |
<thead> |
1370 |
<table> |
1371 |
<tr> |
1371 |
<thead> |
1372 |
<th>Type</th> |
|
|
1373 |
<th>Comment</th> |
1374 |
<th>Expiration</th> |
1375 |
<th>[% tp('patron restriction created on', 'Created') | html %]</th> |
1376 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1377 |
<th>Remove?</th> |
1378 |
[% END %] |
1379 |
</tr> |
1380 |
</thead> |
1381 |
<tbody> |
1382 |
[% FOREACH restriction IN patron.restrictions %] |
1383 |
<tr> |
1372 |
<tr> |
1384 |
<td>[% PROCESS restriction_type_description restriction_type=restriction.type %]</td> |
1373 |
<th>Type</th> |
1385 |
<td> |
1374 |
<th>Comment</th> |
1386 |
[% IF restriction.comment.search('OVERDUES_PROCESS') %] |
1375 |
<th>Expiration</th> |
1387 |
Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw %] |
1376 |
<th>[% tp('patron restriction created on', 'Created') | html %]</th> |
1388 |
[% ELSE %] |
|
|
1389 |
[% restriction.comment | $raw %] |
1390 |
[% END %] |
1391 |
</td> |
1392 |
<td> |
1393 |
[% IF restriction.expiration %] |
1394 |
[% restriction.expiration | $KohaDates %] |
1395 |
[% ELSE %] |
1396 |
<em>Indefinite</em> |
1397 |
[% END %] |
1398 |
</td> |
1399 |
<td>[% restriction.created | $KohaDates %]</td> |
1400 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1377 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1401 |
<td> |
1378 |
<th>Remove?</th> |
1402 |
<input type="checkbox" id="debarment_[% restriction.borrower_debarment_id | html %]" name="remove_debarment" value="[% restriction.borrower_debarment_id | html %]" /> |
|
|
1403 |
</td> |
1404 |
[% END %] |
1379 |
[% END %] |
1405 |
</tr> |
1380 |
</tr> |
1406 |
[% END # /FOREACH d %] |
1381 |
</thead> |
1407 |
</tbody> |
1382 |
<tbody> |
1408 |
</table> |
1383 |
[% FOREACH restriction IN patron.restrictions %] |
1409 |
[% ELSE %] |
1384 |
<tr> |
1410 |
<p>Patron is currently unrestricted.</p> |
1385 |
<td>[% PROCESS restriction_type_description restriction_type=restriction.type %]</td> |
1411 |
[% END # /IF ( patron.restrictions.count ) %] |
1386 |
<td> |
1412 |
|
1387 |
[% IF restriction.comment.search('OVERDUES_PROCESS') %] |
1413 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1388 |
Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw %] |
1414 |
<p |
1389 |
[% ELSE %] |
1415 |
><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p |
1390 |
[% restriction.comment | $raw %] |
1416 |
> |
1391 |
[% END %] |
1417 |
<fieldset id="manual_restriction_form"> |
1392 |
</td> |
1418 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
1393 |
<td> |
1419 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
1394 |
[% IF restriction.expiration %] |
1420 |
<ol> |
1395 |
[% restriction.expiration | $KohaDates %] |
1421 |
[% IF Koha.Preference('PatronRestrictionTypes') %] |
1396 |
[% ELSE %] |
1422 |
<li> |
1397 |
<em>Indefinite</em> |
1423 |
<label for="debarred_type">Type:</label> |
|
|
1424 |
<select name="debarred_type"> |
1425 |
[% FOREACH restriction_type IN restriction_types %] |
1426 |
[% IF !restriction_type.is_system %] |
1427 |
[% IF restriction_type.is_default %] |
1428 |
<option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option> |
1429 |
[% ELSE %] |
1430 |
<option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option> |
1431 |
[% END %] |
1432 |
[% END %] |
1398 |
[% END %] |
|
|
1399 |
</td> |
1400 |
<td>[% restriction.created | $KohaDates %]</td> |
1401 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1402 |
<td> |
1403 |
<input type="checkbox" id="debarment_[% restriction.borrower_debarment_id | html %]" name="remove_debarment" value="[% restriction.borrower_debarment_id | html %]" /> |
1404 |
</td> |
1433 |
[% END %] |
1405 |
[% END %] |
1434 |
</select> |
1406 |
</tr> |
|
|
1407 |
[% END # /FOREACH d %] |
1408 |
</tbody> |
1409 |
</table> |
1410 |
[% ELSE %] |
1411 |
<p>Patron is currently unrestricted.</p> |
1412 |
[% END # /IF ( patron.restrictions.count ) %] |
1413 |
|
1414 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1415 |
<p |
1416 |
><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p |
1417 |
> |
1418 |
<fieldset id="manual_restriction_form"> |
1419 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
1420 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
1421 |
<ol> |
1422 |
[% IF Koha.Preference('PatronRestrictionTypes') %] |
1423 |
<li> |
1424 |
<label for="debarred_type">Type:</label> |
1425 |
<select name="debarred_type"> |
1426 |
[% FOREACH restriction_type IN restriction_types %] |
1427 |
[% IF !restriction_type.is_system %] |
1428 |
[% IF restriction_type.is_default %] |
1429 |
<option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option> |
1430 |
[% ELSE %] |
1431 |
<option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option> |
1432 |
[% END %] |
1433 |
[% END %] |
1434 |
[% END %] |
1435 |
</select> |
1436 |
</li> |
1437 |
[% END %] |
1438 |
<li> |
1439 |
<label for="debarred_comment">Comment: </label> |
1440 |
<input type="text" id="debarred_comment" name="debarred_comment" /> |
1435 |
</li> |
1441 |
</li> |
1436 |
[% END %] |
1442 |
<li> |
1437 |
<li> |
1443 |
<label for="debarred_expiration">Expiration: </label> |
1438 |
<label for="debarred_comment">Comment: </label> |
1444 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" /> |
1439 |
<input type="text" id="debarred_comment" name="debarred_comment" /> |
1445 |
<a href="#" id="clear_debarred_expiration">Clear date</a> |
1440 |
</li> |
1446 |
</li> |
1441 |
<li> |
1447 |
</ol> |
1442 |
<label for="debarred_expiration">Expiration: </label> |
1448 |
<p> |
1443 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" /> |
1449 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
1444 |
<a href="#" id="clear_debarred_expiration">Clear date</a> |
1450 |
</p> |
1445 |
</li> |
1451 |
</fieldset> |
1446 |
</ol> |
1452 |
<!-- /#manual_restriction_form --> |
1447 |
<p> |
1453 |
[% END # /IF CAN_user_borrowers_edit_borrowers %] |
1448 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
1454 |
</div> |
1449 |
</p> |
|
|
1450 |
</fieldset> |
1451 |
<!-- /#manual_restriction_form --> |
1452 |
[% END # /IF CAN_user_borrowers_edit_borrowers %] |
1453 |
</fieldset> |
1455 |
</fieldset> |
1454 |
<!-- /#memberentry_restrictions --> |
1456 |
<!-- /#memberentry_restrictions --> |
1455 |
[% END # /IF ( step_3 ) %] |
1457 |
[% END # /IF ( step_3 ) %] |
Lines 1505-1582
Link Here
|
1505 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1507 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1506 |
Additional attributes and identifiers |
1508 |
Additional attributes and identifiers |
1507 |
</legend> |
1509 |
</legend> |
1508 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
1510 |
<div class="attributes_tables"> |
1509 |
[% FOREACH pa_loo IN patron_attributes %] |
1511 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
1510 |
<ol class="attributes_table"> |
1512 |
[% FOREACH pa_loo IN patron_attributes %] |
1511 |
<div id="aai_[% pa_loo.class | html %]"> |
1513 |
<ol class="attributes_table"> |
1512 |
[% IF pa_loo.class %] |
1514 |
<div id="aai_[% pa_loo.class | html %]"> |
1513 |
<h3 id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</h3> |
1515 |
[% IF pa_loo.class %] |
1514 |
[% END %] |
1516 |
<h3 id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</h3> |
1515 |
[% FOREACH patron_attribute IN pa_loo.items %] |
1517 |
[% END %] |
1516 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
1518 |
[% FOREACH patron_attribute IN pa_loo.items %] |
1517 |
[% IF patron_attribute.mandatory %] |
1519 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
1518 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label> |
|
|
1519 |
[% ELSE %] |
1520 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
1521 |
[% END %] |
1522 |
[% IF ( patron_attribute.use_dropdown ) %] |
1523 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]> |
1524 |
<option value=""></option> |
1525 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
1526 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
1527 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> [% auth_val_loo.lib | html %] </option> |
1528 |
[% ELSE %] |
1529 |
<option value="[% auth_val_loo.authorised_value | html %]"> [% auth_val_loo.lib | html %] </option> |
1530 |
[% END %] |
1531 |
[% END %] |
1532 |
</select> |
1533 |
[% ELSE %] |
1534 |
[% IF patron_attribute.mandatory %] |
1520 |
[% IF patron_attribute.mandatory %] |
1535 |
[% IF patron_attribute.is_date %] |
1521 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label> |
1536 |
<input |
1522 |
[% ELSE %] |
1537 |
type="text" |
1523 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
1538 |
id="[% patron_attribute.form_id | html %]" |
1524 |
[% END %] |
1539 |
name="[% patron_attribute.form_id | html %]" |
1525 |
[% IF ( patron_attribute.use_dropdown ) %] |
1540 |
maxlength="10" |
1526 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]> |
1541 |
size="10" |
1527 |
<option value=""></option> |
1542 |
value="[% patron_attribute.value | html %]" |
1528 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
1543 |
required="required" |
1529 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
1544 |
class="flatpickr" |
1530 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> [% auth_val_loo.lib | html %] </option> |
1545 |
/> |
1531 |
[% ELSE %] |
1546 |
[% ELSE %] |
1532 |
<option value="[% auth_val_loo.authorised_value | html %]"> [% auth_val_loo.lib | html %] </option> |
1547 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required"> |
1533 |
[% END %] |
1548 |
[% patron_attribute.value | html %]</textarea |
1534 |
[% END %] |
1549 |
> |
1535 |
</select> |
1550 |
[% END %] |
|
|
1551 |
[% ELSE %] |
1536 |
[% ELSE %] |
1552 |
[% IF patron_attribute.is_date %] |
1537 |
[% IF patron_attribute.mandatory %] |
1553 |
<input |
1538 |
[% IF patron_attribute.is_date %] |
1554 |
type="text" |
1539 |
<input |
1555 |
id="[% patron_attribute.form_id | html %]" |
1540 |
type="text" |
1556 |
name="[% patron_attribute.form_id | html %]" |
1541 |
id="[% patron_attribute.form_id | html %]" |
1557 |
maxlength="10" |
1542 |
name="[% patron_attribute.form_id | html %]" |
1558 |
size="10" |
1543 |
maxlength="10" |
1559 |
value="[% patron_attribute.value | html %]" |
1544 |
size="10" |
1560 |
class="flatpickr" |
1545 |
value="[% patron_attribute.value | html %]" |
1561 |
/> |
1546 |
required="required" |
|
|
1547 |
class="flatpickr" |
1548 |
/> |
1549 |
[% ELSE %] |
1550 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required"> |
1551 |
[% patron_attribute.value | html %]</textarea |
1552 |
> |
1553 |
[% END %] |
1562 |
[% ELSE %] |
1554 |
[% ELSE %] |
1563 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1555 |
[% IF patron_attribute.is_date %] |
|
|
1556 |
<input |
1557 |
type="text" |
1558 |
id="[% patron_attribute.form_id | html %]" |
1559 |
name="[% patron_attribute.form_id | html %]" |
1560 |
maxlength="10" |
1561 |
size="10" |
1562 |
value="[% patron_attribute.value | html %]" |
1563 |
class="flatpickr" |
1564 |
/> |
1565 |
[% ELSE %] |
1566 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1567 |
[% END %] |
1564 |
[% END %] |
1568 |
[% END %] |
|
|
1569 |
[% END # /IF ( patron_attribute.use_dropdown ) %] |
1570 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1571 |
[% IF ( !patron_attribute.is_date ) %] |
1572 |
<a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a> |
1565 |
[% END %] |
1573 |
[% END %] |
1566 |
[% END # /IF ( patron_attribute.use_dropdown ) %] |
1574 |
[% IF ( patron_attribute.repeatable ) %] |
1567 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1575 |
<a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a> |
1568 |
[% IF ( !patron_attribute.is_date ) %] |
1576 |
[% END %] |
1569 |
<a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a> |
1577 |
[% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %] |
1570 |
[% END %] |
1578 |
</li> |
1571 |
[% IF ( patron_attribute.repeatable ) %] |
1579 |
[% END # /FOREACH patron_attribute %] |
1572 |
<a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a> |
1580 |
</div> |
1573 |
[% END %] |
1581 |
</ol> |
1574 |
[% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %] |
1582 |
[% END # /FOREACH pa_loo %] |
1575 |
</li> |
1583 |
</div> |
1576 |
[% END # /FOREACH patron_attribute %] |
1584 |
<!-- /.attributes_tables --> |
1577 |
</div> |
|
|
1578 |
</ol> |
1579 |
[% END # /FOREACH pa_loo %] |
1580 |
</fieldset> |
1585 |
</fieldset> |
1581 |
<!-- /#memberentry_patron_attributes --> |
1586 |
<!-- /#memberentry_patron_attributes --> |
1582 |
[% END # UNLESS ( no_patron_attribute_types ) %] |
1587 |
[% END # UNLESS ( no_patron_attribute_types ) %] |
Lines 1590-1622
Link Here
|
1590 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1595 |
<i class="fa fa-caret-down" aria-hidden="true"></i> |
1591 |
Patron messaging preferences |
1596 |
Patron messaging preferences |
1592 |
</legend> |
1597 |
</legend> |
1593 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults </div> |
1598 |
<div class="messaging_prefs"> |
1594 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
1599 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults </div> |
1595 |
[% INCLUDE 'messaging-preference-form.inc' %] |
1600 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
1596 |
[% IF ( SMSSendDriver ) %] |
1601 |
[% INCLUDE 'messaging-preference-form.inc' %] |
1597 |
[% IF !nosmsalertnumber %] |
1602 |
[% IF ( SMSSendDriver ) %] |
1598 |
<p> |
1603 |
[% IF !nosmsalertnumber %] |
1599 |
<label for="SMSnumber">SMS number:</label> |
1604 |
<p> |
1600 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
1605 |
<label for="SMSnumber">SMS number:</label> |
1601 |
<span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
1606 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
1602 |
</p> |
1607 |
<span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
1603 |
[% END %] |
1608 |
</p> |
1604 |
[% IF SMSSendDriver == 'Email' && !nosms_provider_id %] |
1609 |
[% END %] |
1605 |
<p> |
1610 |
[% IF SMSSendDriver == 'Email' && !nosms_provider_id %] |
1606 |
<label for="sms_provider_id">SMS provider:</label> |
1611 |
<p> |
1607 |
<select id="sms_provider_id" name="sms_provider_id"> |
1612 |
<label for="sms_provider_id">SMS provider:</label> |
1608 |
<option value="">Unknown</option> |
1613 |
<select id="sms_provider_id" name="sms_provider_id"> |
1609 |
[% FOREACH s IN sms_providers %] |
1614 |
<option value="">Unknown</option> |
1610 |
[% IF s.id == borrower_data.sms_provider_id %] |
1615 |
[% FOREACH s IN sms_providers %] |
1611 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
1616 |
[% IF s.id == borrower_data.sms_provider_id %] |
1612 |
[% ELSE %] |
1617 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
1613 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
1618 |
[% ELSE %] |
|
|
1619 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
1620 |
[% END %] |
1614 |
[% END %] |
1621 |
[% END %] |
1615 |
[% END %] |
1622 |
</select> |
1616 |
</select> |
1623 |
</p> |
1617 |
</p> |
1624 |
[% END # /UNLESS nosms_provider_id %] |
1618 |
[% END # /UNLESS nosms_provider_id %] |
1625 |
[% END # IF ( SMSSendDriver ) %] |
1619 |
[% END # IF ( SMSSendDriver ) %] |
1626 |
</div> |
|
|
1627 |
<!-- /.messaging_prefs --> |
1620 |
</fieldset> |
1628 |
</fieldset> |
1621 |
[% END # IF ( EnhancedMessagingPreferences ) %] |
1629 |
[% END # IF ( EnhancedMessagingPreferences ) %] |
1622 |
[% END # /IF step_5 %] |
1630 |
[% END # /IF step_5 %] |
1623 |
- |
|
|