templates: show unaivable courses with a special but do not forbid selecting them
This commit is contained in:
parent
83ae740fc6
commit
2962dff62d
|
@ -6,7 +6,7 @@
|
|||
{% else %}
|
||||
<option value="">---</option>
|
||||
{% for course in response.courses %}
|
||||
<option {% if not course.available %}disabled{% endif %} value="{{ course.id }}">{{ course.name }}{% if not course.available %} (indisponible){% endif %}</option>
|
||||
<option class="{% if not course.available %}unavailable{% endif %}" value="{{ course.id }}">{{ course.name }}{% if not course.available %} (indisponible){% endif %}</option>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</select>
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
.modal.large .modal-body {
|
||||
max-height: 600px;
|
||||
}
|
||||
option.unavailable {
|
||||
color: #EEEEEE;
|
||||
}
|
||||
</style>
|
||||
<script src="{{ STATIC_URL }}/jquery/js/jquery.form.js"></script>
|
||||
{% endblock %}
|
||||
|
|
Reference in New Issue