File tree Expand file tree Collapse file tree 8 files changed +17
-17
lines changed
resources/views/bootstrap-4 Expand file tree Collapse file tree 8 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ The final result would look like:
588
588
589
589
## To-do/Roadmap
590
590
591
- - [ ] Bootstrap Templates
591
+ - [x ] Bootstrap 4 Template
592
592
- [ ] Test Suite
593
593
- [ ] Column Search
594
594
Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ class="container-fluid"
5
5
@include (' livewire-tables::bootstrap-4.includes.sorting-pills' )
6
6
@include (' livewire-tables::bootstrap-4.includes.filter-pills' )
7
7
8
- <div class =" d-flex justify-content-between mb-3 p-3 p-md-0 " >
9
- <div class =" d-flex" >
8
+ <div class =" d-md- flex justify-content-between mb-3" >
9
+ <div class =" d-md- flex" >
10
10
@include (' livewire-tables::bootstrap-4.includes.search' )
11
11
12
- <div class =" ml-3 " >
12
+ <div class =" ml-0 ml-md-3 mb-3 mb-md-0 " >
13
13
@include (' livewire-tables::bootstrap-4.includes.filters' )
14
14
</div >
15
15
</div >
16
16
17
- <div class =" d-flex" >
17
+ <div class =" d-md- flex" >
18
18
@include (' livewire-tables::bootstrap-4.includes.bulk-actions' )
19
19
20
- <div class =" ml-3" >
20
+ <div class =" ml-0 ml-md- 3" >
21
21
@include (' livewire-tables::bootstrap-4.includes.per-page' )
22
22
</div >
23
23
</div >
Original file line number Diff line number Diff line change 1
1
@if (count ($bulkActions ) )
2
- <div class =" dropdown" >
3
- <button class =" btn dropdown-toggle" type =" button" id =" bulkActions" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
2
+ <div class =" dropdown mb-3 mb-md-0 d-block d-md-inline " >
3
+ <button class =" btn dropdown-toggle d-block w-100 d-md-inline " type =" button" id =" bulkActions" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
4
4
{{ __ (' Bulk Actions' ) } }
5
5
</button >
6
6
7
- <div class =" dropdown-menu dropdown-menu-right" aria-labelledby =" bulkActions" >
7
+ <div class =" dropdown-menu dropdown-menu-right w-100 " aria-labelledby =" bulkActions" >
8
8
@foreach ($bulkActions as $action => $title )
9
9
<a href =" #" wire:click.prevent =" {{ $action } }" class =" dropdown-item" >{{ $title } } </a >
10
10
@endforeach
Original file line number Diff line number Diff line change 1
1
@if ($showFilters && count (array_filter ($filters )) && ! (count (array_filter ($filters )) === 1 && isset ($filters [' search' ])) )
2
- <div wire:key =" filter-badges" class =" p-2 p-md-0 mb-3" >
2
+ <div wire:key =" filter-badges" class =" mb-3" >
3
3
<small class =" text-secondary" >@lang (' Applied Filters' ):</small >
4
4
5
5
@foreach ($filters as $key => $value )
Original file line number Diff line number Diff line change 1
1
@if ($filtersView || count ($customFilters ) )
2
- <div class =" btn-group" >
3
- <button type =" button" class =" btn dropdown-toggle" data-toggle =" dropdown" >
2
+ <div class =" btn-group d-block d-md-inline " >
3
+ <button type =" button" class =" btn dropdown-toggle d-block w-100 d-md-inline " data-toggle =" dropdown" >
4
4
{{ __ (' Filters' ) } }
5
5
6
6
@if (count (array_filter ($filters )) && ! (count (array_filter ($filters )) === 1 && isset ($filters [' search' ])) )
11
11
12
12
<span class =" caret" ></span >
13
13
</button >
14
- <ul class =" dropdown-menu" role =" menu" >
14
+ <ul class =" dropdown-menu w-100 " role =" menu" >
15
15
<li >
16
16
@if ($filtersView )
17
17
@include ($filtersView )
Original file line number Diff line number Diff line change 1
1
@if ($showPagination )
2
2
<div class =" row" >
3
- <div class =" col" >
3
+ <div class =" col-12 col-md-6 " >
4
4
{{ $rows -> links () } }
5
5
</div >
6
6
7
- <div class =" col text-right text-muted" >
7
+ <div class =" col-12 col-md-6 text-center text-md -right text-muted" >
8
8
@lang (' Showing :first to :last out of :total results' , [
9
9
' first' => $rows -> count () ? $rows -> firstItem () : 0 ,
10
10
' last' => $rows -> count () ? $rows -> lastItem () : 0 ,
Original file line number Diff line number Diff line change 1
1
@if ($showSearch )
2
- <div class =" input-group" >
2
+ <div class =" mb-3 mb-md-0 input-group" >
3
3
<input
4
4
wire:model.debounce.250ms =" filters.search"
5
5
placeholder =" {{ __ (' Search' ) } }"
Original file line number Diff line number Diff line change 1
1
@if ($showSorting && count ($sorts ) )
2
- <div wire:key =" sort-badges" class =" p-2 p-md-0 mb-3" >
2
+ <div wire:key =" sort-badges" class =" mb-3" >
3
3
<small class =" text-secondary" >@lang (' Applied Sorting' ):</small >
4
4
5
5
@foreach ($sorts as $col => $dir )
You can’t perform that action at this time.
0 commit comments