edit journey: use link to cancel

This bypasses form element validation, which doesn't make sense for
"cancel edit"
This commit is contained in:
Daniel Friesel 2019-04-13 10:45:57 +02:00
parent 1ee185d26b
commit 9df9f7c845

View file

@ -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">