Curie-Web/app/templates/form.html

23 lines
860 B
HTML
Raw Normal View History

2020-06-24 19:09:05 +01:00
{% 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 %}