speaker list: improve transport/hosting rendering

This commit is contained in:
Élie Bouttier 2016-10-03 14:18:28 +02:00
parent 0132f84456
commit 26f5e35d5a

View File

@ -56,7 +56,7 @@
<td>{{ speaker.user.get_full_name }}</td> <td>{{ speaker.user.get_full_name }}</td>
<td class="text-right">{{ speaker.talk_set.count }}</td> <td class="text-right">{{ speaker.talk_set.count }}</td>
{% if speaker.need_transport %} {% if speaker.need_transport %}
<td class="warning"> <td class="{% if speaker.transport_booked %}success{% else %}warning{% endif %}">
{% for transport in speaker.transport.all %} {% for transport in speaker.transport.all %}
{% if not forloop.first %}, {% endif %} {% if not forloop.first %}, {% endif %}
{{ transport }} {{ transport }}
@ -66,7 +66,7 @@
<td></td> <td></td>
{% endif %} {% endif %}
{% if speaker.need_hosting %} {% if speaker.need_hosting %}
<td class="warning"> <td class="{% if speaker.hosting_booked %}success{% else %}warning{% endif %}">
{% if speaker.homestay %} {% if speaker.homestay %}
Logement chez habitant Logement chez habitant
{% else %} {% else %}