mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 06:22:22 +00:00
Fix update notes modal
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
b838f1b3f0
commit
1bd9cea458
@ -41,7 +41,7 @@ def create_notes(instance: Union[Passage, Pool], raw, **_):
|
|||||||
if not raw:
|
if not raw:
|
||||||
if isinstance(instance, Pool):
|
if isinstance(instance, Pool):
|
||||||
for passage in instance.passages.all():
|
for passage in instance.passages.all():
|
||||||
create_notes(passage)
|
create_notes(passage, raw)
|
||||||
return
|
return
|
||||||
|
|
||||||
for jury in instance.pool.juries.all():
|
for jury in instance.pool.juries.all():
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
initModal("updatePassage", "{% url "participation:passage_update" pk=passage.pk %}")
|
initModal("updatePassage", "{% url "participation:passage_update" pk=passage.pk %}")
|
||||||
|
|
||||||
{% if my_note is not None %}
|
{% if my_note is not None %}
|
||||||
initModal("updateNotesModal", "{% url "participation:update_notes" pk=my_note.pk %}")
|
initModal("updateNotes", "{% url "participation:update_notes" pk=my_note.pk %}")
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif user.registration.participates %}
|
{% elif user.registration.participates %}
|
||||||
initModal("uploadSynthesis", "{% url "participation:upload_synthesis" pk=passage.pk %}")
|
initModal("uploadSynthesis", "{% url "participation:upload_synthesis" pk=passage.pk %}")
|
||||||
|
Loading…
Reference in New Issue
Block a user