summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep26
1 files changed, 23 insertions, 3 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 4d0f3fd..76e7f79 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -170,8 +170,8 @@
</table>
</div>
</div>
- <div class="row">
- <div class="col s6 m6 l6 center-align">
+ <div class="row hide-on-small-only">
+ <div class="col s12 m6 l6 center-align">
<a class="waves-effect waves-light red btn action-delete"
data-id="<%= $journey->{id} %>"
data-checkin="<%= $journey->{checkin}->epoch %>"
@@ -180,7 +180,18 @@
Löschen
</a>
</div>
- <div class="col s6 m6 l6 center-align">
+ <div class="col s12 m6 l6 center-align">
+ %= form_for '/journey/edit' => (method => 'POST') => begin
+ %= hidden_field 'journey_id' => param('journey_id')
+ <button class="btn waves-effect waves-light" type="submit" name="action" value="edit">
+ <i class="material-icons left">edit</i>
+ Bearbeiten
+ </button>
+ %= end
+ </div>
+ </div>
+ <div class="row hide-on-med-and-up">
+ <div class="col s12 m6 l6 center-align">
%= form_for '/journey/edit' => (method => 'POST') => begin
%= hidden_field 'journey_id' => param('journey_id')
<button class="btn waves-effect waves-light" type="submit" name="action" value="edit">
@@ -189,5 +200,14 @@
</button>
%= end
</div>
+ <div class="col s12 m6 l6 center-align" style="margin-top: 1em;">
+ <a class="waves-effect waves-light red btn action-delete"
+ data-id="<%= $journey->{id} %>"
+ data-checkin="<%= $journey->{checkin}->epoch %>"
+ data-checkout="<%= $journey->{checkout}->epoch %>">
+ <i class="material-icons left">delete_forever</i>
+ Löschen
+ </a>
+ </div>
</div>
% }