<form action="/contact/" method="post">
{{ myform.non_field_errors.as_text }}
<div class="fieldWrapper">
{{ myform.subject.errors.as_text }}
<label for="id_subject">Email subject:</label>
{{ myform.subject }}
</div>
<div class="fieldWrapper">
{{ myform.message.errors.as_text }}
<label for="id_message">Your message:</label>
{{ myform.message }}
</div>
<div class="fieldWrapper">
{{ myform.sender.errors.as_text }}
<label for="id_sender">Your email address:</label>
{{ myform.sender }}
</div>
<div class="fieldWrapper">
{{ myform.cc_myself.errors.as_text }}
<label for="id_cc_myself">CC yourself?</label>
{{ myform.cc_myself }}
</div>
<p><input type="submit" value="Send message" /></p>
</form>
Комментариев нет:
Отправить комментарий