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 @@ -12,8 +12,6 @@ body { img { width: 250px; - margin-left: auto; - margin-right: auto; display: block; margin-bottom: 1.5em; } @@ -28,23 +26,27 @@ p { margin-bottom: 1em; } -dl { - margin-top: 0; - margin-bottom: 1em; +.logos { + display: flex; + justify-content: space-between; + align-items: center; } -dt { - float: left; - width: 360px; - clear: left; - text-align: left; - font-weight: 700; - margin-bottom: 1px; +.data { + margin-top: 0; + margin-bottom: 1em; + display: flex; + justify-content: space-between; + flex-direction: column; } -dd { - margin-left: 240px; - margin-bottom: 1px; +.data > div { + display: flex; + justify-content: space-between; +} + +.data > div > div:first-child { + font-weight: 700; } footer { @@ -55,6 +57,10 @@ footer { width: 100%; } +.signature { + padding-top: 1em; +} + .membersignature { height: 2em; width: 45%; @@ -81,20 +87,29 @@ footer { padding: 0; } + +.btccontainer { + display: flex; + justify-content: space-between; +} + .btctext { list-style-type: none; margin: 0; padding: 0; - position: relative; - float: left; - width: 45%; } .btcqrcode { - position: relative; - float: left; - width: 25%; - padding-left: 10em; + width: 10em; +} + +.digicash { + display: flex; + justify-content: space-evenly; +} + +.digicash img { + width: 10em; } a { 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 @@ -5,40 +5,77 @@
-Send this document to the Chaos Computer Club Lëtzebuerg!
{% if form.payment.data == 'wire transfer' %}Please bring {{ price }}€ with you the next time you meet us!
{% elif form.payment.data == 'bitcoin' %} -Pay with digicash!
Luxembourg, the
diff --git a/c3l_membership/views.py b/c3l_membership/views.py --- a/c3l_membership/views.py +++ b/c3l_membership/views.py @@ -1,3 +1,4 @@ +import re import subprocess from datetime import date @@ -8,24 +9,54 @@ from .forms import MembershipForm root_page = Blueprint("root", __name__) +xml_template = "