calendar-webapp/views/create.dt

57 lines
1.5 KiB
Text
Raw Normal View History

2017-08-02 01:56:36 +02:00
extends layout
block content
2017-08-07 00:01:02 +02:00
- void showerror(string field = null)
- if (_error.msg && _error.field == field)
td.error= _error.msg
form(action="/create", method="post")
fieldset(name="eventFields")
2017-08-02 01:56:36 +02:00
table
tbody#fieldTable
tr
td
label(for="name") Ereignisname
2017-08-02 01:56:36 +02:00
td
input#name(value="", name="name", type="text")
2017-08-07 00:01:02 +02:00
- showerror("name");
2017-08-02 01:56:36 +02:00
tr
td
label(for="description") Beschreibung
2017-08-02 01:56:36 +02:00
td
textarea#description(value="", name="description", cols="40", rows="5")
2017-08-07 00:01:02 +02:00
- showerror("description");
2017-08-02 01:56:36 +02:00
tr
td
label(for="begin") Von
2017-08-02 01:56:36 +02:00
td
input#begin(value="", name="begin", type="date")
2017-08-07 00:01:02 +02:00
- showerror("begin");
2017-08-02 01:56:36 +02:00
tr
td
label(for="end") Bis
2017-08-02 01:56:36 +02:00
td
input#end(value="", name="end", type="date")
2017-08-07 00:01:02 +02:00
- showerror("end");
tr
td
label(for="type") Typ
td
select#type(name="type")
option(value="Holiday") Feiertag
option(value="Birthday") Geburtstag
option(value="FSI_Event") FSI Ereignis
option(value="General_University_Event") Allgemeines Universitäts Ereignis
option(value="Any") Sonstiges
2017-08-07 00:01:02 +02:00
- showerror("type");
tr
td
label(for="shout") Shout
td
input#shout(name="shout", type="checkbox")
2017-08-07 00:01:02 +02:00
- showerror("shout");
2017-08-02 01:56:36 +02:00
tfoot
tr
td(colspan="2")
input#submitButton(type="submit", value="Ereignis erstellen")
2017-08-07 00:01:02 +02:00
- if (_error.msg && _error.field == "")
p.error= _error.msg