charge_form.html
2.27 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
48
49
50
51
52
53
54
55
56
57
58
59
60
{% extends "base_page.html" %}
{% block content %}
<!-- Invisible span to definte wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">cds,charge/add</span>
<form id="charge_form" class="pdc-form" action="{{ url_for('main.charge_add') }}" method="post">
<div class="form-group">
<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 %}
<option value="{{ a.id }}" {{ "selected" if a.id == agent.id }}>{{ a.namefull }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="project_id">Choisir projet</label>
<select id="project_id" name="project_id" class="form-control">
<option selected>---</option>
{% for p in projects %}
<option value="{{ p.id }}" {{ "selected" if p.id == project.id }}>{{ p.name }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<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>
</div>
<div class="form-group">
<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>
</div>
<div class="form-group">
<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>
</div>
<div class="form-group">
<label for="charge_rate">Charge (%)</label>
<input class="form-control col-2" id="charge_rate" name="charge_rate" type="text" placeholder="Ex: 55">
</div>
<input class="pdc-form-submit" type="submit" value="Valider">
</form>
{% endblock %}