modify_user.twig 1.98 KB
Newer Older
Moreau Elise's avatar
Moreau Elise committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends 'common/layout.twig' %}
{% block content %}
<div class="form_format">
<form class="ui form {% if formstatus %} {{formstatus}} {% endif %} " action="/account/modify" method="post">
<h4 class="ui dividing header">Modify your profile</h4>
    <div class="field">
        <input type="text" name="firstname" id="firstname" placeholder="Firstname" value="{{user.firstname}}">
    </div>
    <div class="field">
        <input type="text" name="lastname" id="lastname" placeholder="Lastname" value="{{user.lastname}}">
    </div>
    <div class="field">
        <input type="text" name="username" id="username" placeholder="Username" value="{{user.username}}">
        {% if username_formstatus %}
        <div class="ui {{formstatus}} message">
            <div class="header">Action Forbidden</div>
            <p>Username already used.</p>
        </div>
        {% endif %}
    </div>
    <div class="field">
        <input type="password" name="password" id="password" placeholder="Password">
    </div>
    <div class="field">
        <input type="password" name="confirmpassword" id="confirmpassword" placeholder="Confirm your password">
        {% if password_formstatus %}
        <div class="ui {{formstatus}} message">
            <ul class="list">
                <li>{{password_message}}</li>
            </ul>
        </div>
        {% endif %}
    </div>
    <div class="field">
        <input type="email" name="mail" id="mail" placeholder="Email" value="{{user.mail}}">
        {% if email_formstatus %}
        <div class="ui {{formstatus}} message">
            <ul class="list">
                <li>{{email_message}}</li>
            </ul>
        </div>
        {% endif %}
    </div>
Moreau Elise's avatar
Moreau Elise committed
44
45
46
47
48
49
50
    <div class="ui checkbox">
        <input type="checkbox" name="contaminated" id="contaminated" >
            <label for="contaminated">Contaminated</label>
        </input>
    </div>
    <div class="field col o6">
        <input type="submit" class="ui submit button">
Moreau Elise's avatar
Moreau Elise committed
51
    </div>
Moreau Elise's avatar
Moreau Elise committed
52
53
54
</form>
</div>
{% endblock %}