File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
src/resources/views/crud/inc Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1- @if (isset ($saveAction [' active' ]) && ! is_null ($saveAction [' active' ][' value' ]) )
2- <div id =" saveActions" class =" form-group my-3" >
1+ <div id =" saveActions" class =" form-group my-3" >
2+ @if (isset ($saveAction [' active' ]) && ! is_null ($saveAction [' active' ][' value' ]) )
3+
34 <input type =" hidden" name =" _save_action" value =" {{ $saveAction [' active' ][' value' ] } }" >
45
56 @if (empty ($saveAction [' options' ]) )
2324 </ul >
2425 </div >
2526 @endif
27+ @endif
28+ @if (! $crud -> hasOperationSetting (' showCancelButton' ) || $crud -> getOperationSetting (' showCancelButton' ) == true )
29+ <a href =" {{ $crud -> hasAccess (' list' ) ? url ($crud -> route ) : url ()-> previous () } }" class =" btn btn-secondary text-decoration-none" ><span class =" la la-ban" ></span >   ; {{ trans (' backpack::crud.cancel' ) } } </a >
30+ @endif
2631
27- @if (! $crud -> hasOperationSetting (' showCancelButton' ) || $crud -> getOperationSetting (' showCancelButton' ) == true )
28- <a href =" {{ $crud -> hasAccess (' list' ) ? url ($crud -> route ) : url ()-> previous () } }" class =" btn btn-secondary text-decoration-none" ><span class =" la la-ban" ></span >   ; {{ trans (' backpack::crud.cancel' ) } } </a >
29- @endif
32+ @if ($crud -> get (' update.showDeleteButton' ) && $crud -> get (' delete.configuration' ) && $crud -> hasAccess (' delete' ) )
33+ <button onclick =" confirmAndDeleteEntry()" type =" button" class =" btn btn-danger float-right float-end" ><i class =" la la-trash-alt" ></i > {{ trans (' backpack::crud.delete' ) } } </button >
34+ @endif
35+ </div >
3036
31- @if ($crud -> get (' update.showDeleteButton' ) && $crud -> get (' delete.configuration' ) && $crud -> hasAccess (' delete' ) )
32- <button onclick =" confirmAndDeleteEntry()" type =" button" class =" btn btn-danger float-right float-end" ><i class =" la la-trash-alt" ></i > {{ trans (' backpack::crud.delete' ) } } </button >
33- @endif
34- </div >
35- @endif
3637
3738@push (' after_scripts' )
3839<script >
You can’t perform that action at this time.
0 commit comments