Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
dbe44a9c
Commit
dbe44a9c
authored
Oct 18, 2019
by
tleb
Browse files
Fix hour count and submit button
parent
eeb791c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/views/api.py
View file @
dbe44a9c
...
...
@@ -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"
]
...
...
pedagogy/templates/pedagogy/uv_create.jinja
View file @
dbe44a9c
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment