Commit dbe44a9c authored by tleb's avatar tleb

Fix hour count and submit button

parent eeb791c4
......@@ -125,7 +125,7 @@ def uv_endpoint(request):
res["hours_{}".format(activity)] = 0
for activity in uv["activites"]:
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"]
......
......@@ -12,7 +12,11 @@
{% for field in form %}
{% if not field.is_hidden %}
{% if field.is_hidden %}
{{ field }}
{% else %}
<p>
{{ field.errors }}
<label for="{{ field.name }}">{{ field.label }}</label>
......
Markdown is supported
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