aboutsummaryrefslogtreecommitdiff
path: root/app/templates/form.html
blob: ae30dd59f796444ed4bfa9e9ed7d696172547b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 %}