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 ue_id = id
value = value.strip("-_ \t")[:APO_CODE_STR_LEN] # tronque 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}) ues = ue_list(args={"ue_id": ue_id})
if not ues: if not ues:

View File

@ -52,10 +52,12 @@
else '<span class="missing_ue_ects">aucun</span>'|safe else '<span class="missing_ue_ects">aucun</span>'|safe
}} ECTS }} ECTS
{%- endif -%} {%- endif -%}
{%- if ue.code_apogee -%} {{ virg() }} Apo:
{{ virg() }} Apo {{ue.code_apogee}} <span class="{% if editable %}span_apo_edit{% endif %}"
{%- 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>
</span> </span>