Last change
on this file since a3deb5f was
d9b20e6,
checked in by lhernandez <lhernandez@…>, 7 years ago
|
Implementado la carga de archivo para el evento que no contiene documentos
|
-
Property mode set to
100755
|
File size:
1.9 KB
|
Line | |
---|
1 | {% extends 'base.template.html' %} |
---|
2 | {% load staticfiles %} |
---|
3 | {% block title %}Eventos{% endblock %} |
---|
4 | {% block content %} |
---|
5 | <h1 class="center">Eventos</h1><hr> |
---|
6 | |
---|
7 | {% if request.user.is_authenticated %} |
---|
8 | <div class="row content"> |
---|
9 | <a type="button" class="btn waves-effect btn blue darken-1 right" href="{% url 'events:create_events' %}"> |
---|
10 | <i class="material-icons left">add_circle</i> Registrar Nuevo Evento</a> |
---|
11 | </div> |
---|
12 | {% endif %} |
---|
13 | |
---|
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"> |
---|
23 | <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:detail_event' evento.id %}"> |
---|
24 | <i class="material-icons left">search</i> Detalle |
---|
25 | </a> |
---|
26 | {% if evento.serial %} |
---|
27 | <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:firma_events' evento.id %}"> |
---|
28 | <i class="material-icons left">mode_edit</i> Firmar |
---|
29 | </a> |
---|
30 | {% else %} |
---|
31 | <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:update_evento' evento.id %}"> |
---|
32 | <i class="material-icons left">backup</i> Cargar Documento |
---|
33 | </a> |
---|
34 | {% endif %} |
---|
35 | </div> |
---|
36 | </div> |
---|
37 | {% empty %} |
---|
38 | <h3>No existen eventos.</h3> |
---|
39 | {% endfor %} |
---|
40 | {% include 'base.paginator.html' with paginator=page_obj %} |
---|
41 | <div style="padding-bottom: 50px;"> |
---|
42 | <a type="button" class="btn waves-effect btn blue darken-1" href="{% url 'base:inicio' %}">Regresar</a> |
---|
43 | </div> |
---|
44 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.