5 changed files with 51 additions and 39 deletions
@ -0,0 +1,37 @@ |
|||||
|
{% if form.errors %} |
||||
|
{% for field in form %} |
||||
|
{% for error in field.errors %} |
||||
|
<div class="w3-panel w3-yellow"> |
||||
|
<h3>Eingabefehler!</h3> |
||||
|
<p>{{ error|escape }}</p> |
||||
|
</div> |
||||
|
|
||||
|
{% endfor %} |
||||
|
{% endfor %} |
||||
|
{% for error in form.non_field_errors %} |
||||
|
<div class="w3-panel w3-yellow"> |
||||
|
<h3>Eingabefehler!</h3> |
||||
|
<p>{{ error|escape }}</p> |
||||
|
</div> |
||||
|
{% endfor %} |
||||
|
{% endif %} |
||||
|
|
||||
|
|
||||
|
<form action="{% url 'kontakt' %}" method="Post"> |
||||
|
{% csrf_token %} |
||||
|
{% for hidden_field in form.hidden_fields %} |
||||
|
{{ hidden_field }} |
||||
|
{% endfor %} |
||||
|
<div class="w3-row-padding" style="margin:0 -16px 8px -16px"> |
||||
|
<div class="w3-half"> |
||||
|
{{ form.name }} |
||||
|
</div> |
||||
|
<div class="w3-half"> |
||||
|
{{ form.from_email }} |
||||
|
</div> |
||||
|
</div> |
||||
|
{{ form.message }} |
||||
|
<button class="w3-button w3-black w3-right w3-section" type="submit"> |
||||
|
<i class="fa fa-paper-plane"></i> ABSENDEN |
||||
|
</button> |
||||
|
</form> |
||||
Loading…
Reference in new issue