Last change
on this file since d2472e8 was
27c0bd4,
checked in by lhernandez <lhernandez@…>, 7 years ago
|
Implementado el detail views del evento
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[66158c7] | 1 | {% extends 'base.template.html' %} |
---|
| 2 | {% load staticfiles %} |
---|
| 3 | {% block title %}Eventos{% endblock %} |
---|
| 4 | {% block content %} |
---|
| 5 | <h1 class="center">Eventos</h1><hr> |
---|
| 6 | |
---|
[56a25a3] | 7 | {% if request.user.is_authenticated %} |
---|
| 8 | <div class="row content"> |
---|
[4db73c3] | 9 | <a type="button" class="btn waves-effect btn blue darken-1 right" href="{% url 'events:create_events' %}"> |
---|
[56a25a3] | 10 | <i class="material-icons left">add_circle</i> Registrar Nuevo Evento</a> |
---|
| 11 | </div> |
---|
| 12 | {% endif %} |
---|
[d14d7c0] | 13 | |
---|
[66158c7] | 14 | {% for evento in object_list %} |
---|
| 15 | <div class="card"> |
---|
| 16 | <div class="card-content"> |
---|
| 17 | <span class="card-title"><b>Nombre del evento: </b>{{ evento.nombre_evento }}</span> |
---|
| 18 | <ul> |
---|
| 19 | <li><b>Fecha: </b>{{ evento.fecha }}</li> |
---|
| 20 | </ul> |
---|
| 21 | </div> |
---|
| 22 | <div class="card-action"> |
---|
[27c0bd4] | 23 | <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:detail_event' evento.id %}"> |
---|
[66158c7] | 24 | <i class="material-icons left">search</i> Detalle |
---|
| 25 | </a> |
---|
[4db73c3] | 26 | <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:firma_events' evento.id %}"> |
---|
[66158c7] | 27 | <i class="material-icons left">mode_edit</i> Firmar |
---|
| 28 | </a> |
---|
| 29 | </div> |
---|
| 30 | </div> |
---|
| 31 | {% empty %} |
---|
| 32 | <h3>No existen eventos.</h3> |
---|
| 33 | {% endfor %} |
---|
| 34 | {% include 'base.paginator.html' with paginator=page_obj %} |
---|
| 35 | <div style="padding-bottom: 50px;"> |
---|
[4db73c3] | 36 | <a type="button" class="btn waves-effect btn blue darken-1" href="{% url 'base:inicio' %}">Regresar</a> |
---|
[66158c7] | 37 | </div> |
---|
| 38 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.