mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Fix hour count and submit button
This commit is contained in:
parent
eeb791c460
commit
dbe44a9c1c
@ -125,7 +125,7 @@ def uv_endpoint(request):
|
|||||||
res["hours_{}".format(activity)] = 0
|
res["hours_{}".format(activity)] = 0
|
||||||
for activity in uv["activites"]:
|
for activity in uv["activites"]:
|
||||||
if activity["code"] in activities:
|
if activity["code"] in activities:
|
||||||
res["hours_{}".format(activity["code"])] += activity["nbh"]
|
res["hours_{}".format(activity["code"])] += activity["nbh"] // 60
|
||||||
|
|
||||||
res["manager"] = uv["automne"]["responsable"]
|
res["manager"] = uv["automne"]["responsable"]
|
||||||
|
|
||||||
|
@ -12,7 +12,11 @@
|
|||||||
|
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
|
|
||||||
{% if not field.is_hidden %}
|
{% if field.is_hidden %}
|
||||||
|
|
||||||
|
{{ field }}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
{{ field.errors }}
|
{{ field.errors }}
|
||||||
<label for="{{ field.name }}">{{ field.label }}</label>
|
<label for="{{ field.name }}">{{ field.label }}</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user