aboutsummaryrefslogtreecommitdiff
path: root/app/templates/form.html
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-06-24 23:39:05 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-06-24 23:39:05 +0530
commite52c18a09cabd374093b06ef0f521767cd228ba6 (patch)
tree6548d357ba45e75334da8c225a0c6cd5f77f0850 /app/templates/form.html
make it better
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