form method fix
This commit is contained in:
parent
dfbda2a53b
commit
3cf28c793c
2 changed files with 20 additions and 13 deletions
|
@ -7,7 +7,14 @@
|
||||||
|
|
||||||
{% block submit_btn %}
|
{% block submit_btn %}
|
||||||
<form action="" method="POST">
|
<form action="" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn choice-btn">{% trans "Place order" %}</button>
|
<div class="row">
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="dcl-place-order-text">{% blocktrans with vm_price=request.session.specs.price %}By clicking "Place order" this plan will charge your credit card account with the fee of {{ vm_price }}CHF/month{% endblocktrans %}.</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-4 order-confirm-btn text-right">
|
||||||
|
<button type="submit" class="btn choice-btn">{% trans "Place order" %}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock submit_btn %}
|
{% endblock submit_btn %}
|
|
@ -132,21 +132,21 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if not order %}
|
{% if not order %}
|
||||||
<form method="post" id="virtual_machine_create_form">
|
{% block submit_btn %}
|
||||||
{% csrf_token %}
|
<form method="post" id="virtual_machine_create_form">
|
||||||
<div class="row">
|
{% csrf_token %}
|
||||||
<div class="col-sm-8">
|
<div class="row">
|
||||||
<div class="dcl-place-order-text">{% blocktrans with vm_price=request.session.specs.price %}By clicking "Place order" this plan will charge your credit card account with the fee of {{ vm_price }}CHF/month{% endblocktrans %}.</div>
|
<div class="col-sm-8">
|
||||||
</div>
|
<div class="dcl-place-order-text">{% blocktrans with vm_price=request.session.specs.price %}By clicking "Place order" this plan will charge your credit card account with the fee of {{ vm_price }}CHF/month{% endblocktrans %}.</div>
|
||||||
<div class="col-sm-4 order-confirm-btn text-right">
|
</div>
|
||||||
{% block submit_btn %}
|
<div class="col-sm-4 order-confirm-btn text-right">
|
||||||
<button class="btn choice-btn" id="btn-create-vm" data-href="{% url 'hosting:order-confirmation' %}" data-toggle="modal" data-target="#createvm-modal">
|
<button class="btn choice-btn" id="btn-create-vm" data-href="{% url 'hosting:order-confirmation' %}" data-toggle="modal" data-target="#createvm-modal">
|
||||||
{% trans "Place order" %}
|
{% trans "Place order" %}
|
||||||
</button>
|
</button>
|
||||||
{% endblock submit_btn %}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
{% endblock submit_btn %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue