Commit b9d9081047e678055a050b627cfeaf0812e1026f

Authored by hitier
1 parent 11b5b6f8

Tweak charges table headers

app/db_mgr.py
... ... @@ -68,7 +68,7 @@ def charges_by_project(project_id):
68 68 for line in results:
69 69 nocomma_line = [str(cell) for cell in line]
70 70 nocomma_results.append(nocomma_line)
71   - headers = ["Period", "Agent", "Service", "Capacity", "Charge"]
  71 + headers = ["Periode", "Agent", "Service", "Fonction", "Charge"]
72 72 nocomma_results.insert(0, headers)
73 73 return nocomma_results
74 74  
... ... @@ -101,7 +101,7 @@ def charges_by_agent_tabled(agent_id):
101 101 for line in results:
102 102 nocomma_line = [str(cell) for cell in line]
103 103 nocomma_results.append(nocomma_line)
104   - headers = ["Period", "Project", "Service", "Capacity", "Charge"]
  104 + headers = ["Periode", "Projet", "Service", "Fonction", "Charge"]
105 105 nocomma_results.insert(0, headers)
106 106 return nocomma_results
107 107  
... ...
app/main/static/css/charges.css
... ... @@ -6,7 +6,8 @@
6 6 border: solid 1px lightsteelblue;
7 7 }
8 8  
9   -#charge_table td {
  9 +#charge_table td,
  10 +#charge_table th {
10 11 padding: 0.8em;
11 12 }
12 13  
... ...
app/main/templates/agent.html
... ... @@ -10,7 +10,7 @@
10 10 <thead>
11 11 <tr>
12 12 {% for header in charges[0] %}
13   - <td>{{header}}</td>
  13 + <th>{{header}}</th>
14 14 {% endfor %}
15 15 </tr>
16 16 </thead>
... ...
app/main/templates/project.html
... ... @@ -9,7 +9,7 @@
9 9 <thead>
10 10 <tr>
11 11 {% for header in charges[0] %}
12   - <td>{{header}}</td>
  12 + <th>{{header}}</th>
13 13 {% endfor %}
14 14 </tr>
15 15 </thead>
... ...