Skip to content

Commit

Permalink
self-checkout: add new template
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Oct 31, 2024
1 parent 166a407 commit 5c57f7a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions cds_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def query_params_modifier(extra_params):
"request_no_items": "cds_request_no_items.html",
"checkin": "cds_checkin.html",
"checkout": "cds_checkout.html",
"self_checkout": "cds_self_checkout.html",
"extend": "cds_extend.html",
"overdue_reminder": "cds_overdue_reminder.html",
"expiring_reminder": "cds_will_expire_in_reminder.html",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% block title %}
CERN Library: loan started for "{{ document.title|safe }}"
{% endblock %}

{% block body_plain %}
Dear {{ patron.name }},

Your self-checkout loan for "{{ document.full_title }}" <{{ spa_routes.HOST }}{{ spa_routes.PATHS['literature']|format(pid=document.pid) }}> has started.

The due date is {{ loan.end_date }}.
{% endblock %}

{% block body_html %}
Dear {{ patron.name }}, <br/><br/>

Your self-checkout loan for <a href="{{ spa_routes.HOST }}{{ spa_routes.PATHS['literature']|format(pid=document.pid) }}">"{{ document.full_title }}"</a> has <b>started</b>. <br/><br/>

<br/><br/>
The due date is <b>{{ loan.end_date }}</b>.
{% endblock %}

0 comments on commit 5c57f7a

Please sign in to comment.