estim sprint

This commit is contained in:
2024-02-21 22:18:01 +01:00
parent 2df92a3b7f
commit 4f88121362
2 changed files with 52 additions and 13 deletions

View File

@ -139,14 +139,23 @@
</div>
</div>
<div style="color:var(--colorftbodydark);zoom:75%;" class="mt-5">
<table style="width:100%">
{% for jalon in tbestim %}
<div style="" class="mt-5">
{% for jalon in tbestim %}
<table style="color:var(--colorftbodydark);zoom:75%; width:100%; border:1px solid var(--colorbgbodylight)">
<tr>
<td>{{jalon.nmjal}}</td>
<td><span id="total{{jalon.gijal}}" class="totalweight">{{jalon.nbjrs}}</span></td>
{% endfor %}
</table>
<td style="width:30px;text-align:right;"><span id="totaljal{{jalon.gijal}}" class="totalweight">{{jalon.nbjrs}}</span></td>
</tr>
{% for sprint in jalon.sprints %}
{% if not loop.first or sprint.idspr!=-100 %}
<tr>
<td>{{sprint.nmspr}}</td>
<td style="width:30px;text-align:right;"><span id="totalspr{{jalon.gijal}}-{{sprint.idspr}}" class="totalweight">{{sprint.nbjrs}}</span></td>
</tr>
{% endif %}
{% endfor %}
</table>
{% endfor %}
</div>
</div>
@ -561,8 +570,12 @@
$(".totalweight").html("0");
Object.entries(data.weights).forEach(entry => {
const [key, value] = entry;
$("#total"+key).html(value);
const [keyj, jalon] = entry;
$("#totaljal"+jalon.id).html(jalon.weight.toFixed(1).replace(/\.0$/, ''));
Object.entries(jalon.sprints).forEach(entry => {
const [keys, sprint] = entry;
$("#totalspr"+sprint.id).html(sprint.weight.toFixed(1).replace(/\.0$/, ''));
});
});
}
});
@ -957,7 +970,7 @@
}
}
});
}, 60000);
}, 300000);
});