diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 10:45:57 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 10:45:57 +0200 |
commit | 9df9f7c8451ecf82c29e8faab872ef6caafe336c (patch) | |
tree | 27127a1d39b085f9475a025b2995e305a7909d40 | |
parent | 1ee185d26bbfb9c7ef37aa6405645c8049d56f53 (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.ep | 4 |
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"> |