From becd6943f7c38ed4439e34e2f24286bcdebe7f74 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 28 Feb 2023 19:45:33 +0100 Subject: add missing edit_visibility template --- templates/edit_visibility.html.ep | 122 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 templates/edit_visibility.html.ep diff --git a/templates/edit_visibility.html.ep b/templates/edit_visibility.html.ep new file mode 100644 index 0000000..28b1426 --- /dev/null +++ b/templates/edit_visibility.html.ep @@ -0,0 +1,122 @@ +

Sichtbarkeit ändern

+% if ($error) { +
+
+
+
+ Fehler +

<%= $error // 'Du bist gerade nicht eingecheckt' %>

+
+
+
+
+% } +% else { + %= form_for '/journey/visibility' => (method => 'POST') => begin + %= csrf_field + %= hidden_field 'dep_ts' => param('dep_ts') + %= hidden_field 'id' => param('id') +
+
+

+ Fahrt mit + <%= $journey->{train_type} // $journey->{type} %> <%= $journey->{train_no} // $journey->{no} %> + von + <%= $journey->{dep_name} // $journey->{from_name} %> + nach + <%= $journey->{arr_name} // $journey->{to_name} // 'irgendwo' %> + am + <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %> +

+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ +
+ +
+
+ %= end +% } -- cgit v1.2.3