1
0
forked from ScoDoc/ScoDoc
ScoDoc/app/templates/assiduites/widgets/moduleimpl_selector_multiple.j2
2024-01-19 17:06:01 +01:00

20 lines
607 B
Django/Jinja

<select name="moduleimpl_select" id="moduleimpl_select">
{% with moduleimpl_id=moduleimpl_id %}
{% include "assiduites/widgets/simplemoduleimpl_select.j2" %}
{% endwith %}
{% for cat, mods in choices.items() %}
<optgroup label="{{cat}}">
{% for mod in mods %}
{% if mod.moduleimpl_id == moduleimpl_id %}
<option value="{{mod.moduleimpl_id}}" selected> {{mod.name}} </option>
{% else %}
<option value="{{mod.moduleimpl_id}}"> {{mod.name}} </option>
{% endif %}
{% endfor %}
</optgroup>
{% endfor %}
</select>