Fix hour count and submit button

This commit is contained in:
tleb 2019-10-18 01:45:49 +02:00
parent eeb791c460
commit dbe44a9c1c
2 changed files with 6 additions and 2 deletions

View File

@ -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"]

View File

@ -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>