Blame view

app/main/templates/agent_edit.html 2.25 KB
96346598   hitier   Insert descriptio...
1
{% extends "base_page.html" %}
ca0797d6   hitier   New agent edit form
2
3
4
{#  Set the title that will be used in base_page #}
{% if agent['agent_id'] != '' %}
  {% set subtitle = "Modifier l'agent"+ agent['fullname'] +":" %}
96346598   hitier   Insert descriptio...
5
{% else %}
ca0797d6   hitier   New agent edit form
6
  {% set subtitle = "Ajouter un nouvel agent:" %}
96346598   hitier   Insert descriptio...
7
{% endif %}
ca0797d6   hitier   New agent edit form
8
9
10
11
12
13
14
15
16
17
18
19
20
{% 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>
687ef08f   hitier   Use checkboxes fo...
21
22
23
24
25
26
27
28
29
    <div class="form-group form-check form-check-inline">
      <label class="form-check-label" for="virtual">Virtuel</label>
      <input class="form-check-input" type="checkbox" id="virtual" name="virtual"
          {{ 'checked' if agent['virtual'] == 1 }} value="1">
    </div>
    <div class="form-group form-check form-check-inline">
      <label class="form-check-label" for="permanent">Permanent</label>
      <input class="form-check-input" type="checkbox" id="permanent" name="permanent"
          {{ 'checked' if agent['permanent'] == 1 }} value="1">
ca0797d6   hitier   New agent edit form
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    </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>
ca0797d6   hitier   New agent edit form
47
48
    <input class="btn btn-dark" type="submit" value="Valider">
  </form>
96346598   hitier   Insert descriptio...
49
{% endblock %}