Allow disable paypal.
[wolnelektury.git] / src / club / templates / club / 2022 / donation_step1_form.html
index 2f98869..7066db5 100644 (file)
   {% with amounts=club.get_amounts %}
   <div class="l-checkout__payments payments-once">
     {% for amount in amounts.single %}
-      <div class="l-checkout__payments__box once{% if not schedule.monthly and schedule.amount == amount.amount or not schedule and club.default_single_amount == amount.amount %} is-active{% endif %}{% if amount.narrow_wide %} narrow-wide{% endif %}{% if amount.wide %} l-checkout__payments__box--special{% if not amount.wide_not_wide %} l-checkout__payments__box--xl{% endif %}{% endif %}">
-        <div>
-          <h3>{{ amount.amount }} zł</h3>
-          <div class="l-checkout__payments__box__btn-wrp">
-            <button name="single_amount" value="{{ amount.amount }}">Wybierz</button>
-          </div>
-        </div>
-        {% if amount.description %}
-          <div>
+      <div class="l-checkout__payments__box once{% if not schedule.monthly and schedule.amount == amount.amount or not schedule and club.default_single_amount == amount.amount %} is-active{% endif %}{% if amount.wide %} l-checkout__payments__box--special{% endif %} l-checkout__payments__box--{{ amount.box_variant }}">
+
+        <h3>{{ amount.amount }} zł</h3>
+        <div class="l-checkout__payments__box__btn-wrp">
+          {% if amount.description %}
             <p>{{ amount.description|safe }}</p>
-          </div>
-        {% endif %}
+          {% endif %}
+          <button name="single_amount" value="{{ amount.amount }}">Wybierz</button>
+        </div>
       </div>
     {% endfor %}
     <input type="hidden"
 
   <div class="l-checkout__payments payments-recurring">
     {% for amount in amounts.monthly %}
-      <div class="l-checkout__payments__box{% if schedule.monthly and schedule.amount == amount.amount or not schedule and amount.amount == club.default_monthly_amount %} is-active{% endif %}{% if amount.narrow_wide %} narrow-wide{% endif %}{% if amount.wide and not amount.wide_not_wide %} l-checkout__payments__box--xl{% endif %}">
+      <div class="l-checkout__payments__box{% if schedule.monthly and schedule.amount == amount.amount or not schedule and amount.amount == club.default_monthly_amount %} is-active{% endif %}{% if amount.wide %} l-checkout__payments__box--special{% endif %} l-checkout__payments__box--{{ amount.box_variant }}">
         <h3>{{ amount.amount }} zł <span>/mies.</span></h3>
         <div class="l-checkout__payments__box__btn-wrp">
-          <p>{{ amount.description|safe }}</p>
+          {% if amount.description %}
+            <p>{{ amount.description|safe }}</p>
+          {% endif %}
           <button name="monthly_amount" value="{{ amount.amount }}">Wybierz</button>
         </div>
       </div>
 </form>
 
 <div class="l-checkout__secure">
-<img src="{% static '2022/images/payments-padlock.png' %}" class="l-checkout__secure__padlock">
-Bezpieczne płatności zapewniają:
-<img src="{% static '2022/images/payments-2.png' %}" class="l-checkout__secure__img">
+  <img src="{% static '2022/images/payments-padlock.png' %}" class="l-checkout__secure__padlock">
+  Bezpieczne płatności zapewniają:
+  <img src="{% static '2022/images/payments-payu.png' %}" class="l-checkout__secure__img" alt="PayU Visa MasterCard">
+  {% if club.paypal_enabled %}
+    <img src="{% static '2022/images/payments-paypal.png' %}" class="l-checkout__secure__img" alt="PayPal">
+  {% endif %}
 </div>
 
 <div class="l-checkout__cols bt-w">
@@ -81,11 +83,11 @@ Bezpieczne płatności zapewniają:
         <div class="l-checkout__info">
           <div class="l-checkout__info__item">
             <div>nazwa odbiorcy</div>
-            <h3>Fundacja Nowoczesna Polska</h3>
+            <h3>Fundacja Wolne Lektury</h3>
             <button title="Kopiuj tekst" class="js-copy">
               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
             </button>
-            <input type="text" value="Fundacja Nowoczesna Polska">
+            <input type="text" value="Fundacja Wolne Lektury">
           </div>
           <div class="l-checkout__info__item">
             <div>adres odbiorcy</div>