Last change
on this file since def10d2 was
8fa24c3,
checked in by lhernandez <lhernandez@…>, 7 years ago
|
Generando templates para registrar eventos
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | {% extends 'base.template.html' %} |
---|
2 | {% load staticfiles %} |
---|
3 | {% block title %}Registrar Evento{% endblock title %} |
---|
4 | {% block content %} |
---|
5 | <div class="content center"> |
---|
6 | <form id="form" method="post"> |
---|
7 | {% csrf_token %} |
---|
8 | <div class="input-field {% if forms.event.nombre.errors %}invalid{% endif %}"> |
---|
9 | {{ forms.event.nombre }} |
---|
10 | <label for="icon_prefix {{ forms.event.nombre.auto_id }}">Nombre</label> |
---|
11 | {% include 'base.forms.errors.html' with form_errors=forms.event.nombre.errors col_title_error='col s2' col_msg_error='col s10' %} |
---|
12 | </div> |
---|
13 | |
---|
14 | <div class="input-field {% if forms.event.fecha.errors %}invalid{% endif %}"> |
---|
15 | <i class="material-icons">perm_contact_calendar</i> |
---|
16 | {{ forms.event.fecha }} |
---|
17 | <label for="icon_prefix {{ forms.event.fecha.auto_id }}">Fecha</label> |
---|
18 | {% include 'base.forms.errors.html' with form_errors=forms.event.fecha.errors col_title_error='col s2' col_msg_error='col s10' %} |
---|
19 | </div> |
---|
20 | |
---|
21 | <div class="file-field input-field {% if forms.event.archivo.errors %}invalid{% endif %}"> |
---|
22 | <i class="material-icons">attachment</i> |
---|
23 | <div class="file-path-wrapper"> |
---|
24 | {{ forms.event.archivo }} |
---|
25 | </div> |
---|
26 | <label for="icon_prefix {{ forms.event.archivo.auto_id }}">Archivo</label> |
---|
27 | {% include 'base.forms.errors.html' with form_errors=forms.event.archivo.errors col_title_error='col s2' col_msg_error='col s10' %} |
---|
28 | </div> |
---|
29 | |
---|
30 | <div> |
---|
31 | <button type="submit" class="btn waves-effect red darken-1">Registrar</button> |
---|
32 | </div> |
---|
33 | </div> |
---|
34 | </form> |
---|
35 | </div> |
---|
36 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.