Преглед на файлове

Añado acompañante si es por parejas

creylopez преди 1 година
родител
ревизия
86f98265f6
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/templates/eventos/detalle_evento.html

+ 2 - 0
src/templates/eventos/detalle_evento.html

@@ -84,12 +84,14 @@
                     <thead>
                         <tr>
                             <th class="cell">Apuntados</th>
+                            {% if reserva.acompanante %}<th class="cell">Acompañante</th>{% endif %}
                         </tr>
                     </thead>
                     <tbody>
                         {% for reserva in reservas %}
                         <tr>
                             <td class="cell">{{ reserva.usuario.nombre }}</td>
+                            {% if reserva.acompanante %} <td class="cell">{{ reserva.acompanante.nombre }}</td>{% endif %}
                         </tr>
                         {% endfor %}	
                     </tbody>