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
|
2017-08-06 21:52:27 +02:00
|
|
|
label(for="name") Ereignisname
|
2017-08-02 01:56:36 +02:00
|
|
|
td
|
2017-08-06 21:52:27 +02:00
|
|
|
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
|
2017-08-06 21:52:27 +02:00
|
|
|
label(for="description") Beschreibung
|
2017-08-02 01:56:36 +02:00
|
|
|
td
|
2017-08-06 21:52:27 +02:00
|
|
|
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
|
2017-08-06 21:52:27 +02:00
|
|
|
label(for="begin") Von
|
2017-08-02 01:56:36 +02:00
|
|
|
td
|
2017-08-06 21:52:27 +02:00
|
|
|
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
|
2017-08-06 21:52:27 +02:00
|
|
|
label(for="end") Bis
|
2017-08-02 01:56:36 +02:00
|
|
|
td
|
2017-08-06 21:52:27 +02:00
|
|
|
input#end(value="", name="end", type="date")
|
2017-08-07 00:01:02 +02:00
|
|
|
- showerror("end");
|
2017-08-06 21:52:27 +02:00
|
|
|
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");
|
2017-08-06 21:52:27 +02:00
|
|
|
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
|