Commit a7537589aab08de617fb24b345fa418c86aba700

Authored by hitier
1 parent 919d72f4

Display charges in tables as ETP

app/main/templates/agent.html
... ... @@ -23,7 +23,8 @@
23 23 <tr>
24 24 {% for i in range(line|length) %}
25 25 {%if 'Charge' in charges[0][i] %}
26   - <td>{{line[i]}} %</td>
  26 + {% set charge = line[i] | int %}
  27 + <td>{{charge / 100}}</td>
27 28 {%else%}
28 29 <td>{{line[i]}}</td>
29 30 {%endif%}
... ...
app/main/templates/agents.html
... ... @@ -19,7 +19,7 @@
19 19 {{ agent.firstname }}
20 20 {{ agent.secondname }}
21 21 </a></td>
22   - <td>{{agent.total_charge}} %</td>
  22 + <td>{{agent.total_charge / 100}}</td>
23 23 <td>{{agent.num_projects}}</td>
24 24 </tr>
25 25 {% endfor %}
... ...
app/main/templates/projects.html
... ... @@ -21,7 +21,7 @@
21 21 {% for c in project[2:-1] %}
22 22 <td>{{c}}</td>
23 23 {% endfor %}
24   - <td>{{ project[-1] }} %</td>
  24 + <td>{{ project[-1] /100}}</td>
25 25 </tr>
26 26 {% endfor %}
27 27 </tbody>
... ...