Commit a7537589aab08de617fb24b345fa418c86aba700
1 parent
919d72f4
Exists in
master
and in
4 other branches
Display charges in tables as ETP
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
app/main/templates/agent.html
@@ -23,7 +23,8 @@ | @@ -23,7 +23,8 @@ | ||
23 | <tr> | 23 | <tr> |
24 | {% for i in range(line|length) %} | 24 | {% for i in range(line|length) %} |
25 | {%if 'Charge' in charges[0][i] %} | 25 | {%if 'Charge' in charges[0][i] %} |
26 | - <td>{{line[i]}} %</td> | 26 | + {% set charge = line[i] | int %} |
27 | + <td>{{charge / 100}}</td> | ||
27 | {%else%} | 28 | {%else%} |
28 | <td>{{line[i]}}</td> | 29 | <td>{{line[i]}}</td> |
29 | {%endif%} | 30 | {%endif%} |
app/main/templates/agents.html
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | {{ agent.firstname }} | 19 | {{ agent.firstname }} |
20 | {{ agent.secondname }} | 20 | {{ agent.secondname }} |
21 | </a></td> | 21 | </a></td> |
22 | - <td>{{agent.total_charge}} %</td> | 22 | + <td>{{agent.total_charge / 100}}</td> |
23 | <td>{{agent.num_projects}}</td> | 23 | <td>{{agent.num_projects}}</td> |
24 | </tr> | 24 | </tr> |
25 | {% endfor %} | 25 | {% endfor %} |
app/main/templates/projects.html
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | {% for c in project[2:-1] %} | 21 | {% for c in project[2:-1] %} |
22 | <td>{{c}}</td> | 22 | <td>{{c}}</td> |
23 | {% endfor %} | 23 | {% endfor %} |
24 | - <td>{{ project[-1] }} %</td> | 24 | + <td>{{ project[-1] /100}}</td> |
25 | </tr> | 25 | </tr> |
26 | {% endfor %} | 26 | {% endfor %} |
27 | </tbody> | 27 | </tbody> |