Blame view

app/main/templates/charge_form.html 2.27 KB
412b041b   hitier   Add charge
1
2
{% extends "base_page.html" %}
{% block content %}
9f86aeea   Anais Amato   Change navbar act...
3

bb0ea5a5   hitier   New charge add form
4
  <!-- Invisible span to definte wich ul and a in the navbar are actived -->
fd63e06e   Anais Amato   update coloration...
5
  <span id="nav_actived" style="display: none">cds,add_charge</span>
412b041b   hitier   Add charge
6

bb0ea5a5   hitier   New charge add form
7
  <form id="charge_form" class="pdc-form" action="{{ url_for('main.charge_add') }}" method="post">
412b041b   hitier   Add charge
8
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
9
10
11
12
      <label for="agent_id">Nom de l'agent</label>
      <select id="agent_id" name="agent_id" class="form-control">
        <option selected>---</option>
        {% for a in agents %}
09551925   hitier   New charge add pa...
13
          <option value="{{ a.id }}" {{ "selected" if a.id == agent.id }}>{{ a.namefull }}</option>
bb0ea5a5   hitier   New charge add form
14
        {% endfor %}
412b041b   hitier   Add charge
15
      </select>
412b041b   hitier   Add charge
16
    </div>
412b041b   hitier   Add charge
17
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
18
19
20
21
      <label for="project_id">Choisir projet</label>
      <select id="project_id" name="project_id" class="form-control">
        <option selected>---</option>
        {% for p in projects %}
09551925   hitier   New charge add pa...
22
          <option value="{{ p.id }}" {{ "selected" if p.id == project.id }}>{{ p.name }}</option>
bb0ea5a5   hitier   New charge add form
23
24
        {% endfor %}
      </select>
412b041b   hitier   Add charge
25
    </div>
412b041b   hitier   Add charge
26
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
27
28
29
30
31
32
33
      <label for="service_id">Choisir le service</label>
      <select id="service_id" name="service_id" class="form-control">
        <option selected>---</option>
        {% for s in services %}
          <option value="{{ s.id }}">{{ s.name }}</option>
        {% endfor %}
      </select>
412b041b   hitier   Add charge
34
    </div>
412b041b   hitier   Add charge
35
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
36
37
38
39
40
41
42
      <label for="period_id">Choisir la période</label>
      <select id="period_id" name="period_id" class="form-control">
        <option selected>---</option>
        {% for p in periods %}
          <option value="{{ p.id }}">{{ p.name }}</option>
        {% endfor %}
      </select>
412b041b   hitier   Add charge
43
    </div>
412b041b   hitier   Add charge
44
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
45
46
47
48
49
50
51
      <label for="capacity_id">Choisir la fonction</label>
      <select id="capacity_id" name="capacity_id" class="form-control">
        <option selected>---</option>
        {% for c in capacities %}
          <option value="{{ c.id }}">{{ c.name }}</option>
        {% endfor %}
      </select>
412b041b   hitier   Add charge
52
    </div>
412b041b   hitier   Add charge
53
    <div class="form-group">
bb0ea5a5   hitier   New charge add form
54
55
      <label for="charge_rate">Charge (%)</label>
      <input class="form-control col-2" id="charge_rate" name="charge_rate" type="text" placeholder="Ex: 55">
412b041b   hitier   Add charge
56
    </div>
7daae4a7   hitier   New configurable ...
57
    <input class="pdc-form-submit" type="submit" value="Valider">
bb0ea5a5   hitier   New charge add form
58
  </form>
412b041b   hitier   Add charge
59
60

{% endblock %}