summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-13 10:45:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-13 10:45:57 +0200
commit9df9f7c8451ecf82c29e8faab872ef6caafe336c (patch)
tree27127a1d39b085f9475a025b2995e305a7909d40
parent1ee185d26bbfb9c7ef37aa6405645c8049d56f53 (diff)
edit journey: use link to cancel
This bypasses form element validation, which doesn't make sense for "cancel edit"
-rw-r--r--templates/edit_journey.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep
index d36fc65..0418d52 100644
--- a/templates/edit_journey.html.ep
+++ b/templates/edit_journey.html.ep
@@ -80,9 +80,9 @@
</div>
<div class="row">
<div class="col s6 m6 l6 center-align">
- <button class="btn waves-effect waves-light" type="submit" name="action" value="cancel">
+ <a href="/journey/<%= current_user()->{id} %>-<%= param('journey_id') %>" class="waves-effect waves-light btn">
Abbrechen
- </button>
+ </a>
</div>
<div class="col s6 m6 l6 center-align">
<button class="btn waves-effect waves-light" type="submit" name="action" value="save">