Changed visa card error placement
This commit is contained in:
		
					parent
					
						
							
								fd2bc6e5cf
							
						
					
				
			
			
				commit
				
					
						4de04b2663
					
				
			
		
					 2 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
					@ -59,7 +59,6 @@
 | 
				
			||||||
                        {% csrf_token %}
 | 
					                        {% csrf_token %}
 | 
				
			||||||
                        {% bootstrap_field field show_label=False type='fields'%}
 | 
					                        {% bootstrap_field field show_label=False type='fields'%}
 | 
				
			||||||
                        {% endfor %}
 | 
					                        {% endfor %}
 | 
				
			||||||
                        {% bootstrap_form_errors form type='non_fields'%}
 | 
					 | 
				
			||||||
                    </form>
 | 
					                    </form>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="col-xs-12 col-sm-7 col-md-6 creditcard-box dcl-creditcard">
 | 
					                <div class="col-xs-12 col-sm-7 col-md-6 creditcard-box dcl-creditcard">
 | 
				
			||||||
| 
						 | 
					@ -130,7 +129,7 @@
 | 
				
			||||||
                                <div id="card-errors" role="alert"></div>
 | 
					                                <div id="card-errors" role="alert"></div>
 | 
				
			||||||
                                <div class="row">
 | 
					                                <div class="row">
 | 
				
			||||||
                                    <div class="col-xs-12">
 | 
					                                    <div class="col-xs-12">
 | 
				
			||||||
                                        {% if not messages %}
 | 
					                                        {% if not messages and not form.errors %}
 | 
				
			||||||
                                            <p class="card-warning-content">
 | 
					                                            <p class="card-warning-content">
 | 
				
			||||||
                                                {% blocktrans %}
 | 
					                                                {% blocktrans %}
 | 
				
			||||||
                                                You are not making any payment yet. After submitting your card
 | 
					                                                You are not making any payment yet. After submitting your card
 | 
				
			||||||
| 
						 | 
					@ -146,6 +145,9 @@
 | 
				
			||||||
                                                </li></ul>
 | 
					                                                </li></ul>
 | 
				
			||||||
                                                {% endif %}
 | 
					                                                {% endif %}
 | 
				
			||||||
                                            {% endfor %}
 | 
					                                            {% endfor %}
 | 
				
			||||||
 | 
					                                            {% if form.errors %}
 | 
				
			||||||
 | 
					                                                {% bootstrap_form_errors form type='non_fields'%}
 | 
				
			||||||
 | 
					                                            {% endif %}
 | 
				
			||||||
                                        </div>
 | 
					                                        </div>
 | 
				
			||||||
                                    </div>
 | 
					                                    </div>
 | 
				
			||||||
                                    <div class="col-xs-12">
 | 
					                                    <div class="col-xs-12">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ def handleStripeError(f):
 | 
				
			||||||
            'error': None
 | 
					            'error': None
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        common_message = "Currently its not possible to make payments."
 | 
					        common_message = "Currently it's not possible to make payments."
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            response_object = f(*args, **kwargs)
 | 
					            response_object = f(*args, **kwargs)
 | 
				
			||||||
            response = {
 | 
					            response = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue