forked from ScoDoc/ScoDoc
24 lines
726 B
Django/Jinja
24 lines
726 B
Django/Jinja
<select name="moduleimpl_select" id="moduleimpl_select">
|
|
|
|
{% if not no_default %}
|
|
{% with moduleimpl_id=moduleimpl_id %}
|
|
{% include "assiduites/widgets/simplemoduleimpl_select.j2" %}
|
|
{% endwith %}
|
|
{% else %}
|
|
<option value="">Pas de filtre</option>
|
|
{% endif %}
|
|
|
|
{% 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> |