Commit 25f05a9d authored by SophieWeb's avatar SophieWeb
Browse files

Présentation du bilan et structuration du tableau

parent c4182582
Pipeline #504220 passed with stages
in 9 minutes and 44 seconds
......@@ -6,67 +6,63 @@
<%block name='afteractionmenu'>
% if current_grid is not None and current_grid.active_rows or current_grid.passive_rows:
<div class='alert'>
<h4>
<div class="text_block limited_width width50">
<h2>
${current_grid.label | n}
</h4>
</h2>
</div>
<div class='search_filters'>
<div class="search_filters limited_width width50">
${form|n}
</div>
<% active_measures = current_grid.active_rows %>
<% passive_measures = current_grid.passive_rows %>
<div class='layout flex two_cols'>
<div class="align_center vertical_align_center">
<div class='table_container'>
<table>
<tr><th>Actif</th><tr>
% for typ, value in active_measures:
% if typ.is_total:
<tr class="row_recap row_total">
<th scope="row" class="col_text">
<h3>
% else:
<tr>
<td class="col_text">
% endif
${typ.label | n}
% if typ.is_total:
</h3>
<div class="limited_width width50 layout flex two_cols">
<div class="table_container">
<table>
<tbody>
<tr class="row_recap">
<td colspan="2"><h3>Actif</h3></td>
</tr>
</tbody>
<tbody>
% for typ, value in active_measures:
% if typ.is_total:
<tr class="row_recap">
% else:
<tr>
% endif
<th scope="row" class="col_text">
${typ.label | n}
</th>
% else:
</td>
% endif
<td class='col_number'>${api.format_float(value, precision=2)|n}&nbsp;€</td>
<td class="col_number">${api.format_float(value, precision=2)|n}&nbsp;€</td>
</tr>
% endfor
</table>
</div>
% endfor
</tbody>
</table>
</div>
<div class='table_container'>
<div class="table_container">
<table>
<tr><th>Passif</th><tr>
% for typ, value in passive_measures:
% if typ.is_total:
<tr class="row_recap row_total">
<th scope="row" class="col_text">
<h3>
% else:
<tr>
<td class="col_text">
% endif
${typ.label | n}
% if typ.is_total:
</h3>
<tbody>
<tr class="row_recap">
<td colspan="2"><h3>Passif</h3></td>
</tr>
</tbody>
<tbody>
% for typ, value in passive_measures:
% if typ.is_total:
<tr class="row_recap">
% else:
<tr>
% endif
<th scope="row" class="col_text">
${typ.label | n}
</th>
% else:
</td>
% endif
<td class='col_number'>${api.format_float(value, precision=2)|n}&nbsp;€</td>
<td class="col_number">${api.format_float(value, precision=2)|n}&nbsp;€</td>
</tr>
% endfor
</tbody>
</table>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment