Skip to content

Commit

Permalink
Change the base title and email text
Browse files Browse the repository at this point in the history
To reflect that not just flight coupons are being sold.
  • Loading branch information
kedder committed Dec 13, 2020
1 parent 068bde9 commit 55c33e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 5 additions & 7 deletions coupons/templates/coupon_email.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
Sveiki!

Siunčiame Jums Vilniaus aeroklubo kvietimą skrydžiui
(užsakymas {{ coupon.order.id }}). Atvažiuodami skristi, būtinai
su savimi turėkite atspausdintą kvietimą. Atspausdinti kvietimą galite
čia:
Siunčiame Jums Vilniaus aeroklubo kvietimą (užsakymas {{ coupon.order.id }}).
Atspausdinti kvietimą galite čia:

{{ url }}

Jei turite klausimų, kreipkitės el. paštu aeroklubas@sklandymas.lt arba
telefonu +370 615 15060.

Iki pasimatymo aerodrome!
Iki pasimatymo!

--
Vilniaus aeroklubo kolektyvas
--
Vilniaus aeroklubas
http://sklandymas.lt
3 changes: 2 additions & 1 deletion coupons/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ def to_date(v: str) -> date:


def _send_confirmation_email(coupon: models.Coupon, request: HttpRequest) -> None:
subject = "Kvietimas skrydziui " "Paluknio aerodrome nr. %s" % coupon.id
ct = coupon.order.coupon_type
subject = f"{ct.title} (kvietimas {coupon.id})"
coupon_url = request.build_absolute_uri(
reverse("coupon", kwargs={"coupon_id": coupon.id})
)
Expand Down
2 changes: 1 addition & 1 deletion templates/base_generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load static %}
<html lang="en">
<head>
<title>{% block title %}{% endblock %} Pramoginiai skrydžiai</title>
<title>{% block title %}{% endblock %} Vilniaus Aeroklubas</title>
<link rel="icon" type="image/png" href="{% static 'coupons/images/favicon.png' %}">
<link rel="stylesheet" type="text/css" href="{% static 'coupons/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'coupons/style.css' %}">
Expand Down

0 comments on commit 55c33e7

Please sign in to comment.