Commit b9d9081047e678055a050b627cfeaf0812e1026f

Authored by hitier
1 parent 11b5b6f8

Tweak charges table headers

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