do not mange journey edit link on small devices

This commit is contained in:
Daniel Friesel 2019-05-03 21:39:50 +02:00
parent 954638e7c7
commit 2810eb490c

View file

@ -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,7 @@
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">
@ -190,4 +190,24 @@
%= 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">
<i class="material-icons left">edit</i>
Bearbeiten
</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>
% }