|
9 | 9 | {{ !empty({{modelHeader}}) ? {{modelHeader}} : '{{modelName}}'}} |
10 | 10 | </span> |
11 | 11 |
|
12 | | - <div class="btn-group btn-group-xs pull-right" role="group"> |
13 | | - |
14 | | - |
15 | | - <a href="{{ route('{{indexRouteName}}') }}" class="btn btn-primary" title="Show all {{modelNamePlural}}"> |
16 | | - <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> |
17 | | - </a> |
18 | | - |
19 | | - <a href="{{ route('{{editRouteName}}', ${{modelName}}->{{primaryKey}} ) }}" class="btn btn-primary" title="Edit {{modelNameClass}}"> |
20 | | - <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> |
21 | | - </a> |
22 | | - |
| 12 | + <div class="pull-right"> |
| 13 | + |
23 | 14 | {!! Form::open([ |
24 | 15 | 'method' =>'DELETE', |
25 | | - 'route' => ['{{destroyRouteName}}', ${{modelName}}->{{primaryKey}}], |
26 | | - 'style' => 'display: inline;', |
| 16 | + 'route' => ['{{destroyRouteName}}', ${{modelName}}->{{primaryKey}}] |
27 | 17 | ]) !!} |
28 | | - {!! Form::button('<span class="glyphicon glyphicon-trash" aria-hidden="true" title="Delete {{modelNameClass}}"></span>', |
29 | | - [ |
30 | | - 'type' => 'submit', |
31 | | - 'class' => 'btn btn-danger btn-xs', |
32 | | - 'title' => 'Delete {{modelNameClass}}', |
33 | | - 'onclick' => 'return confirm("Confirm delete?")', |
34 | | - ]) |
35 | | - !!} |
| 18 | + <div class="btn-group btn-group-xs" role="group"> |
| 19 | + <a href="{{ route('{{indexRouteName}}') }}" class="btn btn-primary" title="Show all {{modelNamePlural}}"> |
| 20 | + <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> |
| 21 | + </a> |
| 22 | + <a href="{{ route('{{editRouteName}}', ${{modelName}}->{{primaryKey}} ) }}" class="btn btn-primary" title="Edit {{modelNameClass}}"> |
| 23 | + <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> |
| 24 | + </a> |
| 25 | + {!! Form::button('<span class="glyphicon glyphicon-trash" aria-hidden="true" title="Delete {{modelNameClass}}"></span>', |
| 26 | + [ |
| 27 | + 'type' => 'submit', |
| 28 | + 'class' => 'btn btn-danger btn-xs', |
| 29 | + 'title' => 'Delete {{modelNameClass}}', |
| 30 | + 'onclick' => 'return confirm("Confirm delete?")', |
| 31 | + ]) |
| 32 | + !!} |
| 33 | + </div> |
36 | 34 | {!! Form::close() !!} |
37 | 35 |
|
38 | 36 | </div> |
|
0 commit comments