templates: show unaivable courses with a special but do not forbid selecting them

This commit is contained in:
Benjamin Dauvergne 2013-02-11 11:13:43 +01:00
parent 83ae740fc6
commit 2962dff62d
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -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 %}