Changeset - 846c20be2a97
[Not reviewed]
crypto
0 2 0
Dennis Fink - 3 years ago 2022-01-18 09:59:56
dennis.fink@c3l.lu
Update class names for cryptostuff
2 files changed with 66 insertions and 67 deletions:
0 comments (0 inline, 0 general)
c3l_membership/static/pdf.css
Show inline comments
 
@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;
 
}
c3l_membership/templates/member.html
Show inline comments
 
@@ -88,17 +88,17 @@
 
    {% elif form.payment.data == 'cash' %}
 
      <p>{% trans %}Please bring {{ price }}€ with you the next time you meet us!{% endtrans %}</p>
 
    {% elif form.payment.data in config["CRYPTOCURRENCIES"] %}
 
      <div class="btccontainer">
 
      <div class="cryptocontainer">
 
        <div>
 
          <ul class="btctext">
 
          <ul class="cryptotext">
 
            <li><b>{% trans %}Address:{% endtrans %}</b> {{ config["CRYPTOCURRENCIES"][form.payment.data]["ADDRESS"] }}</li>
 
            <li><b>{% trans %}Label:{% endtrans %}</b> Membership Fee</li>
 
            <li><b>{% trans %}Message:{% endtrans %}</b> {{ year }} {{ form.username.data }}</li>
 
            <li><b>{% trans %}Amount:{% endtrans %}</b> {{ price }} {{ config["CRYPTOCURRENCIES"][form.payment.data]["COMMODITY"] }}</li>
 
          </ul>
 
        </div>
 
        {% set crypto_url={{ config["CRYPTOCURRENCIES"][form.payment.data]["URL"] }}.format(amount=price, year=year, username=form.username.data) %}
 
        <div><img class="btcqrcode" src="{{ qrcode(crypto_url) }}" /></div>
 
        {% set crypto_url=config["CRYPTOCURRENCIES"][form.payment.data]["URL"].format(amount=price, year=year, username=form.username.data) %}
 
        <div><img class="cryptoqrcode" src="{{ qrcode(crypto_url) }}" /></div>
 
      </div>
 
    {% elif form.payment.data == 'digicash' %}
 
      <div class="digicash">
0 comments (0 inline, 0 general)