# HG changeset patch # User Dennis Fink # Date 2022-01-18 09:59:56 # Node ID 846c20be2a97f47a0912777e49330731bea39816 # Parent 10cfc443717898d987ed8f8bce9b8cb975b643b1 Update class names for cryptostuff diff --git a/c3l_membership/static/pdf.css b/c3l_membership/static/pdf.css --- a/c3l_membership/static/pdf.css +++ b/c3l_membership/static/pdf.css @@ -1,117 +1,116 @@ @page { - size: A4; - margin-top: 1cm; - margin-left: 2cm; - margin-right: 2cm; - margin-bottom: 1cm; + size: A4; + margin-top: 1cm; + margin-left: 2cm; + margin-right: 2cm; + margin-bottom: 1cm; } body { - font-size: 1em; + font-size: 1em; } img { - width: 250px; - display: block; - margin-bottom: 1.5em; + width: 250px; + display: block; + margin-bottom: 1.5em; } h1 { - text-decoration: underline; - font-size: 1.2em; + text-decoration: underline; + font-size: 1.2em; } p { - text-align: justify; - margin-bottom: 1em; + text-align: justify; + margin-bottom: 1em; } .logos { - display: flex; - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + align-items: center; } .data { - margin-top: 0; - margin-bottom: 1em; - display: flex; - justify-content: space-between; - flex-direction: column; + margin-top: 0; + margin-bottom: 1em; + display: flex; + justify-content: space-between; + flex-direction: column; } .data > div { - display: flex; - justify-content: space-between; + display: flex; + justify-content: space-between; } .data > div > div:first-child { - font-weight: 700; + font-weight: 700; } footer { - position: fixed; - bottom: 0; - font-size: 0.75em; - text-align: center; - width: 100%; + position: fixed; + bottom: 0; + font-size: 0.75em; + text-align: center; + width: 100%; } .signature { - padding-top: 1em; + padding-top: 1em; } .membersignature { - height: 2em; - width: 45%; - border-bottom: 1px solid #000; - padding-bottom: 4em; - margin-top: -1em; - position: relative; - float: left; + height: 2em; + width: 45%; + border-bottom: 1px solid #000; + padding-bottom: 4em; + margin-top: -1em; + position: relative; + float: left; } .adminsignature { - height: 2em; - width: 45%; - border-top: 1px solid #000; - padding-top: 1px; - margin-top: 5em; - position: relative; - float: left; - margin-left: 2em; + height: 2em; + width: 45%; + border-top: 1px solid #000; + padding-top: 1px; + margin-top: 5em; + position: relative; + float: left; + margin-left: 2em; } .bank { - list-style-type: none; - padding: 0; + list-style-type: none; + padding: 0; +} + +.cryptocontainer { + display: flex; + justify-content: space-between; } - -.btccontainer { - display: flex; - justify-content: space-between; +.cryptotext { + list-style-type: none; + margin: 0; + padding: 0; } -.btctext { - list-style-type: none; - margin: 0; - padding: 0; -} - -.btcqrcode { - width: 10em; +.cryptoqrcode { + width: 10em; } .digicash { - display: flex; - justify-content: space-evenly; + display: flex; + justify-content: space-evenly; } .digicash img { - width: 10em; + width: 10em; } a { - text-decoration: none; + text-decoration: none; } diff --git a/c3l_membership/templates/member.html b/c3l_membership/templates/member.html --- a/c3l_membership/templates/member.html +++ b/c3l_membership/templates/member.html @@ -88,17 +88,17 @@ {% elif form.payment.data == 'cash' %}

{% trans %}Please bring {{ price }}€ with you the next time you meet us!{% endtrans %}

{% elif form.payment.data in config["CRYPTOCURRENCIES"] %} -
+
-
    +
    • {% trans %}Address:{% endtrans %} {{ config["CRYPTOCURRENCIES"][form.payment.data]["ADDRESS"] }}
    • {% trans %}Label:{% endtrans %} Membership Fee
    • {% trans %}Message:{% endtrans %} {{ year }} {{ form.username.data }}
    • {% trans %}Amount:{% endtrans %} {{ price }} {{ config["CRYPTOCURRENCIES"][form.payment.data]["COMMODITY"] }}
- {% set crypto_url={{ config["CRYPTOCURRENCIES"][form.payment.data]["URL"] }}.format(amount=price, year=year, username=form.username.data) %} -
+ {% set crypto_url=config["CRYPTOCURRENCIES"][form.payment.data]["URL"].format(amount=price, year=year, username=form.username.data) %} +
{% elif form.payment.data == 'digicash' %}