agent_edit.html
2.07 KB
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
44
45
46
47
{% extends "base_page.html" %}
{# Set the title that will be used in base_page #}
{% if agent['agent_id'] != '' %}
{% set subtitle = "Modifier l'agent"+ agent['fullname'] +":" %}
{% else %}
{% set subtitle = "Ajouter un nouvel agent:" %}
{% endif %}
{% block content %}
<form action="{{ url_for('main.agent_edit') }}" method="post">
{% if agent %}
<input class="form-control" id="agent_id" name="agent_id" type="hidden" value="{{ agent['agent_id'] }}">
{% endif %}
<div class="form-group">
<label for="firstname">Nom</label>
<input class="form-control" id="firstname" name="firstname" type="text" value="{{ agent['firstname'] }}">
</div>
<div class="form-group">
<label for="secondname">Prénom</label>
<input class="form-control" id="secondname" name="secondname" type="text" value="{{ agent['secondname'] }}">
</div>
<div class="form-group">
<label for="virtual">Virtuel</label>
<input class="form-control" id="virtual" name="virtual" type="text" value="{{ agent['virtual'] }}">
</div>
<div class="form-group">
<label for="company">Structure</label>
<input class="form-control" id="company_id" name="company_id" type="text" value="{{ agent['company_id'] }}">
</div>
<div class="form-group">
<label for="grade">Grade</label>
<input class="form-control" id="grade_id" name="grade_id" type="text" value="{{ agent['grade_id'] }}">
</div>
<div class="form-group">
<label for="status">Statut</label>
<input class="form-control" id="status_id" name="status_id" type="text" value="{{ agent['status_id'] }}">
</div>
<div class="form-group">
<label for="bap">Bap</label>
<input class="form-control" id="bap_id" name="bap_id" type="text" value="{{ agent['bap_id'] }}">
</div>
<div class="form-group">
<label for="permanent">Permanent</label>
<input class="form-control" id="permanent" name="permanent" type="text" value="{{ agent['permanent'] }}">
</div>
<input class="btn btn-dark" type="submit" value="Valider">
</form>
{% endblock %}