Skip to content

Commit c98f4d9

Browse files
pxpmpromatiktabacitu
authored
Apply suggestions from code review
Co-authored-by: António Almeida <[email protected]> Co-authored-by: Cristian Tăbăcitu <[email protected]>
1 parent 99c34ad commit c98f4d9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Console/stubs/crud-controller.stub

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class DummyClassCrudController extends CrudController
5656
protected function setupCreateOperation()
5757
{
5858
CRUD::setValidation(DummyClassRequest::class);
59-
6059
CRUD::setFromDb(); // set fields from db columns.
6160

6261
/**

src/Console/stubs/field.stub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{-- CUSTOM CSS --}}
2323
@push('crud_fields_styles')
2424
{{-- How to load a CSS file? --}}
25-
@basset(asset('dummyFieldStyle.css'))
25+
@basset('dummyFieldStyle.css')
2626

2727
{{-- How to add some CSS? --}}
2828
@bassetBlock('backpack/crud/fields/dummy_field-style.css')
@@ -37,10 +37,10 @@
3737
{{-- CUSTOM JS --}}
3838
@push('crud_fields_scripts')
3939
{{-- How to load a JS file? --}}
40-
@basset(asset('dummyFieldScript.js'))
40+
@basset('dummyFieldScript.js')
4141

4242
{{-- How to add some JS to the field? --}}
43-
@bassetBlock('backpack/crud/fields/dummy_field-script.js')
43+
@bassetBlock('path/to/script.js')
4444
<script>
4545
function bpFieldInitDummyFieldElement(element) {
4646
// this function will be called on pageload, because it's

0 commit comments

Comments
 (0)