Commit f99670ec authored by Nicolas Widart's avatar Nicolas Widart

Adding the table responsive wrapper by default around tables

parent ac0af13a
...@@ -25,39 +25,41 @@ ...@@ -25,39 +25,41 @@
</div> </div>
<!-- /.box-header --> <!-- /.box-header -->
<div class="box-body"> <div class="box-body">
<table class="data-table table table-bordered table-hover"> <div class="table-responsive">
<thead> <table class="data-table table table-bordered table-hover">
<tr> <thead>
<th>{{ trans('core::core.table.created at') }}</th> <tr>
<th data-sortable="false">{{ trans('core::core.table.actions') }}</th> <th>{{ trans('core::core.table.created at') }}</th>
</tr> <th data-sortable="false">{{ trans('core::core.table.actions') }}</th>
</thead> </tr>
<tbody> </thead>
<?php if (isset($$PLURAL_LOWERCASE_CLASS_NAME$)): ?> <tbody>
<?php foreach ($$PLURAL_LOWERCASE_CLASS_NAME$ as $$LOWERCASE_CLASS_NAME$): ?> <?php if (isset($$PLURAL_LOWERCASE_CLASS_NAME$)): ?>
<tr> <?php foreach ($$PLURAL_LOWERCASE_CLASS_NAME$ as $$LOWERCASE_CLASS_NAME$): ?>
<td> <tr>
<a href="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.edit', [$$LOWERCASE_CLASS_NAME$->id]) }}"> <td>
{{ $$LOWERCASE_CLASS_NAME$->created_at }} <a href="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.edit', [$$LOWERCASE_CLASS_NAME$->id]) }}">
</a> {{ $$LOWERCASE_CLASS_NAME$->created_at }}
</td> </a>
<td> </td>
<div class="btn-group"> <td>
<a href="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.edit', [$$LOWERCASE_CLASS_NAME$->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a> <div class="btn-group">
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#modal-delete-confirmation" data-action-target="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.destroy', [$$LOWERCASE_CLASS_NAME$->id]) }}"><i class="fa fa-trash"></i></button> <a href="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.edit', [$$LOWERCASE_CLASS_NAME$->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a>
</div> <button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#modal-delete-confirmation" data-action-target="{{ route('admin.$LOWERCASE_MODULE_NAME$.$LOWERCASE_CLASS_NAME$.destroy', [$$LOWERCASE_CLASS_NAME$->id]) }}"><i class="fa fa-trash"></i></button>
</td> </div>
</tr> </td>
<?php endforeach; ?> </tr>
<?php endif; ?> <?php endforeach; ?>
</tbody> <?php endif; ?>
<tfoot> </tbody>
<tr> <tfoot>
<th>{{ trans('core::core.table.created at') }}</th> <tr>
<th>{{ trans('core::core.table.actions') }}</th> <th>{{ trans('core::core.table.created at') }}</th>
</tr> <th>{{ trans('core::core.table.actions') }}</th>
</tfoot> </tr>
</table> </tfoot>
</table>
</div>
<!-- /.box-body --> <!-- /.box-body -->
</div> </div>
<!-- /.box --> <!-- /.box -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment