mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
do not mange journey edit link on small devices
This commit is contained in:
parent
954638e7c7
commit
2810eb490c
1 changed files with 23 additions and 3 deletions
|
@ -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>
|
||||
% }
|
||||
|
|
Loading…
Reference in a new issue