Blame view

app/main/templates/agent_edit.html 1.62 KB
96346598   hitier   Insert descriptio...
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
{% extends "base_page.html" %}
{% block content %}
{% if agent %}
Modifier l'agent {{ agent.name}}.
{% else %}
Ajouter un nouvel agent.
{% endif %}
<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.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" name="company" type="text" value="{{agent.company.name}}">
  </div>
  <div class="form-group">
    <label for="grade">Grade</label>
    <input class="form-control" id="grade" name="grade" type="text" value="{{agent.grade.name}}">
  </div>
  <div class="form-group">
    <label for="status">Statut</label>
    <input class="form-control" id="status" name="status" type="text" value="{{agent.status.name}}">
  </div>
  <div class="form-group">
    <label for="bap">Bap</label>
    <input class="form-control" id="bap" name="bap" type="text" value="{{agent.bap.name}}">
  </div>
  <input class="btn btn-dark" type="submit" value="Valider">
</form>
{% endblock %}