aboutsummaryrefslogtreecommitdiff
path: root/app/templates/form.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/form.html')
-rw-r--r--app/templates/form.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/templates/form.html b/app/templates/form.html
new file mode 100644
index 0000000..ae30dd5
--- /dev/null
+++ b/app/templates/form.html
@@ -0,0 +1,23 @@
+{% extends 'base.html' %}
+
+{% block main %}
+ <h2>Basic Form in Flask</h2>
+
+ <form action="{{ url_for('basic_form') }}" method="post">
+ {% include 'flash_messages.html' %}
+ <div class="form-group">
+ <label for="firstname">First Name</label>
+ <input type="text" class="form-control" name="firstname" id="firstname" />
+ </div>
+ <div class="form-group">
+ <label for="lastname">Last Name</label>
+ <input type="text" class="form-control" name="lastname" id="lastname" />
+ </div>
+ <div class="form-group">
+ <label for="email">E-mail</label>
+ <input type="email" class="form-control" name="email" id="email" placeholder="jdoe@example.com" />
+ </div>
+
+ <button type="submit" class="btn btn-primary">Submit</button>
+ </form>
+{% endblock %} \ No newline at end of file