diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 15:31:07 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 15:31:07 +0530 |
commit | 111795679e3d87b050f78399c021403827e7afbc (patch) | |
tree | 5eb366c0a9d641e6b0310bbeb4d4a190a69e97ae | |
parent | 350dc6430a35696efaaa4d5d736f3faed9be73ae (diff) |
fixed contact form
-rw-r--r-- | app/templates/contact.html | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/templates/contact.html b/app/templates/contact.html index c07032a..13f065d 100644 --- a/app/templates/contact.html +++ b/app/templates/contact.html @@ -10,6 +10,7 @@ <form method="POST" action="/ContactUs"> {% include 'flash_messages.html' %} {{ form.csrf_token }} + {% from "_formhelpers.html" import render_field %} <div class="form-group"> {{ form.name.label }} {{ form.name(class="form-control") }} </div> @@ -27,11 +28,4 @@ </div> </form> </div> -{% if form.name.errors %} - <ul class="errors"> - {% for error in form.name %} - <li>{{ error }}</li> - {% endfor %} - </ul> -{% endif %} {% endblock %}
\ No newline at end of file |