From beb17acb8440bb44f1070c2fb3b2e6cf7521f800 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Apr 2019 20:20:37 +0200 Subject: Prepare forms for manual journey entry and editing --- templates/add_journey.html.ep | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 templates/add_journey.html.ep (limited to 'templates/add_journey.html.ep') diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep new file mode 100644 index 0000000..9ef00f5 --- /dev/null +++ b/templates/add_journey.html.ep @@ -0,0 +1,63 @@ +

Zugfahrt eingeben

+% if ($error) { +
+
+
+
+ Ungültige Eingabe +

<%= $error %>

+
+
+
+
+% } +
+
+
    +
  • Eingabe des Zugs als „Zug Typ Nummer“ oder „Zug Nummer“, z.B. + „ICE 100“, „S 1 31133“ oder „ABR RE11 26720“
  • +
  • Zeitangaben im Format DD.MM.YYYY HH:MM
  • +
+
+
+%= form_for '/journey/add' => (method => 'POST') => begin + %= csrf_field +
+
+ %= text_field 'train', id => 'train', class => 'validate', required => undef, pattern => '[0-9a-zA-Z]+ +[0-9a-zA-Z]* *[0-9]+' + +
+
+
+
+ %= 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]' + +
+
+ %= 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]' + +
+
+
+
+ %= 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]' + +
+
+ %= 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]' + +
+
+
+
+
+
+ +
+
+
+
+%= end -- cgit v1.2.3