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>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row hide-on-small-only">
|
||||||
<div class="col s6 m6 l6 center-align">
|
<div class="col s12 m6 l6 center-align">
|
||||||
<a class="waves-effect waves-light red btn action-delete"
|
<a class="waves-effect waves-light red btn action-delete"
|
||||||
data-id="<%= $journey->{id} %>"
|
data-id="<%= $journey->{id} %>"
|
||||||
data-checkin="<%= $journey->{checkin}->epoch %>"
|
data-checkin="<%= $journey->{checkin}->epoch %>"
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
Löschen
|
Löschen
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col s6 m6 l6 center-align">
|
<div class="col s12 m6 l6 center-align">
|
||||||
%= form_for '/journey/edit' => (method => 'POST') => begin
|
%= form_for '/journey/edit' => (method => 'POST') => begin
|
||||||
%= hidden_field 'journey_id' => param('journey_id')
|
%= hidden_field 'journey_id' => param('journey_id')
|
||||||
<button class="btn waves-effect waves-light" type="submit" name="action" value="edit">
|
<button class="btn waves-effect waves-light" type="submit" name="action" value="edit">
|
||||||
|
@ -190,4 +190,24 @@
|
||||||
%= end
|
%= end
|
||||||
</div>
|
</div>
|
||||||
</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