aboutsummaryrefslogtreecommitdiff
path: root/app/templates/wtform.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/wtform.html')
-rw-r--r--app/templates/wtform.html20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/templates/wtform.html b/app/templates/wtform.html
deleted file mode 100644
index 6d9add5..0000000
--- a/app/templates/wtform.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html' %}
-
-{% block main %}
- <h2>WTForms in Flask</h2>
- <p>Here we are using the Flask-WTF library to create and process a form. Flask-WTF also comes with CSRF protection and validation classes.</p>
- <form method="post" action="{{ url_for('wtform') }}">
- {% include 'flash_messages.html' %}
- {{ form.csrf_token }}
- <div class="form-group">
- {{ form.firstname.label }} {{ form.firstname(class="form-control") }}
- </div>
- <div class="form-group">
- {{ form.lastname.label }} {{ form.lastname(class="form-control") }}
- </div>
- <div class="form-group">
- {{ form.email.label }} {{ form.email(class="form-control", placeholder="jdoe@example.com") }}
- </div>
- <button type="submit" class="btn btn-primary">Submit</button>
-</form>
-{% endblock %} \ No newline at end of file