forked from ScoDoc/ScoDoc
Edition en ligne des codes Apogee des UEs de BUT
This commit is contained in:
parent
3163e00ff5
commit
c41307c637
@ -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:
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user