Edition en ligne des codes Apogee des UEs de BUT

This commit is contained in:
Emmanuel Viennet 2024-06-19 19:14:12 +02:00
parent 3163e00ff5
commit c41307c637
2 changed files with 7 additions and 5 deletions

View File

@ -1514,7 +1514,7 @@ def edit_ue_set_code_apogee(id=None, value=None):
ue_id = id
value = value.strip("-_ \t")[:APO_CODE_STR_LEN] # tronque
log("edit_ue_set_code_apogee: ue_id=%s code_apogee=%s" % (ue_id, value))
log(f"edit_ue_set_code_apogee: ue_id={ue_id} code_apogee={value}")
ues = ue_list(args={"ue_id": ue_id})
if not ues:

View File

@ -52,10 +52,12 @@
else '<span class="missing_ue_ects">aucun</span>'|safe
}} ECTS
{%- endif -%}
{%- if ue.code_apogee -%}
{{ virg() }} Apo {{ue.code_apogee}}
{%- endif -%}
)
{{ virg() }} Apo:
<span class="{% if editable %}span_apo_edit{% endif %}"
data-url="edit_ue_set_code_apogee"
id="{{ue.id}}" data-placeholder="{{scu.APO_MISSING_CODE_STR}}">
{{ue.code_apogee or ''
}}</span>)
</span>
</span>