Skip to content

Commit

Permalink
Merge pull request #13 from tim-hub/master
Browse files Browse the repository at this point in the history
update index.blade.php.stub, suitable bootstrap 4
  • Loading branch information
summerblue authored Apr 3, 2019
2 parents 87c9a84 + 557cde7 commit 01fddd8
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/Stubs/views/bs3/pages/index.blade.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,32 @@
{{table_fields_content}}

<td class="text-right">
<ul class="d-inline-flex">

<li class="list-inline-item">
<a class="btn btn-xs btn-primary" href="{{ route('{{prefix}}{{models}}.show', ${{model}}->id) }}">
<i class="glyphicon glyphicon-eye-open"></i>
Detail
</a>

</li>

<li class="list-inline-item">
<a class="btn btn-xs btn-warning" href="{{ route('{{prefix}}{{models}}.edit', ${{model}}->id) }}">
<i class="glyphicon glyphicon-edit"></i>
Edit
</a>
</li>

<li class="list-inline-item">
<form action="{{ route('{{prefix}}{{models}}.destroy', ${{model}}->id) }}" method="POST" style="display: inline;" onsubmit="return confirm('Delete? Are you sure?');">
{{csrf_field()}}
<input type="hidden" name="_method" value="DELETE">

<button type="submit" class="btn btn-xs btn-danger"><i class="glyphicon glyphicon-trash"></i> </button>
<button type="submit" class="btn btn-xs btn-danger">
Delete

</button>
</form>
</li>
</ul>
</td>
</tr>
@endforeach
Expand All @@ -58,4 +70,4 @@
</div>
</div>

@endsection
@endsection

0 comments on commit 01fddd8

Please sign in to comment.