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 %}
 | 
			
		||||
  <form action="" method="POST">
 | 
			
		||||
    {% csrf_token %}
 | 
			
		||||
    <button type="submit" class="btn choice-btn">{% trans "Place order" %}</button>
 | 
			
		||||
      {% csrf_token %}
 | 
			
		||||
      <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>
 | 
			
		||||
{% endblock submit_btn %}
 | 
			
		||||
| 
						 | 
				
			
			@ -132,21 +132,21 @@
 | 
			
		|||
            {% endif %}
 | 
			
		||||
        </div>
 | 
			
		||||
        {% if not order %}
 | 
			
		||||
            <form method="post" id="virtual_machine_create_form">
 | 
			
		||||
                {% csrf_token %}
 | 
			
		||||
                <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">
 | 
			
		||||
                        {% block submit_btn %}
 | 
			
		||||
            {% block submit_btn %}
 | 
			
		||||
                <form method="post" id="virtual_machine_create_form">
 | 
			
		||||
                    {% csrf_token %}
 | 
			
		||||
                    <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 class="btn choice-btn" id="btn-create-vm" data-href="{% url 'hosting:order-confirmation' %}" data-toggle="modal" data-target="#createvm-modal">
 | 
			
		||||
                                {% trans "Place order" %}
 | 
			
		||||
                            </button>
 | 
			
		||||
                        {% endblock submit_btn %}
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </form>
 | 
			
		||||
                </form>
 | 
			
		||||
            {% endblock submit_btn %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue