Disable client-side validation on credit_note forms
* HTML5 browsers have some clevers to do client-side validation of forms * Django activates this by default for certain field types * However, in this case, there are three forms on this page. We rely on two of them being invalid in order to figure out what processing to do. * So we need to disable the client-side validation.
This commit is contained in:
		
							parent
							
								
									2e07fbeac5
								
							
						
					
					
						commit
						2aae2af55d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -18,7 +18,7 @@ | ||||||
| <p>This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.</p> | <p>This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.</p> | ||||||
| 
 | 
 | ||||||
| {% if credit_note.is_unclaimed %} | {% if credit_note.is_unclaimed %} | ||||||
|   <form class="form-horizontal" method="post" action=""> |   <form class="form-horizontal" method="post" action="" novalidate> | ||||||
|     {% csrf_token %} |     {% csrf_token %} | ||||||
|     <h3>Apply to invoice</h3> |     <h3>Apply to invoice</h3> | ||||||
|     <p>You can apply this credit note to an unpaid invoice.</p> |     <p>You can apply this credit note to an unpaid invoice.</p> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Polley
						James Polley