diff options
author | Cassidy Dingenskirchen <admin@15318.de> | 2025-06-29 16:45:30 +0200 |
---|---|---|
committer | Cassidy Dingenskirchen <admin@15318.de> | 2025-06-29 16:45:30 +0200 |
commit | 74062d4a342cba741ecadf88762321cafcffb69c (patch) | |
tree | 13d0b92214cd34754ee43f52bd89c505e0849763 /templates/add_journey.html.ep | |
parent | 5693277807924744c2ace92015f01c0f9f25e8a8 (diff) |
/journey/add: datetime inputs
Diffstat (limited to 'templates/add_journey.html.ep')
-rw-r--r-- | templates/add_journey.html.ep | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep index cade37e..1bc568e 100644 --- a/templates/add_journey.html.ep +++ b/templates/add_journey.html.ep @@ -69,12 +69,12 @@ <label for="dep_station">Start (Name oder ID)</label> </div> <div class="input-field col s12"> - %= text_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - <label for="sched_departure">Geplante Abfahrt</label> + %= datetime_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef + <label for="sched_departure" class="active">Geplante Abfahrt</label> </div> <div class="input-field col s12"> - %= text_field 'rt_departure', id => 'rt_departure', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - <label for="rt_departure">Tatsächliche Abfahrt (wenn leer: pünktlich)</label> + %= datetime_field 'rt_departure', id => 'rt_departure', class => 'validate' + <label for="rt_departure" class="active">Tatsächliche Abfahrt (wenn leer: pünktlich)</label> </div> </div> <div class="row"> @@ -83,12 +83,12 @@ <label for="arr_station">Ziel (Name oder ID)</label> </div> <div class="input-field col s12"> - %= text_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - <label for="sched_arrival">Geplante Ankunft</label> + %= datetime_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef + <label for="sched_arrival" class="active">Geplante Ankunft</label> </div> <div class="input-field col s12"> - %= text_field 'rt_arrival', id => 'rt_arrival', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - <label for="rt_arrival">Tatsächliche Ankunft (wenn leer: pünktlich)</label> + %= datetime_field 'rt_arrival', id => 'rt_arrival', class => 'validate' + <label for="rt_arrival" class="active">Tatsächliche Ankunft (wenn leer: pünktlich)</label> </div> </div> <div class="row"> |