From d4489421ccb20d02ad94d4782478a9a38d438ec5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 30 Dec 2019 21:06:30 +0000 Subject: [PATCH] Minor club fixes. --- .../templates/catalogue/book_detail.html | 2 ++ .../templates/catalogue/book_short.html | 2 +- src/club/static/club/form.js | 6 +++++- src/club/templates/club/membership_form.html | 20 ++++++++++++++++++- src/club/templates/club/payment/payu-re.html | 1 - src/club/templates/club/payment/payu.html | 1 - .../static/scss/main/book_box.scss | 11 +++++++++- 7 files changed, 37 insertions(+), 6 deletions(-) diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 6e875bd4e..4b654dd1d 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -56,6 +56,7 @@ {% endfor %} +{% with extra_info=book.get_extra_info_json %} {% if extra_info.source_url %}
{% trans "Source" %} {% trans "of the book" %} @@ -78,5 +79,6 @@ +{% endwith %} {% endblock %} diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 59debf42c..3586b2ec3 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -147,7 +147,7 @@ {% else %} -

{% trans "For now this work is only available for our subscribers." %} +

{% trans "For now this work is only available for our subscribers." %} Dołącz do Towarzystwa Przyjaciół Wolnych Lektur

{% endif %} diff --git a/src/club/static/club/form.js b/src/club/static/club/form.js index 6be8220eb..5e09ce435 100644 --- a/src/club/static/club/form.js +++ b/src/club/static/club/form.js @@ -16,5 +16,9 @@ $(function() { } update_methods(); $("#payment-form .plan").change(update_methods); - + + + $("#payment-form").submit(function() { + _paq.push(['trackGoal', 12, $("#id_amount").val()]); + }); }); diff --git a/src/club/templates/club/membership_form.html b/src/club/templates/club/membership_form.html index 8ad0387e6..480d65186 100644 --- a/src/club/templates/club/membership_form.html +++ b/src/club/templates/club/membership_form.html @@ -10,6 +10,22 @@ {% block body %}