Skip to content

Commit a474f3e

Browse files
committed
Align action buttons on the right side of the table
1 parent ead5ad0 commit a474f3e

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

app/views/check/index.blade.php

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,24 @@
3636
<td>{{{ $check->theUser->email }}}</td>
3737
<td>{{{ $check->theCompany->name }}}</td>
3838
<td>{{{ $check->intervalFormatted }}}</td>
39-
<td>
40-
<div class="btn-group">
41-
<a class="btn btn-default" href="{{ URL::route('check.show', array('id' => $check->id)) }}">{{ trans('check.index.show') }}</a>
42-
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
43-
<span class="caret"></span>
44-
<span class="sr-only">{{ trans('check.index.toggle') }}</span>
45-
</button>
46-
<ul class="dropdown-menu" role="menu">
47-
<li><a href="{{ URL::route('check.edit', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-pencil"></span> {{ trans('check.index.edit') }}</a></li>
48-
@if ($check->isPaused())
49-
<li><a href="{{ URL::route('check.unpause', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-play"></span> {{ trans('check.index.unpause') }}</a></li>
50-
@else
51-
<li><a href="{{ URL::route('check.pause', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-stop"></span> {{ trans('check.index.pause') }}</a></li>
52-
@endif
53-
<li><a href="{{ URL::route('check.delete', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-trash"></span> {{ trans('check.index.delete') }}</a></li>
54-
</ul>
39+
<td class="clearfix">
40+
<div class="pull-right">
41+
<div class="btn-group">
42+
<a class="btn btn-default" href="{{ URL::route('check.show', array('id' => $check->id)) }}">{{ trans('check.index.show') }}</a>
43+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
44+
<span class="caret"></span>
45+
<span class="sr-only">{{ trans('check.index.toggle') }}</span>
46+
</button>
47+
<ul class="dropdown-menu" role="menu">
48+
<li><a href="{{ URL::route('check.edit', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-pencil"></span> {{ trans('check.index.edit') }}</a></li>
49+
@if ($check->isPaused())
50+
<li><a href="{{ URL::route('check.unpause', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-play"></span> {{ trans('check.index.unpause') }}</a></li>
51+
@else
52+
<li><a href="{{ URL::route('check.pause', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-stop"></span> {{ trans('check.index.pause') }}</a></li>
53+
@endif
54+
<li><a href="{{ URL::route('check.delete', array('id' => $check->id)) }}"><span class="glyphicon glyphicon-trash"></span> {{ trans('check.index.delete') }}</a></li>
55+
</ul>
56+
</div>
5557
</div>
5658
</td>
5759
</tr>

app/views/company/index.blade.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,21 @@
3333
@endforeach
3434
</ul>
3535
</td>
36-
<td>
37-
<div class="btn-group">
38-
<a class="btn btn-default" href="{{ URL::route('company.show', array('id' => $company->id)) }}">{{ trans('company.index.show') }}</a>
39-
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
40-
<span class="caret"></span>
41-
<span class="sr-only">{{ trans('company.index.toggle') }}</span>
42-
</button>
43-
<ul class="dropdown-menu" role="menu">
44-
<li><a href="{{ URL::route('company.edit', array('id' => $company->id)) }}">{{ trans('company.index.edit') }}</a></li>
45-
<li><a href="{{ URL::route('company.delete', array('id' => $company->id)) }}">{{ trans('company.index.delete') }}</a></li>
46-
<li class="divider"></li>
47-
<li><a data-toggle="modal" href="#invite-user-to-{{ $company->id }}">{{ trans('company.index.add-user') }}</a></li>
48-
</ul>
36+
<td class="clearfix">
37+
<div class="pull-right">
38+
<div class="btn-group">
39+
<a class="btn btn-default" href="{{ URL::route('company.show', array('id' => $company->id)) }}">{{ trans('company.index.show') }}</a>
40+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
41+
<span class="caret"></span>
42+
<span class="sr-only">{{ trans('company.index.toggle') }}</span>
43+
</button>
44+
<ul class="dropdown-menu" role="menu">
45+
<li><a href="{{ URL::route('company.edit', array('id' => $company->id)) }}">{{ trans('company.index.edit') }}</a></li>
46+
<li><a href="{{ URL::route('company.delete', array('id' => $company->id)) }}">{{ trans('company.index.delete') }}</a></li>
47+
<li class="divider"></li>
48+
<li><a data-toggle="modal" href="#invite-user-to-{{ $company->id }}">{{ trans('company.index.add-user') }}</a></li>
49+
</ul>
50+
</div>
4951
</div>
5052
</td>
5153
</tr>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy