taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit cddb599bf700d17486acca90653c27203646e08c
parent aae59e26eacf5316e54eb8895448df6b6e59567d
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue, 18 Oct 2022 23:48:12 -0300

adding label to inputs

Diffstat:
Mtalermerchantdemos/templates/donations-index.html.j2 | 44+++++++++++++++++++++++++++++++-------------
1 file changed, 31 insertions(+), 13 deletions(-)

diff --git a/talermerchantdemos/templates/donations-index.html.j2 b/talermerchantdemos/templates/donations-index.html.j2 @@ -19,19 +19,37 @@ <form name="tform" action="{{ url_for('checkout',lang=getlang()) }}" method="GET" class="pure-form"> <div class="participation" id="fake-shop"> - <select name="donation_receiver"> - <option value="GNUnet">GNUnet</option> - <option value="Taler">GNU Taler</option> - <option value="Tor">Tor</option> - </select> - <select id="taler-donation" name="donation_amount"> - <option value="{{ merchant_currency }}:0.1">0.1 {{ merchant_currency }}</option> - <option value="{{ merchant_currency }}:1">1 {{ merchant_currency }}</option> - <option value="{{ merchant_currency }}:6">5 {{ merchant_currency }}</option> - <option value="{{ merchant_currency }}:10">10 {{ merchant_currency }}</option> - </select> - <input type="text" name="donation_donor" value="{{gettext("Anonymous Donor")}}" /> - <input type="submit" class="pure-button pure-button-primary" value="{{gettext("Donate!")}}" /> + <div> + <label> + Receiver: + <select name="donation_receiver"> + <option value="GNUnet">GNUnet</option> + <option value="Taler">GNU Taler</option> + <option value="Tor">Tor</option> + </select> + </label> + </div> + + <div> + <label> + Amount: + <select id="taler-donation" name="donation_amount"> + <option value="{{ merchant_currency }}:0.1">0.1 {{ merchant_currency }}</option> + <option value="{{ merchant_currency }}:1">1 {{ merchant_currency }}</option> + <option value="{{ merchant_currency }}:6">5 {{ merchant_currency }}</option> + <option value="{{ merchant_currency }}:10">10 {{ merchant_currency }}</option> + </select> + </label> + </div> + + <div> + <label> + Donor: + <input type="text" name="donation_donor" value="{{gettext("Anonymous Donor")}}" /> + </label> + </div> + + <button class="pure-button pure-button-primary" name="submit" value="{{gettext("Donate!")}}" /> </div> </form> <p class="graybox">