Errors should be big red boxes
This commit is contained in:
		
							parent
							
								
									079f87b1d2
								
							
						
					
					
						commit
						18fcfddad6
					
				
					 3 changed files with 16 additions and 3 deletions
				
			
		|  | @ -1,5 +1,9 @@ | ||||||
|  | {% if field.errors %} | ||||||
|  |   <div class="alert alert-danger col-sm-offset-2 col-sm-10" role="alert"> | ||||||
|  |     {{ field.errors }} | ||||||
|  |   </div> | ||||||
|  | {% endif %} | ||||||
| <label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}{% if field.field.required %} *{% endif %}</label> | <label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}{% if field.field.required %} *{% endif %}</label> | ||||||
| {{ field.errors }} |  | ||||||
| <div class="col-sm-10"> | <div class="col-sm-10"> | ||||||
|   {{ field }} |   {{ field }} | ||||||
|   {% if field.help_text %} |   {% if field.help_text %} | ||||||
|  |  | ||||||
|  | @ -1,11 +1,16 @@ | ||||||
| <h3> | <h3> | ||||||
|   {{ field.label }}{% if field.field.required %} *{% endif %} |   {{ field.label }}{% if field.field.required %} *{% endif %} | ||||||
|   {{ field.errors }} |  | ||||||
| </h3> | </h3> | ||||||
| {% if field.help_text %} | {% if field.help_text %} | ||||||
|   <span class="help_text">{{ field.help_text|safe }}</span> |   <span class="help_text">{{ field.help_text|safe }}</span> | ||||||
| {% endif %} | {% endif %} | ||||||
| 
 | 
 | ||||||
|  | {% if field.errors %} | ||||||
|  |   <div class="alert alert-danger" role="alert"> | ||||||
|  |     {{ field.errors }} | ||||||
|  |   </div> | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
| {% for item in field %} | {% for item in field %} | ||||||
|   <div class="col-sm-offset-2 col-sm-10"> |   <div class="col-sm-offset-2 col-sm-10"> | ||||||
|     {{ item }} |     {{ item }} | ||||||
|  |  | ||||||
|  | @ -1,7 +1,11 @@ | ||||||
| <h3> | <h3> | ||||||
|   {{ field.label }}{% if field.field.required %} *{% endif %} |   {{ field.label }}{% if field.field.required %} *{% endif %} | ||||||
|   {{ field.errors }} |  | ||||||
| </h3> | </h3> | ||||||
|  | {% if field.errors %} | ||||||
|  |   <div class="alert alert-danger col-sm-offset-2 col-sm-10" role="alert"> | ||||||
|  |     {{ field.errors }} | ||||||
|  |   </div> | ||||||
|  | {% endif %} | ||||||
| <div class="col-sm-offset-2 col-sm-10"> | <div class="col-sm-offset-2 col-sm-10"> | ||||||
|   <label class="form-check-label" for="id_profile-past_lca_0"> |   <label class="form-check-label" for="id_profile-past_lca_0"> | ||||||
|     {{ field }} |     {{ field }} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sachi King
						Sachi King