annotate env/util/gregor.lua @ 1406:428fa9c202b6
Show optional indication in registration form fields 2
author |
bsw |
date |
Wed Aug 15 10:09:06 2018 +0200 (2018-08-15) |
parents |
77260f05fd4b |
children |
|
rev |
line source |
poelzi@146
|
1 function util.gregor(el_id, relaxed)
|
bsw@11
|
2 ui.script{ script =
|
bsw@11
|
3 'gregor_addGui({' ..
|
bsw@11
|
4 'element_id: "' .. el_id .. '",' ..
|
bsw@11
|
5 'month_names: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],' ..
|
bsw@11
|
6 'weekday_names: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],' ..
|
bsw@11
|
7 'week_mode: "iso",' ..
|
bsw@11
|
8 'week_numbers: "left",' ..
|
poelzi@146
|
9 (relaxed and 'relaxed: true,' or '') ..
|
bsw@11
|
10 '});'
|
bsw@11
|
11 }
|
poelzi@146
|
12 end
|