source: firmaeventos/eventos/templates/evento.list.html

Last change on this file was a28e55b, checked in by lhernandez <lhernandez@…>, 7 years ago

Implementado Update para agregar o eliminar participantes del evento

  • Property mode set to 100755
File size: 2.3 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                {% endif %}
31                {% if request.user.is_authenticated %}
32                    <a type="button" class="btn waves-effect blue darken-1" href="{% url 'events:update_evento' evento.id %}">
33                        <i class="material-icons left">backup</i> Cargar Documento
34                    </a>
35                {% endif %}
36               
37                {% if request.user.is_authenticated %}
38                    <a type"button" class="btn waves-effect blue darken-1" href="{% url  'events:update_evento_participante' evento.id %}"><i class="material-icons left">border_color</i>Editar Evento
39                    </a>
40                {% endif %}
41            </div>
42        </div>
43    {% empty %}
44        <h3>No existen eventos.</h3>
45    {% endfor %}
46    {% include 'base.paginator.html' with paginator=page_obj %}
47    <div style="padding-bottom: 50px;">
48        <a type="button" class="btn waves-effect btn blue darken-1" href="{% url 'base:inicio' %}">Regresar</a>
49    </div>
50{% endblock %}
Note: See TracBrowser for help on using the repository browser.