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') %> +

+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ + Abbrechen + +
+
+ +
+
+ %= end +% }