Skip to content

Commit

Permalink
Initial 3.0.0 release with fixed Bootstrap4 classes in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Flobbo authored and Flobbo committed Dec 21, 2018
1 parent 5f87b0e commit 569a098
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,8 @@ all fields were empty or the required fields weren't filled out.

Laravel | Crudable
:---------|:----------
5.7 | >3.*
5.6 | >3.*
5.5 | >2.*
5.4 | >2.*
5.3 | >2.*
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Version History

### v. 3.0.0

- switched to Bootstrap 4

### v. 2.5.14
- added first() to Crudable
- updated readme
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
}
],
"require": {
"php": ">=5.6.0",
"illuminate/support": ">=5.1.0"
"php": ">=7.1.3",
"illuminate/support": "5.6.*|5.7.*"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 5 additions & 5 deletions src/resources/stubs/create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="card">

<form action="{{ route('admin.DummyViewPath.store') }}" role="form" method="POST" enctype="multipart/form-data">
{{ csrf_field() }}

<div class="panel-heading panel-default">
<h3 class="panel-title"><!-- insert title here --></h3>
<div class="card-header">
<!-- insert title here -->
@lang('crud.create_headline')
</div>

<div class="panel-body">
<div class="card-body">

{{--@include('admin.notifications')--}}

</div>

<div class="panel-footer">
<div class="card-footer">

<div class="row">

Expand Down
10 changes: 5 additions & 5 deletions src/resources/stubs/edit.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="card">

<form action="{{ route('admin.DummyViewPath.update',$DummySingularServiceVar->id) }}" role="form" method="POST" enctype="multipart/form-data">
{{ csrf_field() }}
{{method_field('PUT')}}

<div class="panel-heading panel-default">
<h3 class="panel-title"><!-- insert title here --></h3>
<div class="card-header">
<!-- insert title here -->
@lang('crud.edit_headline')
</div>

<div class="panel-body">
<div class="card-body">

{{-- @include('admin.notifications') --}}

</div>

<div class="panel-footer">
<div class="card-footer">

<div class="row">

Expand Down
15 changes: 9 additions & 6 deletions src/resources/stubs/index.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,30 @@
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-sm-6">
<h3 class="panel-title"><!-- insert title here --></h3>
<!-- insert title here -->
</div>
<div class="col-sm-6">
<a href="{{ route('admin.DummyViewPath.create') }}" class="btn btn-default btn-small pull-right">
<i class="glyphicon glyphicon-plus"></i> @lang('crud.create_button')
<a href="{{ route('admin.DummyViewPath.create') }}" class="btn btn-light btn-sm pull-right">
@lang('crud.create_button')
</a>
</div>
</div>
</div>

<div class="panel-body">
<div class="card-body">
{{-- @include('admin.notifications') --}}
@if($DummyServiceVar->isEmpty())
@lang('crud.no_entries')
@else
<table class="table table-striped">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
@foreach($DummyServiceVar as $DummySingularServiceVar)
Expand Down

0 comments on commit 569a098

Please sign in to comment.