X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/13cee1a7148844ffcd026ad0b541a3289fbafefa..1a12630094dd57a463a8a1d4f64744e3b3b245af:/src/paypal/templates/paypal/form.html diff --git a/src/paypal/templates/paypal/form.html b/src/paypal/templates/paypal/form.html index b2e6a0c7d..de8382f26 100644 --- a/src/paypal/templates/paypal/form.html +++ b/src/paypal/templates/paypal/form.html @@ -4,10 +4,15 @@ {% block title %}{% trans "Subscription" %}{% endblock %} {% block body %} -
- {% csrf_token %} - {{ form.as_p }} - {# paypal submit button #} - -
+ {# https://www.facebook.com/sharer/sharer.php?u=https%3A//wolnelektury.pl{% url 'paypal_form' %} #} + {% if user.is_authenticated %} +
+ {% csrf_token %} + {{ form.as_p }} + {# paypal submit button #} + +
+ {% else %} + {% trans "You must be logged in to subscribe." %} + {% endif %} {% endblock %} \ No newline at end of file