File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed
src/resources/views/crud/buttons Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 11@if ($crud -> hasAccess (' create' ) )
2- <a href =" {{ url ($crud -> route . ' /create' ) } }" class =" btn btn-primary" data-style =" zoom-in" >
3- <span >< i class =" la la-plus" ></i > {{ trans (' backpack::crud.add' ) } } {{ $crud -> entity_name } } </span >
2+ <a href =" {{ url ($crud -> route . ' /create' ) } }" class =" btn btn-primary" bp-button = " create " data-style =" zoom-in" >
3+ <i class =" la la-plus" ></i > < span > {{ trans (' backpack::crud.add' ) } } {{ $crud -> entity_name } } </span >
44 </a >
55@endif
Original file line number Diff line number Diff line change 11@if ($crud -> hasAccess (' delete' , $entry ) )
2- <a href =" javascript:void(0)" onclick =" deleteEntry(this)" data-route =" {{ url ($crud -> route . ' /' . $entry -> getKey ()) } }" class =" btn btn-sm btn-link" data-button-type =" delete" >
3- <span >< i class =" la la-trash" ></i > {{ trans (' backpack::crud.delete' ) } } </span >
2+ <a href =" javascript:void(0)" onclick =" deleteEntry(this)" bp-button = " delete " data-route =" {{ url ($crud -> route . ' /' . $entry -> getKey ()) } }" class =" btn btn-sm btn-link" data-button-type =" delete" >
3+ <i class =" la la-trash" ></i > < span > {{ trans (' backpack::crud.delete' ) } } </span >
44 </a >
55@endif
66
Original file line number Diff line number Diff line change 4646
4747@if ($access === true || $crud -> hasAccess ($access , isset ($entry ) ? $entry : null ) )
4848 <{{ $wrapper [' element' ] } }
49+ bp-button="{{ $button -> name } } "
4950 @foreach ($wrapper as $attribute => $value )
5051 @if (is_string ($attribute ) )
5152 {{ $attribute } } ="{{ $value } } "
5253 @endif
5354 @endforeach
5455 >
5556 @if ($icon ) <i class =" {{ $icon } }" ></i > @endif
56- {{ $label } }
57+ < span > {{ $label } }</ span >
5758 </{{ $wrapper [' element' ] } } >
5859@endif
5960
Original file line number Diff line number Diff line change 11@if ($crud -> get (' reorder.enabled' ) && $crud -> hasAccess (' reorder' ) )
2- <a href =" {{ url ($crud -> route . ' /reorder' ) } }" class =" btn btn-outline-primary" data-style =" zoom-in" >
3- <span >< i class =" la la-arrows" ></i > {{ trans (' backpack::crud.reorder' ) } } {{ $crud -> entity_name_plural } } </span >
2+ <a href =" {{ url ($crud -> route . ' /reorder' ) } }" bp-button = " reorder " class =" btn btn-outline-primary" data-style =" zoom-in" >
3+ <i class =" la la-arrows" ></i > < span > {{ trans (' backpack::crud.reorder' ) } } {{ $crud -> entity_name_plural } } </span >
44 </a >
55@endif
Original file line number Diff line number Diff line change 22 @if (! $crud -> model -> translationEnabled () )
33
44 {{-- Single edit button --}}
5- <a href =" {{ url ($crud -> route . ' /' . $entry -> getKey (). ' /show' ) } }" class =" btn btn-sm btn-link" >
6- <span >< i class =" la la-eye" ></i > {{ trans (' backpack::crud.preview' ) } } </span >
5+ <a href =" {{ url ($crud -> route . ' /' . $entry -> getKey (). ' /show' ) } }" bp-button = " show " class =" btn btn-sm btn-link" >
6+ <i class =" la la-eye" ></i > < span > {{ trans (' backpack::crud.preview' ) } } </span >
77 </a >
88
99 @else
1010
11- {{-- Edit button group --}}
11+ {{-- show button group --}}
1212 <div class =" btn-group" >
1313 <a href =" {{ url ($crud -> route . ' /' . $entry -> getKey (). ' /show' ) } }" class =" btn btn-sm btn-link pr-0" >
1414 <span ><i class =" la la-eye" ></i > {{ trans (' backpack::crud.preview' ) } } </span >
Original file line number Diff line number Diff line change 22 @if (! $crud -> model -> translationEnabled () )
33
44 {{-- Single edit button --}}
5- <a href =" {{ url ($crud -> route . ' /' . $entry -> getKey (). ' /edit' ) } }" class =" btn btn-sm btn-link" >
6- <span >< i class =" la la-edit" ></i > {{ trans (' backpack::crud.edit' ) } } </span >
5+ <a href =" {{ url ($crud -> route . ' /' . $entry -> getKey (). ' /edit' ) } }" bp-button = " update " class =" btn btn-sm btn-link" >
6+ <i class =" la la-edit" ></i > < span > {{ trans (' backpack::crud.edit' ) } } </span >
77 </a >
88
99 @else
You can’t perform that action at this time.
0 commit comments