source: firmaeventos/eventos/templates/evento.list.html @ 56a25a3

Last change on this file since 56a25a3 was 56a25a3, checked in by rudmanmrrod <rudman22@…>, 7 years ago

Agregado dropdow debajo del boton, el boton de crear eventos sólo sale al estar el usuario autenticado

  • Property mode set to 100644
File size: 1.5 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 red 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 red darken-1" href="">
24                    <i class="material-icons left">search</i> Detalle
25                </a>
26                <a type="button" class="btn waves-effect red darken-1" href="{% url 'events:firma_events' evento.id %}">
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;">
36        <a type="button" class="btn waves-effect btn red darken-1" href="{% url 'base:inicio' %}">Regresar</a>
37    </div>
38{% endblock %}
Note: See TracBrowser for help on using the repository browser.