forked from CGM_Public/pretix_original
Enhance payment method validation
This commit is contained in:
@@ -33,7 +33,21 @@
|
||||
</div>
|
||||
</div>
|
||||
{# TODO: Question answers #}
|
||||
{# TODO: Payment method #}
|
||||
<div class="row-fluid">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="{% url "presale:event.checkout.payment" organizer=request.event.organizer.slug event=request.event.slug %}">{% trans "Modify" %}</a>
|
||||
</div>
|
||||
<h3 class="panel-title">
|
||||
{% trans "Payment" %}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{ payment }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row checkout-button-row">
|
||||
<div class="col-md-4 col-md-offset-8">
|
||||
<button class="btn btn-block btn-primary btn-lg" type="submit">
|
||||
|
||||
@@ -16,13 +16,14 @@
|
||||
<strong class="pull-right">+ {{ p.fee|floatformat:2 }} {{ event.currency }}</strong>
|
||||
<input type="radio" name="payment" value="{{ p.provider.identifier }}"
|
||||
data-parent="#payment_accordion"
|
||||
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
||||
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
||||
<strong>{{ p.provider.verbose_name }}</strong>
|
||||
</label>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="payment_{{ p.provider.identifier }}"
|
||||
class="panel-collapse collapse {% if request.POST.payment == p.provider.identifier %}in{% endif %}">
|
||||
class="panel-collapse collapse {% if selected == p.provider.identifier %}in{% endif %}">
|
||||
<div class="panel-body form-horizontal">
|
||||
{{ p.form }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user