Changeset a4764f9 in firmaeventos for eventos/templates


Ignore:
Timestamp:
Nov 21, 2017, 11:37:13 AM (7 years ago)
Author:
lhernandez <lhernandez@…>
Branches:
master
Children:
7c18408
Parents:
b8fffff
Message:

Optimizado registro de eventos, preparando proyecto para las firmas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eventos/templates/register.event.html

    r94b3e3f ra4764f9  
    1111            // Django appears to generate the prefix from the lowercase plural
    1212            // name of the related model, with camel-case converted to underscores.
    13             prefix: 'form'
     13            prefix: 'form',
     14            addText:'<i class="tiny material-icons prefix">add_circle_outline</i>Agregar Participante',
     15            deleteText:'<i class="material-icons">delete_forever</i>',
    1416        })
     17
    1518          $('.datepicker').pickadate({
    1619            selectMonths: true, // Creates a dropdown to control month
     
    2124            closeOnSelect: false, // Close upon selecting a date,
    2225            format: "dd/mm/yyyy",
     26            // The title label to use for the month nav buttons
     27            labelMonthNext: 'Mes siguiente',
     28            labelMonthPrev: 'Mes anterior',
     29
     30            // The title label to use for the dropdown selectors
     31            labelMonthSelect: 'Selecciona un mes',
     32            labelYearSelect: 'Selecciona un año',
     33
     34            // Months and weekdays
     35            monthsFull: [ 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' ],
     36            monthsShort: [ 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic' ],
     37            weekdaysFull: [ 'Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado' ],
     38            weekdaysShort: [ 'Dom', 'Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab' ],
     39
     40            // Materialize modified
     41            weekdaysLetter: [ 'D', 'L', 'M', 'Mi', 'J', 'V', 'S' ],
     42
     43            // Today and clear
     44            today: 'Hoy',
     45            clear: 'Limpiar',
     46            close: 'Ok',
    2347          });
    2448    })
     
    2953    <div class="content center">
    3054        <h5>Datos del Evento</h5><hr/><br>
    31         <form id="form" method="post">
     55        <form id="form" method="post" enctype="multipart/form-data">
    3256            {% csrf_token %}
    3357            <div class="input-field {% if form.nombre_evento.errors %}invalid{% endif %}">
     
    4872                <div class="btn">
    4973                <span for="icon_prefix {{ form.archivo.auto_id }}">Archivo</span>
    50                     <input type="file">
     74                    <input type="file" name="file" id="file" accept=".pdf">
    5175                </div>
    5276                <div class="file-path-wrapper">
Note: See TracChangeset for help on using the changeset viewer.