diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-03 21:39:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-03 21:39:50 +0200 |
commit | 2810eb490ca8465343e009f9d9a0f8be6400eb11 (patch) | |
tree | 2c8f148bc7cabb26a88cc4d30b9e027e1e4d8610 | |
parent | 954638e7c75342e081a25da398239b63a0e71d41 (diff) |
do not mange journey edit link on small devices1.1.5
-rw-r--r-- | templates/journey.html.ep | 26 |
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> % } |