From 8209f20ca71ad3d44684dd3e49fbf184273e9440 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Thu, 30 Jun 2022 13:21:40 +0530 Subject: [PATCH 01/12] feat: support next major version restructuring --- templates/scaffold/users/index.stub | 6 ++++ templates/scaffold/views/table.stub | 30 ------------------- .../blade/body.stub} | 0 .../blade/body_locale.stub} | 0 .../blade/cell.stub} | 0 .../blade/header.stub} | 0 .../blade/header_locale.stub} | 0 .../datatable/actions.stub} | 0 .../datatable/actions_locale.stub} | 0 .../datatable/body.stub} | 4 ++- .../datatable/column.stub} | 0 .../datatable/column_locale.stub} | 0 templates/scaffold/views/table_locale.stub | 30 ------------------- 13 files changed, 9 insertions(+), 61 deletions(-) delete mode 100644 templates/scaffold/views/table.stub rename templates/scaffold/views/{blade_table_body.stub => table/blade/body.stub} (100%) rename templates/scaffold/views/{blade_table_body_locale.stub => table/blade/body_locale.stub} (100%) rename templates/scaffold/views/{table_cell.stub => table/blade/cell.stub} (100%) rename templates/scaffold/views/{table_header.stub => table/blade/header.stub} (100%) rename templates/scaffold/views/{table_header_locale.stub => table/blade/header_locale.stub} (100%) rename templates/scaffold/views/{datatables_actions.stub => table/datatable/actions.stub} (100%) rename templates/scaffold/views/{datatables_actions_locale.stub => table/datatable/actions_locale.stub} (100%) rename templates/scaffold/views/{datatable_body.stub => table/datatable/body.stub} (60%) rename templates/scaffold/views/{datatable_column.stub => table/datatable/column.stub} (100%) rename templates/scaffold/views/{datatable_column_locale.stub => table/datatable/column_locale.stub} (100%) delete mode 100644 templates/scaffold/views/table_locale.stub diff --git a/templates/scaffold/users/index.stub b/templates/scaffold/users/index.stub index 8e94b88..d1ccda7 100644 --- a/templates/scaffold/users/index.stub +++ b/templates/scaffold/users/index.stub @@ -26,6 +26,12 @@
@include('users.table') + +
diff --git a/templates/scaffold/views/table.stub b/templates/scaffold/views/table.stub deleted file mode 100644 index 449d568..0000000 --- a/templates/scaffold/views/table.stub +++ /dev/null @@ -1,30 +0,0 @@ - - - - $FIELD_HEADERS$ - - - - - @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) - - $FIELD_BODY$ - - - @endforeach - -
Action
- {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} -
- {!! Form::close() !!} -
\ No newline at end of file diff --git a/templates/scaffold/views/blade_table_body.stub b/templates/scaffold/views/table/blade/body.stub similarity index 100% rename from templates/scaffold/views/blade_table_body.stub rename to templates/scaffold/views/table/blade/body.stub diff --git a/templates/scaffold/views/blade_table_body_locale.stub b/templates/scaffold/views/table/blade/body_locale.stub similarity index 100% rename from templates/scaffold/views/blade_table_body_locale.stub rename to templates/scaffold/views/table/blade/body_locale.stub diff --git a/templates/scaffold/views/table_cell.stub b/templates/scaffold/views/table/blade/cell.stub similarity index 100% rename from templates/scaffold/views/table_cell.stub rename to templates/scaffold/views/table/blade/cell.stub diff --git a/templates/scaffold/views/table_header.stub b/templates/scaffold/views/table/blade/header.stub similarity index 100% rename from templates/scaffold/views/table_header.stub rename to templates/scaffold/views/table/blade/header.stub diff --git a/templates/scaffold/views/table_header_locale.stub b/templates/scaffold/views/table/blade/header_locale.stub similarity index 100% rename from templates/scaffold/views/table_header_locale.stub rename to templates/scaffold/views/table/blade/header_locale.stub diff --git a/templates/scaffold/views/datatables_actions.stub b/templates/scaffold/views/table/datatable/actions.stub similarity index 100% rename from templates/scaffold/views/datatables_actions.stub rename to templates/scaffold/views/table/datatable/actions.stub diff --git a/templates/scaffold/views/datatables_actions_locale.stub b/templates/scaffold/views/table/datatable/actions_locale.stub similarity index 100% rename from templates/scaffold/views/datatables_actions_locale.stub rename to templates/scaffold/views/table/datatable/actions_locale.stub diff --git a/templates/scaffold/views/datatable_body.stub b/templates/scaffold/views/table/datatable/body.stub similarity index 60% rename from templates/scaffold/views/datatable_body.stub rename to templates/scaffold/views/table/datatable/body.stub index 7fbd4d3..47a1144 100644 --- a/templates/scaffold/views/datatable_body.stub +++ b/templates/scaffold/views/table/datatable/body.stub @@ -2,7 +2,9 @@ @include('layouts.datatables_css') @endpush -{!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} +
+ {!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} +
@push('third_party_scripts') @include('layouts.datatables_js') diff --git a/templates/scaffold/views/datatable_column.stub b/templates/scaffold/views/table/datatable/column.stub similarity index 100% rename from templates/scaffold/views/datatable_column.stub rename to templates/scaffold/views/table/datatable/column.stub diff --git a/templates/scaffold/views/datatable_column_locale.stub b/templates/scaffold/views/table/datatable/column_locale.stub similarity index 100% rename from templates/scaffold/views/datatable_column_locale.stub rename to templates/scaffold/views/table/datatable/column_locale.stub diff --git a/templates/scaffold/views/table_locale.stub b/templates/scaffold/views/table_locale.stub deleted file mode 100644 index 666b7f4..0000000 --- a/templates/scaffold/views/table_locale.stub +++ /dev/null @@ -1,30 +0,0 @@ - - - - $FIELD_HEADERS$ - - - - - @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) - - $FIELD_BODY$ - - - @endforeach - -
@lang('crud.action')
- {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} -
- {!! Form::close() !!} -
\ No newline at end of file From 1431f40696744fa068862dfae6be753840c1ecbb Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Thu, 30 Jun 2022 14:20:38 +0530 Subject: [PATCH 02/12] feat: livewire table support added --- templates/scaffold/views/index.stub | 11 +--- .../scaffold/views/table/blade/body.stub | 66 +++++++++++-------- .../scaffold/views/table/datatable/body.stub | 2 +- .../views/table/livewire/actions.stub | 12 ++++ .../scaffold/views/table/livewire/body.stub | 3 + 5 files changed, 54 insertions(+), 40 deletions(-) create mode 100644 templates/scaffold/views/table/livewire/actions.stub create mode 100644 templates/scaffold/views/table/livewire/body.stub diff --git a/templates/scaffold/views/index.stub b/templates/scaffold/views/index.stub index 16754b8..ac9dba1 100644 --- a/templates/scaffold/views/index.stub +++ b/templates/scaffold/views/index.stub @@ -24,16 +24,7 @@
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') - - -
- + $TABLE$
diff --git a/templates/scaffold/views/table/blade/body.stub b/templates/scaffold/views/table/blade/body.stub index 7809568..1ddd116 100644 --- a/templates/scaffold/views/table/blade/body.stub +++ b/templates/scaffold/views/table/blade/body.stub @@ -1,32 +1,40 @@ -
- - - - $FIELD_HEADERS$ - - - - - @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) +
+
+
Action
+ - $FIELD_BODY$ - + $FIELD_HEADERS$ + - @endforeach - -
- {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} -
- {!! Form::close() !!} -
Action
+ + + @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) + + $FIELD_BODY$ + + {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} +
+ + + + + + + {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} +
+ {!! Form::close() !!} + + + @endforeach + + +
+ + diff --git a/templates/scaffold/views/table/datatable/body.stub b/templates/scaffold/views/table/datatable/body.stub index 47a1144..afb570d 100644 --- a/templates/scaffold/views/table/datatable/body.stub +++ b/templates/scaffold/views/table/datatable/body.stub @@ -2,7 +2,7 @@ @include('layouts.datatables_css') @endpush -
+
{!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!}
diff --git a/templates/scaffold/views/table/livewire/actions.stub b/templates/scaffold/views/table/livewire/actions.stub new file mode 100644 index 0000000..0c66a35 --- /dev/null +++ b/templates/scaffold/views/table/livewire/actions.stub @@ -0,0 +1,12 @@ + diff --git a/templates/scaffold/views/table/livewire/body.stub b/templates/scaffold/views/table/livewire/body.stub new file mode 100644 index 0000000..8bbf0fc --- /dev/null +++ b/templates/scaffold/views/table/livewire/body.stub @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file From 861b841f495dfebbdc532382410d5fdd0c86e224 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Tue, 5 Jul 2022 14:30:11 +0530 Subject: [PATCH 03/12] feat: blade templates used --- .gitignore | 1 + composer.json | 1 + src/AdminLTETemplatesServiceProvider.php | 9 ++++ templates/scaffold/fields/boolean.stub | 8 ---- templates/scaffold/fields/boolean_locale.stub | 8 ---- templates/scaffold/fields/checkbox.stub | 8 ---- templates/scaffold/fields/checkbox_group.stub | 5 --- .../fields/checkbox_group_locale.stub | 5 --- .../scaffold/fields/checkbox_locale.stub | 8 ---- templates/scaffold/fields/date.stub | 15 ------- templates/scaffold/fields/date_locale.stub | 15 ------- templates/scaffold/fields/email.stub | 5 --- templates/scaffold/fields/email_locale.stub | 5 --- templates/scaffold/fields/file.stub | 11 ----- templates/scaffold/fields/file_locale.stub | 11 ----- templates/scaffold/fields/number.stub | 5 --- templates/scaffold/fields/number_locale.stub | 5 --- templates/scaffold/fields/password.stub | 5 --- .../scaffold/fields/password_locale.stub | 5 --- templates/scaffold/fields/radio.stub | 3 -- templates/scaffold/fields/radio_group.stub | 5 --- .../scaffold/fields/radio_group_locale.stub | 5 --- templates/scaffold/fields/select.stub | 5 --- templates/scaffold/fields/select_locale.stub | 5 --- templates/scaffold/fields/text.stub | 5 --- templates/scaffold/fields/text_locale.stub | 5 --- templates/scaffold/fields/textarea.stub | 5 --- .../scaffold/fields/textarea_locale.stub | 5 --- templates/scaffold/fields/toggle-switch.stub | 7 --- .../scaffold/fields/toggle-switch_locale.stub | 8 ---- templates/scaffold/layouts/menu_template.stub | 6 --- templates/scaffold/views/create.stub | 39 ---------------- templates/scaffold/views/create_locale.stub | 39 ---------------- templates/scaffold/views/edit.stub | 37 ---------------- templates/scaffold/views/edit_locale.stub | 39 ---------------- templates/scaffold/views/fields.stub | 1 - templates/scaffold/views/fields_locale.stub | 1 - templates/scaffold/views/index_locale.stub | 41 ----------------- templates/scaffold/views/paginate.stub | 1 - templates/scaffold/views/show_field.stub | 5 --- .../scaffold/views/show_field_locale.stub | 5 --- templates/scaffold/views/show_locale.stub | 29 ------------ .../scaffold/views/table/blade/body.stub | 40 ----------------- .../views/table/blade/body_locale.stub | 32 -------------- .../scaffold/views/table/blade/cell.stub | 1 - .../scaffold/views/table/blade/header.stub | 1 - .../views/table/blade/header_locale.stub | 1 - .../views/table/datatable/actions.stub | 15 ------- .../views/table/datatable/actions_locale.stub | 15 ------- .../scaffold/views/table/datatable/body.stub | 12 ----- .../views/table/datatable/column.stub | 1 - .../views/table/datatable/column_locale.stub | 1 - .../scaffold/views/table/livewire/body.stub | 3 -- views/templates/fields/boolean.blade.php | 12 +++++ views/templates/fields/checkbox.blade.php | 8 ++++ .../templates/fields/checkbox_group.blade.php | 14 ++++++ views/templates/fields/date.blade.php | 19 ++++++++ views/templates/fields/email.blade.php | 9 ++++ views/templates/fields/file.blade.php | 15 +++++++ views/templates/fields/number.blade.php | 9 ++++ views/templates/fields/password.blade.php | 9 ++++ views/templates/fields/radio.blade.php | 3 ++ views/templates/fields/radio_group.blade.php | 9 ++++ views/templates/fields/select.blade.php | 9 ++++ views/templates/fields/text.blade.php | 9 ++++ views/templates/fields/textarea.blade.php | 9 ++++ .../templates/fields/toggle-switch.blade.php | 11 +++++ .../templates/layouts/menu_template.blade.php | 6 +++ views/templates/scaffold/create.blade.php | 43 ++++++++++++++++++ views/templates/scaffold/edit.blade.php | 41 +++++++++++++++++ views/templates/scaffold/paginate.blade.php | 1 + .../templates/scaffold/show.blade.php | 16 ++++--- views/templates/scaffold/show_field.blade.php | 9 ++++ .../scaffold/table/blade/body.blade.php | 44 +++++++++++++++++++ .../scaffold/table/blade/cell.blade.php | 1 + .../scaffold/table/blade/header.blade.php | 1 + .../table/datatable/actions.blade.php | 20 +++++++++ .../scaffold/table/datatable/body.blade.php | 12 +++++ .../scaffold/table/datatable/column.blade.php | 5 +++ .../scaffold/table/livewire/body.blade.php | 3 ++ .../templates}/users/create.stub | 0 .../templates}/users/edit.stub | 0 .../templates}/users/fields.stub | 0 .../templates}/users/index.stub | 0 .../templates}/users/menu.stub | 0 .../templates}/users/show.stub | 0 .../templates}/users/show_fields.stub | 0 .../templates}/users/table.stub | 0 88 files changed, 352 insertions(+), 553 deletions(-) delete mode 100644 templates/scaffold/fields/boolean.stub delete mode 100644 templates/scaffold/fields/boolean_locale.stub delete mode 100644 templates/scaffold/fields/checkbox.stub delete mode 100644 templates/scaffold/fields/checkbox_group.stub delete mode 100644 templates/scaffold/fields/checkbox_group_locale.stub delete mode 100644 templates/scaffold/fields/checkbox_locale.stub delete mode 100644 templates/scaffold/fields/date.stub delete mode 100644 templates/scaffold/fields/date_locale.stub delete mode 100644 templates/scaffold/fields/email.stub delete mode 100644 templates/scaffold/fields/email_locale.stub delete mode 100644 templates/scaffold/fields/file.stub delete mode 100644 templates/scaffold/fields/file_locale.stub delete mode 100644 templates/scaffold/fields/number.stub delete mode 100644 templates/scaffold/fields/number_locale.stub delete mode 100644 templates/scaffold/fields/password.stub delete mode 100644 templates/scaffold/fields/password_locale.stub delete mode 100644 templates/scaffold/fields/radio.stub delete mode 100644 templates/scaffold/fields/radio_group.stub delete mode 100644 templates/scaffold/fields/radio_group_locale.stub delete mode 100644 templates/scaffold/fields/select.stub delete mode 100644 templates/scaffold/fields/select_locale.stub delete mode 100644 templates/scaffold/fields/text.stub delete mode 100644 templates/scaffold/fields/text_locale.stub delete mode 100644 templates/scaffold/fields/textarea.stub delete mode 100644 templates/scaffold/fields/textarea_locale.stub delete mode 100644 templates/scaffold/fields/toggle-switch.stub delete mode 100644 templates/scaffold/fields/toggle-switch_locale.stub delete mode 100644 templates/scaffold/layouts/menu_template.stub delete mode 100644 templates/scaffold/views/create.stub delete mode 100644 templates/scaffold/views/create_locale.stub delete mode 100644 templates/scaffold/views/edit.stub delete mode 100644 templates/scaffold/views/edit_locale.stub delete mode 100644 templates/scaffold/views/fields.stub delete mode 100644 templates/scaffold/views/fields_locale.stub delete mode 100644 templates/scaffold/views/index_locale.stub delete mode 100644 templates/scaffold/views/paginate.stub delete mode 100644 templates/scaffold/views/show_field.stub delete mode 100644 templates/scaffold/views/show_field_locale.stub delete mode 100644 templates/scaffold/views/show_locale.stub delete mode 100644 templates/scaffold/views/table/blade/body.stub delete mode 100644 templates/scaffold/views/table/blade/body_locale.stub delete mode 100644 templates/scaffold/views/table/blade/cell.stub delete mode 100644 templates/scaffold/views/table/blade/header.stub delete mode 100644 templates/scaffold/views/table/blade/header_locale.stub delete mode 100644 templates/scaffold/views/table/datatable/actions.stub delete mode 100644 templates/scaffold/views/table/datatable/actions_locale.stub delete mode 100644 templates/scaffold/views/table/datatable/body.stub delete mode 100644 templates/scaffold/views/table/datatable/column.stub delete mode 100644 templates/scaffold/views/table/datatable/column_locale.stub delete mode 100644 templates/scaffold/views/table/livewire/body.stub create mode 100644 views/templates/fields/boolean.blade.php create mode 100644 views/templates/fields/checkbox.blade.php create mode 100644 views/templates/fields/checkbox_group.blade.php create mode 100644 views/templates/fields/date.blade.php create mode 100644 views/templates/fields/email.blade.php create mode 100644 views/templates/fields/file.blade.php create mode 100644 views/templates/fields/number.blade.php create mode 100644 views/templates/fields/password.blade.php create mode 100644 views/templates/fields/radio.blade.php create mode 100644 views/templates/fields/radio_group.blade.php create mode 100644 views/templates/fields/select.blade.php create mode 100644 views/templates/fields/text.blade.php create mode 100644 views/templates/fields/textarea.blade.php create mode 100644 views/templates/fields/toggle-switch.blade.php create mode 100644 views/templates/layouts/menu_template.blade.php create mode 100644 views/templates/scaffold/create.blade.php create mode 100644 views/templates/scaffold/edit.blade.php create mode 100644 views/templates/scaffold/paginate.blade.php rename templates/scaffold/views/show.stub => views/templates/scaffold/show.blade.php (56%) create mode 100644 views/templates/scaffold/show_field.blade.php create mode 100644 views/templates/scaffold/table/blade/body.blade.php create mode 100644 views/templates/scaffold/table/blade/cell.blade.php create mode 100644 views/templates/scaffold/table/blade/header.blade.php create mode 100644 views/templates/scaffold/table/datatable/actions.blade.php create mode 100644 views/templates/scaffold/table/datatable/body.blade.php create mode 100644 views/templates/scaffold/table/datatable/column.blade.php create mode 100644 views/templates/scaffold/table/livewire/body.blade.php rename {templates/scaffold => views/templates}/users/create.stub (100%) rename {templates/scaffold => views/templates}/users/edit.stub (100%) rename {templates/scaffold => views/templates}/users/fields.stub (100%) rename {templates/scaffold => views/templates}/users/index.stub (100%) rename {templates/scaffold => views/templates}/users/menu.stub (100%) rename {templates/scaffold => views/templates}/users/show.stub (100%) rename {templates/scaffold => views/templates}/users/show_fields.stub (100%) rename {templates/scaffold => views/templates}/users/table.stub (100%) diff --git a/.gitignore b/.gitignore index 730160b..b4a27af 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ storage/ .env.php .env .env.example +composer.lock diff --git a/composer.json b/composer.json index ce41caa..5abb31e 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "require": { "php": "^8.0", "illuminate/support": "^9.0", + "illuminate/view": "^9.0", "infyomlabs/laravel-ui-adminlte": "^4.0" }, "autoload": { diff --git a/src/AdminLTETemplatesServiceProvider.php b/src/AdminLTETemplatesServiceProvider.php index abaf86c..97e9366 100644 --- a/src/AdminLTETemplatesServiceProvider.php +++ b/src/AdminLTETemplatesServiceProvider.php @@ -3,6 +3,7 @@ namespace InfyOm\AdminLTETemplates; use Illuminate\Pagination\Paginator; +use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class AdminLTETemplatesServiceProvider extends ServiceProvider @@ -21,6 +22,14 @@ public function boot() Paginator::defaultView('adminlte-templates::common.paginator'); Paginator::defaultSimpleView('adminlte-templates::common.simple_paginator'); + + Blade::directive('ocb', function () { + return ''; + }); + + Blade::directive('ccb', function () { + return ''; + }); } /** diff --git a/templates/scaffold/fields/boolean.stub b/templates/scaffold/fields/boolean.stub deleted file mode 100644 index 97d3c22..0000000 --- a/templates/scaffold/fields/boolean.stub +++ /dev/null @@ -1,8 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - -
diff --git a/templates/scaffold/fields/boolean_locale.stub b/templates/scaffold/fields/boolean_locale.stub deleted file mode 100644 index 63a63f7..0000000 --- a/templates/scaffold/fields/boolean_locale.stub +++ /dev/null @@ -1,8 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - -
diff --git a/templates/scaffold/fields/checkbox.stub b/templates/scaffold/fields/checkbox.stub deleted file mode 100644 index 2ecb82d..0000000 --- a/templates/scaffold/fields/checkbox.stub +++ /dev/null @@ -1,8 +0,0 @@ - -
-
- {!! Form::hidden('$FIELD_NAME$', 0, ['class' => 'form-check-input']) !!} - {!! Form::checkbox('$FIELD_NAME$', '$CHECKBOX_VALUE$', null, ['class' => 'form-check-input']) !!} - {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$', ['class' => 'form-check-label']) !!} -
-
diff --git a/templates/scaffold/fields/checkbox_group.stub b/templates/scaffold/fields/checkbox_group.stub deleted file mode 100644 index 6ff474e..0000000 --- a/templates/scaffold/fields/checkbox_group.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - $CHECKBOXES$ -
\ No newline at end of file diff --git a/templates/scaffold/fields/checkbox_group_locale.stub b/templates/scaffold/fields/checkbox_group_locale.stub deleted file mode 100644 index 95578ce..0000000 --- a/templates/scaffold/fields/checkbox_group_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - $CHECKBOXES$ -
\ No newline at end of file diff --git a/templates/scaffold/fields/checkbox_locale.stub b/templates/scaffold/fields/checkbox_locale.stub deleted file mode 100644 index 094439f..0000000 --- a/templates/scaffold/fields/checkbox_locale.stub +++ /dev/null @@ -1,8 +0,0 @@ - -
-
- {!! Form::hidden('$FIELD_NAME$', 0, ['class' => 'form-check-input']) !!} - {!! Form::checkbox('$FIELD_NAME$', '$CHECKBOX_VALUE$', null, ['class' => 'form-check-input']) !!} - {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':', ['class' => 'form-check-label']) -
-
diff --git a/templates/scaffold/fields/date.stub b/templates/scaffold/fields/date.stub deleted file mode 100644 index 289f19f..0000000 --- a/templates/scaffold/fields/date.stub +++ /dev/null @@ -1,15 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!} -
- -@push('page_scripts') - -@endpush \ No newline at end of file diff --git a/templates/scaffold/fields/date_locale.stub b/templates/scaffold/fields/date_locale.stub deleted file mode 100644 index eb2b228..0000000 --- a/templates/scaffold/fields/date_locale.stub +++ /dev/null @@ -1,15 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!} -
- -@push('page_scripts') - -@endpush \ No newline at end of file diff --git a/templates/scaffold/fields/email.stub b/templates/scaffold/fields/email.stub deleted file mode 100644 index 835076e..0000000 --- a/templates/scaffold/fields/email.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/email_locale.stub b/templates/scaffold/fields/email_locale.stub deleted file mode 100644 index 5dac4f9..0000000 --- a/templates/scaffold/fields/email_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/file.stub b/templates/scaffold/fields/file.stub deleted file mode 100644 index 7daf5cf..0000000 --- a/templates/scaffold/fields/file.stub +++ /dev/null @@ -1,11 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} -
-
- {!! Form::file('$FIELD_NAME$', ['class' => 'custom-file-input']) !!} - {!! Form::label('$FIELD_NAME$', 'Choose file', ['class' => 'custom-file-label']) !!} -
-
-
-
diff --git a/templates/scaffold/fields/file_locale.stub b/templates/scaffold/fields/file_locale.stub deleted file mode 100644 index c0f45ab..0000000 --- a/templates/scaffold/fields/file_locale.stub +++ /dev/null @@ -1,11 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} -
-
- {!! Form::file('$FIELD_NAME$', ['class' => 'custom-file-input']) !!} - {!! Form::label('$FIELD_NAME$', 'Choose file', ['class' => 'custom-file-label']) !!} -
-
-
-
diff --git a/templates/scaffold/fields/number.stub b/templates/scaffold/fields/number.stub deleted file mode 100644 index 39bb8dc..0000000 --- a/templates/scaffold/fields/number.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/number_locale.stub b/templates/scaffold/fields/number_locale.stub deleted file mode 100644 index 265dd7e..0000000 --- a/templates/scaffold/fields/number_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control']) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/password.stub b/templates/scaffold/fields/password.stub deleted file mode 100644 index 29adcb5..0000000 --- a/templates/scaffold/fields/password.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::password('$FIELD_NAME$', ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/password_locale.stub b/templates/scaffold/fields/password_locale.stub deleted file mode 100644 index f3bd8e5..0000000 --- a/templates/scaffold/fields/password_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::password('$FIELD_NAME$', ['class' => 'form-control']) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/radio.stub b/templates/scaffold/fields/radio.stub deleted file mode 100644 index 8ac4c92..0000000 --- a/templates/scaffold/fields/radio.stub +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/templates/scaffold/fields/radio_group.stub b/templates/scaffold/fields/radio_group.stub deleted file mode 100644 index debc6f8..0000000 --- a/templates/scaffold/fields/radio_group.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$', ['class' => 'form-check-label']) !!} - $RADIO_BUTTONS$ -
diff --git a/templates/scaffold/fields/radio_group_locale.stub b/templates/scaffold/fields/radio_group_locale.stub deleted file mode 100644 index 7833833..0000000 --- a/templates/scaffold/fields/radio_group_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$'), ['class' => 'form-check-label']) !!} - $RADIO_BUTTONS$ -
diff --git a/templates/scaffold/fields/select.stub b/templates/scaffold/fields/select.stub deleted file mode 100644 index e4ec4cc..0000000 --- a/templates/scaffold/fields/select.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control custom-select']) !!} -
diff --git a/templates/scaffold/fields/select_locale.stub b/templates/scaffold/fields/select_locale.stub deleted file mode 100644 index 5b6298a..0000000 --- a/templates/scaffold/fields/select_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control custom-select']) !!} -
diff --git a/templates/scaffold/fields/text.stub b/templates/scaffold/fields/text.stub deleted file mode 100644 index e06fe3e..0000000 --- a/templates/scaffold/fields/text.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/text_locale.stub b/templates/scaffold/fields/text_locale.stub deleted file mode 100644 index f3b8832..0000000 --- a/templates/scaffold/fields/text_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/textarea.stub b/templates/scaffold/fields/textarea.stub deleted file mode 100644 index ac96860..0000000 --- a/templates/scaffold/fields/textarea.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} - {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/textarea_locale.stub b/templates/scaffold/fields/textarea_locale.stub deleted file mode 100644 index 375e7d7..0000000 --- a/templates/scaffold/fields/textarea_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} - {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} -
\ No newline at end of file diff --git a/templates/scaffold/fields/toggle-switch.stub b/templates/scaffold/fields/toggle-switch.stub deleted file mode 100644 index e4e9111..0000000 --- a/templates/scaffold/fields/toggle-switch.stub +++ /dev/null @@ -1,7 +0,0 @@ - -
-
- {!! Form::checkbox('$FIELD_NAME$', 1, null, ['class' => 'custom-control-input']) !!} - {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:', ['class' => 'custom-control-label']) !!} -
-
diff --git a/templates/scaffold/fields/toggle-switch_locale.stub b/templates/scaffold/fields/toggle-switch_locale.stub deleted file mode 100644 index fcd692c..0000000 --- a/templates/scaffold/fields/toggle-switch_locale.stub +++ /dev/null @@ -1,8 +0,0 @@ - -
-
- {!! Form::checkbox('$FIELD_NAME$', 1, null, ['class' => 'custom-control-input']) !!} - {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':', ['class' => 'custom-control-label']) !!} -
-
- diff --git a/templates/scaffold/layouts/menu_template.stub b/templates/scaffold/layouts/menu_template.stub deleted file mode 100644 index f53bea2..0000000 --- a/templates/scaffold/layouts/menu_template.stub +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/templates/scaffold/views/create.stub b/templates/scaffold/views/create.stub deleted file mode 100644 index 1e3420c..0000000 --- a/templates/scaffold/views/create.stub +++ /dev/null @@ -1,39 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
-

Create $MODEL_NAME_HUMAN$

-
-
-
-
- -
- - @include('adminlte-templates::common.errors') - -
- - {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!} - -
- -
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') -
- -
- - - - {!! Form::close() !!} - -
-
-@endsection diff --git a/templates/scaffold/views/create_locale.stub b/templates/scaffold/views/create_locale.stub deleted file mode 100644 index d5dc1a1..0000000 --- a/templates/scaffold/views/create_locale.stub +++ /dev/null @@ -1,39 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
- @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') -
-
-
-
- -
- - @include('adminlte-templates::common.errors') - -
- - {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!} - -
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') -
-
- - - - {!! Form::close() !!} - -
-
-@endsection diff --git a/templates/scaffold/views/edit.stub b/templates/scaffold/views/edit.stub deleted file mode 100644 index d441e5f..0000000 --- a/templates/scaffold/views/edit.stub +++ /dev/null @@ -1,37 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
-

Edit $MODEL_NAME_HUMAN$

-
-
-
-
- -
- - @include('adminlte-templates::common.errors') - -
- - {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!} - -
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') -
-
- - - - {!! Form::close() !!} - -
-
-@endsection diff --git a/templates/scaffold/views/edit_locale.stub b/templates/scaffold/views/edit_locale.stub deleted file mode 100644 index f74faf1..0000000 --- a/templates/scaffold/views/edit_locale.stub +++ /dev/null @@ -1,39 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
- @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') -
-
-
-
- -
- - @include('adminlte-templates::common.errors') - -
- - {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!} - -
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') -
-
- - - - {!! Form::close() !!} - -
-
-@endsection \ No newline at end of file diff --git a/templates/scaffold/views/fields.stub b/templates/scaffold/views/fields.stub deleted file mode 100644 index 2e2bf9b..0000000 --- a/templates/scaffold/views/fields.stub +++ /dev/null @@ -1 +0,0 @@ -$FIELDS$ \ No newline at end of file diff --git a/templates/scaffold/views/fields_locale.stub b/templates/scaffold/views/fields_locale.stub deleted file mode 100644 index 2e2bf9b..0000000 --- a/templates/scaffold/views/fields_locale.stub +++ /dev/null @@ -1 +0,0 @@ -$FIELDS$ \ No newline at end of file diff --git a/templates/scaffold/views/index_locale.stub b/templates/scaffold/views/index_locale.stub deleted file mode 100644 index 5942fa5..0000000 --- a/templates/scaffold/views/index_locale.stub +++ /dev/null @@ -1,41 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
- @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural') -
- -
-
-
- -
- - @include('flash::message') - -
- -
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') - - -
-
-
- -@endsection - - diff --git a/templates/scaffold/views/paginate.stub b/templates/scaffold/views/paginate.stub deleted file mode 100644 index a3dcc76..0000000 --- a/templates/scaffold/views/paginate.stub +++ /dev/null @@ -1 +0,0 @@ -@include('adminlte-templates::common.paginate', ['records' => $$MODEL_NAME_PLURAL_CAMEL$]) \ No newline at end of file diff --git a/templates/scaffold/views/show_field.stub b/templates/scaffold/views/show_field.stub deleted file mode 100644 index b0f21dc..0000000 --- a/templates/scaffold/views/show_field.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} -

{{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }}

-
\ No newline at end of file diff --git a/templates/scaffold/views/show_field_locale.stub b/templates/scaffold/views/show_field_locale.stub deleted file mode 100644 index d723065..0000000 --- a/templates/scaffold/views/show_field_locale.stub +++ /dev/null @@ -1,5 +0,0 @@ - -
- {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} -

{{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }}

-
\ No newline at end of file diff --git a/templates/scaffold/views/show_locale.stub b/templates/scaffold/views/show_locale.stub deleted file mode 100644 index fcad1d8..0000000 --- a/templates/scaffold/views/show_locale.stub +++ /dev/null @@ -1,29 +0,0 @@ -@extends('layouts.app') - -@section('content') -
-
-
-
-

@lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular')

-
- -
-
-
- -
-
-
-
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields') -
-
-
-
-@endsection diff --git a/templates/scaffold/views/table/blade/body.stub b/templates/scaffold/views/table/blade/body.stub deleted file mode 100644 index 1ddd116..0000000 --- a/templates/scaffold/views/table/blade/body.stub +++ /dev/null @@ -1,40 +0,0 @@ -
-
- - - - $FIELD_HEADERS$ - - - - - @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) - - $FIELD_BODY$ - - - @endforeach - -
Action
- {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} -
- {!! Form::close() !!} -
-
- - -
diff --git a/templates/scaffold/views/table/blade/body_locale.stub b/templates/scaffold/views/table/blade/body_locale.stub deleted file mode 100644 index 99ddcdc..0000000 --- a/templates/scaffold/views/table/blade/body_locale.stub +++ /dev/null @@ -1,32 +0,0 @@ -
- - - - $FIELD_HEADERS$ - - - - - @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) - - $FIELD_BODY$ - - - @endforeach - -
@lang('crud.action')
- {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} -
- {!! Form::close() !!} -
-
diff --git a/templates/scaffold/views/table/blade/cell.stub b/templates/scaffold/views/table/blade/cell.stub deleted file mode 100644 index 97f322e..0000000 --- a/templates/scaffold/views/table/blade/cell.stub +++ /dev/null @@ -1 +0,0 @@ -{{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }} \ No newline at end of file diff --git a/templates/scaffold/views/table/blade/header.stub b/templates/scaffold/views/table/blade/header.stub deleted file mode 100644 index a99b514..0000000 --- a/templates/scaffold/views/table/blade/header.stub +++ /dev/null @@ -1 +0,0 @@ -$FIELD_NAME_TITLE$ \ No newline at end of file diff --git a/templates/scaffold/views/table/blade/header_locale.stub b/templates/scaffold/views/table/blade/header_locale.stub deleted file mode 100644 index a99b514..0000000 --- a/templates/scaffold/views/table/blade/header_locale.stub +++ /dev/null @@ -1 +0,0 @@ -$FIELD_NAME_TITLE$ \ No newline at end of file diff --git a/templates/scaffold/views/table/datatable/actions.stub b/templates/scaffold/views/table/datatable/actions.stub deleted file mode 100644 index 5a4ab71..0000000 --- a/templates/scaffold/views/table/datatable/actions.stub +++ /dev/null @@ -1,15 +0,0 @@ -{!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', [ - 'type' => 'submit', - 'class' => 'btn btn-danger btn-xs', - 'onclick' => "return confirm('Are you sure?')" - ]) !!} -
-{!! Form::close() !!} diff --git a/templates/scaffold/views/table/datatable/actions_locale.stub b/templates/scaffold/views/table/datatable/actions_locale.stub deleted file mode 100644 index f4a93c1..0000000 --- a/templates/scaffold/views/table/datatable/actions_locale.stub +++ /dev/null @@ -1,15 +0,0 @@ -{!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} -
- - - - - - - {!! Form::button('', [ - 'type' => 'submit', - 'class' => 'btn btn-danger btn-xs', - 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")' - ]) !!} -
-{!! Form::close() !!} diff --git a/templates/scaffold/views/table/datatable/body.stub b/templates/scaffold/views/table/datatable/body.stub deleted file mode 100644 index afb570d..0000000 --- a/templates/scaffold/views/table/datatable/body.stub +++ /dev/null @@ -1,12 +0,0 @@ -@push('third_party_stylesheets') - @include('layouts.datatables_css') -@endpush - -
- {!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} -
- -@push('third_party_scripts') - @include('layouts.datatables_js') - {!! $dataTable->scripts() !!} -@endpush \ No newline at end of file diff --git a/templates/scaffold/views/table/datatable/column.stub b/templates/scaffold/views/table/datatable/column.stub deleted file mode 100644 index e4872ef..0000000 --- a/templates/scaffold/views/table/datatable/column.stub +++ /dev/null @@ -1 +0,0 @@ -'$FIELD_NAME$' \ No newline at end of file diff --git a/templates/scaffold/views/table/datatable/column_locale.stub b/templates/scaffold/views/table/datatable/column_locale.stub deleted file mode 100644 index f7f8421..0000000 --- a/templates/scaffold/views/table/datatable/column_locale.stub +++ /dev/null @@ -1 +0,0 @@ -'$FIELD_NAME$' => new Column(['title' => __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$'), 'data' => '$FIELD_NAME$'$SEARCHABLE$]) \ No newline at end of file diff --git a/templates/scaffold/views/table/livewire/body.stub b/templates/scaffold/views/table/livewire/body.stub deleted file mode 100644 index 8bbf0fc..0000000 --- a/templates/scaffold/views/table/livewire/body.stub +++ /dev/null @@ -1,3 +0,0 @@ -
- -
\ No newline at end of file diff --git a/views/templates/fields/boolean.blade.php b/views/templates/fields/boolean.blade.php new file mode 100644 index 0000000..8e64a6d --- /dev/null +++ b/views/templates/fields/boolean.blade.php @@ -0,0 +1,12 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + +
diff --git a/views/templates/fields/checkbox.blade.php b/views/templates/fields/checkbox.blade.php new file mode 100644 index 0000000..a3f0a84 --- /dev/null +++ b/views/templates/fields/checkbox.blade.php @@ -0,0 +1,8 @@ + +
+
+ @{!! Form::hidden('{{ $fieldName }}', 0, ['class' => 'form-check-input']) !!} + @{!! Form::checkbox('{{ $fieldName }}', '{{ $checkboxVal }}', null, ['class' => 'form-check-input']) !!} + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}', ['class' => 'form-check-label']) !!} +
+
diff --git a/views/templates/fields/checkbox_group.blade.php b/views/templates/fields/checkbox_group.blade.php new file mode 100644 index 0000000..fb9fbf7 --- /dev/null +++ b/views/templates/fields/checkbox_group.blade.php @@ -0,0 +1,14 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif +@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + {!! $checkboxes !!} +
\ No newline at end of file diff --git a/views/templates/fields/date.blade.php b/views/templates/fields/date.blade.php new file mode 100644 index 0000000..798b614 --- /dev/null +++ b/views/templates/fields/date.blade.php @@ -0,0 +1,19 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::text('{{ $fieldName }}', null, ['class' => 'form-control','id'=>'{{ $fieldName }}']) !!} +
+ +@@push('page_scripts') + +@@endpush \ No newline at end of file diff --git a/views/templates/fields/email.blade.php b/views/templates/fields/email.blade.php new file mode 100644 index 0000000..9ac5925 --- /dev/null +++ b/views/templates/fields/email.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::email('{{ $fieldName }}', null, ['class' => 'form-control']) !!} +
\ No newline at end of file diff --git a/views/templates/fields/file.blade.php b/views/templates/fields/file.blade.php new file mode 100644 index 0000000..259434a --- /dev/null +++ b/views/templates/fields/file.blade.php @@ -0,0 +1,15 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif +
+
+ @{!! Form::file('{{ $fieldName }}', ['class' => 'custom-file-input']) !!} + @{!! Form::label('{{ $fieldName }}', 'Choose file', ['class' => 'custom-file-label']) !!} +
+
+
+
diff --git a/views/templates/fields/number.blade.php b/views/templates/fields/number.blade.php new file mode 100644 index 0000000..e3fbc31 --- /dev/null +++ b/views/templates/fields/number.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::number('{{ $fieldName }}', null, ['class' => 'form-control']) !!} +
\ No newline at end of file diff --git a/views/templates/fields/password.blade.php b/views/templates/fields/password.blade.php new file mode 100644 index 0000000..262fa3d --- /dev/null +++ b/views/templates/fields/password.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::password('{{ $fieldName }}', ['class' => 'form-control']) !!} +
\ No newline at end of file diff --git a/views/templates/fields/radio.blade.php b/views/templates/fields/radio.blade.php new file mode 100644 index 0000000..a8f528e --- /dev/null +++ b/views/templates/fields/radio.blade.php @@ -0,0 +1,3 @@ + diff --git a/views/templates/fields/radio_group.blade.php b/views/templates/fields/radio_group.blade.php new file mode 100644 index 0000000..9637d0c --- /dev/null +++ b/views/templates/fields/radio_group.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}'), ['class' => 'form-check-label']) !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}', ['class' => 'form-check-label']) !!} +@endif + {!! $radioButtons !!} +
diff --git a/views/templates/fields/select.blade.php b/views/templates/fields/select.blade.php new file mode 100644 index 0000000..631b194 --- /dev/null +++ b/views/templates/fields/select.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::select('{{ $fieldName }}', {{ $selectValues }}, null, ['class' => 'form-control custom-select']) !!} +
diff --git a/views/templates/fields/text.blade.php b/views/templates/fields/text.blade.php new file mode 100644 index 0000000..d325d1f --- /dev/null +++ b/views/templates/fields/text.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::text('{{ $fieldName }}', null, ['class' => 'form-control']) !!} +
\ No newline at end of file diff --git a/views/templates/fields/textarea.blade.php b/views/templates/fields/textarea.blade.php new file mode 100644 index 0000000..7cf11ea --- /dev/null +++ b/views/templates/fields/textarea.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif + @{!! Form::textarea('{{ $fieldName }}', null, ['class' => 'form-control']) !!} +
\ No newline at end of file diff --git a/views/templates/fields/toggle-switch.blade.php b/views/templates/fields/toggle-switch.blade.php new file mode 100644 index 0000000..50dc6d3 --- /dev/null +++ b/views/templates/fields/toggle-switch.blade.php @@ -0,0 +1,11 @@ + +
+
+ @{!! Form::checkbox('{{ $fieldName }}', 1, null, ['class' => 'custom-control-input']) !!} +@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':', ['class' => 'custom-control-label']) !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:', ['class' => 'custom-control-label']) !!} +@endif +
+
diff --git a/views/templates/layouts/menu_template.blade.php b/views/templates/layouts/menu_template.blade.php new file mode 100644 index 0000000..1426e4c --- /dev/null +++ b/views/templates/layouts/menu_template.blade.php @@ -0,0 +1,6 @@ + diff --git a/views/templates/scaffold/create.blade.php b/views/templates/scaffold/create.blade.php new file mode 100644 index 0000000..0d68fdc --- /dev/null +++ b/views/templates/scaffold/create.blade.php @@ -0,0 +1,43 @@ +@@extends('layouts.app') + +@@section('content') +
+
+
+
+@if($config->options->localized) + @@lang('models/{!! $config->modelNames->camelPlural !!}.singular') +@else +

Create {{ $config->modelNames->humanPlural }}

+@endif +
+
+
+
+ +
+ + @@include('adminlte-templates::common.errors') + +
+ + @{!! Form::open(['route' => '{{ $config->modelNames->camelPlural }}.store']) !!} + +
+ +
+ @@include('{{ $config->modelNames->snakePlural }}.fields') +
+ +
+ + + + @{!! Form::close() !!} + +
+
+@@endsection diff --git a/views/templates/scaffold/edit.blade.php b/views/templates/scaffold/edit.blade.php new file mode 100644 index 0000000..fc353af --- /dev/null +++ b/views/templates/scaffold/edit.blade.php @@ -0,0 +1,41 @@ +@@extends('layouts.app') + +@@section('content') +
+
+
+
+@if($config->options->localized) + @@lang('models/{!! $config->modelNames->camelPlural !!}.singular') +@else +

Edit {{ $config->modelNames->human }}

+@endif +
+
+
+
+ +
+ + @@include('adminlte-templates::common.errors') + +
+ + @{!! Form::model(${{ $config->modelNames->camel }}, ['route' => ['{{ $config->modelNames->camelPlural }}.update', ${{ $config->modelNames->camel }}->{{ $config->primaryName }}], 'method' => 'patch']) !!} + +
+
+ @@include('{{ $config->modelNames->snakePlural }}.fields') +
+
+ + + + @{!! Form::close() !!} + +
+
+@@endsection diff --git a/views/templates/scaffold/paginate.blade.php b/views/templates/scaffold/paginate.blade.php new file mode 100644 index 0000000..ec6551e --- /dev/null +++ b/views/templates/scaffold/paginate.blade.php @@ -0,0 +1 @@ +@@include('adminlte-templates::common.paginate', ['records' => ${!! $config->modelNames->camelPlural !!}]) \ No newline at end of file diff --git a/templates/scaffold/views/show.stub b/views/templates/scaffold/show.blade.php similarity index 56% rename from templates/scaffold/views/show.stub rename to views/templates/scaffold/show.blade.php index 2d387f3..e5d18b4 100644 --- a/templates/scaffold/views/show.stub +++ b/views/templates/scaffold/show.blade.php @@ -1,15 +1,19 @@ -@extends('layouts.app') +@@extends('layouts.app') -@section('content') +@@section('content')
-

$MODEL_NAME_HUMAN$ Details

+@if($config->options->localized) +

{{ $config->modelNames->human }} Details

+@else +

@@lang('models/{!! $config->modelNames->camelPlural !!}.singular')

+@endif
@@ -21,9 +25,9 @@
- @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields') + @@include('{{ $config->modelNames->snakePlural }}.show_fields')
-@endsection +@@endsection diff --git a/views/templates/scaffold/show_field.blade.php b/views/templates/scaffold/show_field.blade.php new file mode 100644 index 0000000..43a0a2d --- /dev/null +++ b/views/templates/scaffold/show_field.blade.php @@ -0,0 +1,9 @@ + +
+@if($config->options->localized) + @{!! Form::label('{{ $fieldName }}', __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}').':') !!} +@else + @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} +@endif +

@{{ ${!! $config->modelNames->camel !!}->{!! $fieldName !!} }}

+
\ No newline at end of file diff --git a/views/templates/scaffold/table/blade/body.blade.php b/views/templates/scaffold/table/blade/body.blade.php new file mode 100644 index 0000000..30283c9 --- /dev/null +++ b/views/templates/scaffold/table/blade/body.blade.php @@ -0,0 +1,44 @@ +
+
+ + + + {!! $fieldHeaders !!} +@if($config->options->localized) + +@else + +@endif + + + + @@foreach(${{ $config->modelNames->camelPlural }} as ${{ $config->modelNames->camel }}) + + {!! $fieldBody !!} + + + @@endforeach + +
@lang('crud.action')Action
+ @{!! Form::open(['route' => ['{{ $config->modelNames->camelPlural }}.destroy', ${{ $config->modelNames->camel }}->{{ $config->primaryName }}], 'method' => 'delete']) !!} +
+ + + + + + + @{!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} +
+ @{!! Form::close() !!} +
+
+ + +
diff --git a/views/templates/scaffold/table/blade/cell.blade.php b/views/templates/scaffold/table/blade/cell.blade.php new file mode 100644 index 0000000..fa8b1e9 --- /dev/null +++ b/views/templates/scaffold/table/blade/cell.blade.php @@ -0,0 +1 @@ +@{{ ${!! $modelVariable !!}->{!! $fieldName !!} }} \ No newline at end of file diff --git a/views/templates/scaffold/table/blade/header.blade.php b/views/templates/scaffold/table/blade/header.blade.php new file mode 100644 index 0000000..726343f --- /dev/null +++ b/views/templates/scaffold/table/blade/header.blade.php @@ -0,0 +1 @@ +{!! $fieldTitle !!} \ No newline at end of file diff --git a/views/templates/scaffold/table/datatable/actions.blade.php b/views/templates/scaffold/table/datatable/actions.blade.php new file mode 100644 index 0000000..080185b --- /dev/null +++ b/views/templates/scaffold/table/datatable/actions.blade.php @@ -0,0 +1,20 @@ +@{!! Form::open(['route' => ['{{ $config->modelNames->camelPlural }}.destroy', ${{ $config->primaryName }}], 'method' => 'delete']) !!} +
+ + + + + + + @{!! Form::button('', [ + 'type' => 'submit', + 'class' => 'btn btn-danger btn-xs', +@if($config->options->localized) + 'onclick' => "return confirm('Are you sure?')" +@else + 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")' +@endif + + ]) !!} +
+@{!! Form::close() !!} diff --git a/views/templates/scaffold/table/datatable/body.blade.php b/views/templates/scaffold/table/datatable/body.blade.php new file mode 100644 index 0000000..acbb236 --- /dev/null +++ b/views/templates/scaffold/table/datatable/body.blade.php @@ -0,0 +1,12 @@ +@@push('third_party_stylesheets') + @@include('layouts.datatables_css') +@@endpush + +
+ @{!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} +
+ +@@push('third_party_scripts') + @@include('layouts.datatables_js') + @{!! $dataTable->scripts() !!} +@@endpush \ No newline at end of file diff --git a/views/templates/scaffold/table/datatable/column.blade.php b/views/templates/scaffold/table/datatable/column.blade.php new file mode 100644 index 0000000..4f46c99 --- /dev/null +++ b/views/templates/scaffold/table/datatable/column.blade.php @@ -0,0 +1,5 @@ +@if($config->options->localized) + '{{ $fieldName }}' => new Column(['title' => __('models/{{ $config->modelNames->camelPlural }}.fields.{{ $fieldName }}'), 'data' => '{{ $fieldName }}']) +@else + '{{ $fieldName }}' +@endif \ No newline at end of file diff --git a/views/templates/scaffold/table/livewire/body.blade.php b/views/templates/scaffold/table/livewire/body.blade.php new file mode 100644 index 0000000..ff6826a --- /dev/null +++ b/views/templates/scaffold/table/livewire/body.blade.php @@ -0,0 +1,3 @@ +
+ @@livewire('{{ $config->modelNames->dashedPlural }}-table', []) +
\ No newline at end of file diff --git a/templates/scaffold/users/create.stub b/views/templates/users/create.stub similarity index 100% rename from templates/scaffold/users/create.stub rename to views/templates/users/create.stub diff --git a/templates/scaffold/users/edit.stub b/views/templates/users/edit.stub similarity index 100% rename from templates/scaffold/users/edit.stub rename to views/templates/users/edit.stub diff --git a/templates/scaffold/users/fields.stub b/views/templates/users/fields.stub similarity index 100% rename from templates/scaffold/users/fields.stub rename to views/templates/users/fields.stub diff --git a/templates/scaffold/users/index.stub b/views/templates/users/index.stub similarity index 100% rename from templates/scaffold/users/index.stub rename to views/templates/users/index.stub diff --git a/templates/scaffold/users/menu.stub b/views/templates/users/menu.stub similarity index 100% rename from templates/scaffold/users/menu.stub rename to views/templates/users/menu.stub diff --git a/templates/scaffold/users/show.stub b/views/templates/users/show.stub similarity index 100% rename from templates/scaffold/users/show.stub rename to views/templates/users/show.stub diff --git a/templates/scaffold/users/show_fields.stub b/views/templates/users/show_fields.stub similarity index 100% rename from templates/scaffold/users/show_fields.stub rename to views/templates/users/show_fields.stub diff --git a/templates/scaffold/users/table.stub b/views/templates/users/table.stub similarity index 100% rename from templates/scaffold/users/table.stub rename to views/templates/users/table.stub From 08446436143ba7f165b057ddee017ab55f675d3f Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Tue, 5 Jul 2022 14:57:31 +0530 Subject: [PATCH 04/12] feat: blade templates fixes --- .../templates/layouts/menu_template.blade.php | 8 +++++-- .../templates/scaffold/index.blade.php | 22 +++++++++++++------ .../scaffold/table/livewire/actions.blade.php | 6 ++--- 3 files changed, 24 insertions(+), 12 deletions(-) rename templates/scaffold/views/index.stub => views/templates/scaffold/index.blade.php (51%) rename templates/scaffold/views/table/livewire/actions.stub => views/templates/scaffold/table/livewire/actions.blade.php (57%) diff --git a/views/templates/layouts/menu_template.blade.php b/views/templates/layouts/menu_template.blade.php index 1426e4c..6782717 100644 --- a/views/templates/layouts/menu_template.blade.php +++ b/views/templates/layouts/menu_template.blade.php @@ -1,6 +1,10 @@ diff --git a/templates/scaffold/views/index.stub b/views/templates/scaffold/index.blade.php similarity index 51% rename from templates/scaffold/views/index.stub rename to views/templates/scaffold/index.blade.php index ac9dba1..ddbca48 100644 --- a/templates/scaffold/views/index.stub +++ b/views/templates/scaffold/index.blade.php @@ -1,16 +1,24 @@ -@extends('layouts.app') +@@extends('layouts.app') -@section('content') +@@section('content')
-

$MODEL_NAME_PLURAL_HUMAN$

+@if($config->options->localized) + @lang('models/{{ $config->modelNames->camelPlural }}.plural') +@else +

{{ $config->modelNames->humanPlural }}

+@endif
@@ -19,13 +27,13 @@
- @include('flash::message') + @@include('flash::message')
- $TABLE$ + {!! $table !!}
-@endsection \ No newline at end of file +@@endsection \ No newline at end of file diff --git a/templates/scaffold/views/table/livewire/actions.stub b/views/templates/scaffold/table/livewire/actions.blade.php similarity index 57% rename from templates/scaffold/views/table/livewire/actions.stub rename to views/templates/scaffold/table/livewire/actions.blade.php index 0c66a35..a494500 100644 --- a/templates/scaffold/views/table/livewire/actions.stub +++ b/views/templates/scaffold/table/livewire/actions.blade.php @@ -1,11 +1,11 @@
- + - + - From aa6e6c23543893598061682dfbe9822ba01cc15b Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Wed, 6 Jul 2022 11:55:16 +0530 Subject: [PATCH 05/12] feat: validations added for min, max --- views/templates/fields/email.blade.php | 2 +- views/templates/fields/number.blade.php | 2 +- views/templates/fields/password.blade.php | 2 +- views/templates/fields/text.blade.php | 2 +- views/templates/fields/textarea.blade.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/views/templates/fields/email.blade.php b/views/templates/fields/email.blade.php index 9ac5925..f350eb2 100644 --- a/views/templates/fields/email.blade.php +++ b/views/templates/fields/email.blade.php @@ -5,5 +5,5 @@ @else @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} @endif - @{!! Form::email('{{ $fieldName }}', null, ['class' => 'form-control']) !!} + @{!! Form::email('{{ $fieldName }}', null, ['class' => 'form-control'@php if(isset($options)) { echo htmlspecialchars_decode($options); } @endphp]) !!}
\ No newline at end of file diff --git a/views/templates/fields/number.blade.php b/views/templates/fields/number.blade.php index e3fbc31..bc5d38c 100644 --- a/views/templates/fields/number.blade.php +++ b/views/templates/fields/number.blade.php @@ -5,5 +5,5 @@ @else @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} @endif - @{!! Form::number('{{ $fieldName }}', null, ['class' => 'form-control']) !!} + @{!! Form::number('{{ $fieldName }}', null, ['class' => 'form-control'@php if(isset($options)) { echo htmlspecialchars_decode($options); } @endphp]) !!}
\ No newline at end of file diff --git a/views/templates/fields/password.blade.php b/views/templates/fields/password.blade.php index 262fa3d..f48683d 100644 --- a/views/templates/fields/password.blade.php +++ b/views/templates/fields/password.blade.php @@ -5,5 +5,5 @@ @else @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} @endif - @{!! Form::password('{{ $fieldName }}', ['class' => 'form-control']) !!} + @{!! Form::password('{{ $fieldName }}', ['class' => 'form-control'@php if(isset($options)) { echo htmlspecialchars_decode($options); } @endphp]) !!}
\ No newline at end of file diff --git a/views/templates/fields/text.blade.php b/views/templates/fields/text.blade.php index d325d1f..2e2c2e6 100644 --- a/views/templates/fields/text.blade.php +++ b/views/templates/fields/text.blade.php @@ -5,5 +5,5 @@ @else @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} @endif - @{!! Form::text('{{ $fieldName }}', null, ['class' => 'form-control']) !!} + @{!! Form::text('{{ $fieldName }}', null, ['class' => 'form-control'@php if(isset($options)) { echo htmlspecialchars_decode($options); } @endphp]) !!}
\ No newline at end of file diff --git a/views/templates/fields/textarea.blade.php b/views/templates/fields/textarea.blade.php index 7cf11ea..7b324c0 100644 --- a/views/templates/fields/textarea.blade.php +++ b/views/templates/fields/textarea.blade.php @@ -5,5 +5,5 @@ @else @{!! Form::label('{{ $fieldName }}', '{{ $fieldTitle }}:') !!} @endif - @{!! Form::textarea('{{ $fieldName }}', null, ['class' => 'form-control']) !!} + @{!! Form::textarea('{{ $fieldName }}', null, ['class' => 'form-control'@php if(isset($options)) { echo htmlspecialchars_decode($options); } @endphp]) !!} \ No newline at end of file From 2d7d2e2e383088712d56e7623ca4db63f8be9913 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Thu, 7 Jul 2022 15:23:40 +0530 Subject: [PATCH 06/12] feat: prefix fixes --- views/templates/layouts/menu_template.blade.php | 2 +- views/templates/scaffold/create.blade.php | 6 +++--- views/templates/scaffold/edit.blade.php | 6 +++--- views/templates/scaffold/index.blade.php | 2 +- views/templates/scaffold/show.blade.php | 4 ++-- views/templates/scaffold/table/blade/body.blade.php | 6 +++--- views/templates/scaffold/table/datatable/actions.blade.php | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/views/templates/layouts/menu_template.blade.php b/views/templates/layouts/menu_template.blade.php index 6782717..7180b1a 100644 --- a/views/templates/layouts/menu_template.blade.php +++ b/views/templates/layouts/menu_template.blade.php @@ -1,5 +1,5 @@