File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ class="data-synchronize-export-form"
3939 </div >
4040 @endif
4141
42+ @yield (' export_extra_filters_before' )
43+
4244 <div >
4345 @if ($exporter -> allColumnsIsDisabled () )
4446 <x-core::form .label >
@@ -80,6 +82,8 @@ class="export-column"
8082 value =" csv"
8183 >
8284 </x-core::form .radio-list >
85+
86+ @yield (' export_extra_filters_after' )
8387 @else
8488 {!! $exporter -> getEmptyStateContent () ! !}
8589 @endif
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ class="data-synchronize-import-form"
5353
5454 {!! apply_filters (' data_synchronize_import_form_before' , null , $importer ) ! !}
5555
56+ @yield (' import_extra_form_before' )
57+
5658 <div class =" mb-3" >
5759 <div class =" dropzone" >
5860 <div class =" dz-message" >
@@ -75,6 +77,8 @@ class="data-synchronize-import-form"
7577
7678 {!! apply_filters (' data_synchronize_import_form_after' , null , $importer ) ! !}
7779
80+ @yield (' import_extra_form_after' )
81+
7882 <pre class =" mt-3 data-synchronize-import-output" style =" display : none " ></pre >
7983 </x-core::card .body >
8084 <x-core::card .footer >
Original file line number Diff line number Diff line change @@ -188,11 +188,18 @@ public function render(): View
188188 {
189189 Assets::addScriptsDirectly ('vendor/core/packages/data-synchronize/js/data-synchronize.js ' );
190190
191- return view (' packages/data-synchronize::export ' , [
191+ return view ($ this -> getView () , [
192192 'exporter ' => $ this ,
193193 ]);
194194 }
195195
196+ protected function getView (): string
197+ {
198+ $ view = 'packages/data-synchronize::export ' ;
199+
200+ return apply_filters ('data_synchronize_exporter_view ' , $ view );
201+ }
202+
196203 public function export (): BinaryFileResponse
197204 {
198205 BaseHelper::maximumExecutionTimeAndMemoryLimit ();
Original file line number Diff line number Diff line change @@ -140,16 +140,18 @@ public function render(): View
140140 ->addScripts ('dropzone ' )
141141 ->addStyles ('dropzone ' );
142142
143+ return view ($ this ->getView (), ['importer ' => $ this ]);
144+ }
145+
146+ protected function getView (): string
147+ {
143148 $ view = 'packages/data-synchronize::import ' ;
144149
145150 if ($ this ->renderWithoutLayout ) {
146151 $ view = 'packages/data-synchronize::partials.importer ' ;
147152 }
148153
149- return view (
150- apply_filters ('data_synchronize_importer_view ' , $ view ),
151- ['importer ' => $ this ]
152- );
154+ return apply_filters ('data_synchronize_importer_view ' , $ view );
153155 }
154156
155157 public function headerToSnakeCase (): bool
You can’t perform that action at this time.
0 commit comments