# HG changeset patch # User Dennis Fink # Date 2015-10-11 18:54:06 # Node ID d5952273ec1e41d7e1e336f73f31c0c5811e64bc # Parent e6b433dbecb94fdf315a69b7c448e9fe2974a76e Added country selection into donate page diff --git a/ennstatus/donate/views.py b/ennstatus/donate/views.py --- a/ennstatus/donate/views.py +++ b/ennstatus/donate/views.py @@ -13,7 +13,7 @@ donate_page = Blueprint('donate', __name @donate_page.route('/', methods=('GET', 'POST')) def index(): - current_app.logger.info('Handling snailmail') + current_app.logger.info('Handling index') form = BPMForm() country_choices = [choice[0] for choice in form.country.choices] @@ -21,7 +21,7 @@ def index(): current_app.logger.debug('Validating form') if form.validate_on_submit(): country = form.country.data - return redirect(url_for('donate.snailmail', country=country)) + return redirect(url_for('donate.index', country=country)) else: if 'country' in request.args: country = request.args['country'] diff --git a/ennstatus/templates/donate/index.html b/ennstatus/templates/donate/index.html --- a/ennstatus/templates/donate/index.html +++ b/ennstatus/templates/donate/index.html @@ -63,16 +63,26 @@

SnailMail

+
+
+ {{ form.hidden_tag() }} +
+ {{ form.country(_class="form-class") }} +
+ +
+
+
Frënn vun der Ënn, ASBL
BPM 381892
- 34, Rue Gabriel Lippmann
- L-5365, Munsbach
- Luxembourg + {{ address['address'] }}
+ {{ address['postal_code'] }}, {{ address['city'] }}
+ {{ address['country'] }}
-
+

Bitcoin