|
7 | 7 | <div class="content"> |
8 | 8 | <x-core::form-errors /> |
9 | 9 |
|
10 | | - <file-manager></file-manager> |
11 | | - <file-field type="image" field="image_id" :init-file="{{ $model->image ?? 'null' }}"></file-field> |
12 | | - <file-field type="image" field="og_image_id" :init-file="{{ $model->ogImage ?? 'null' }}" label="Open Graph image"></file-field> |
13 | | - <files-field :init-files="{{ $model->files }}"></files-field> |
| 10 | + <div class="row"> |
| 11 | + <div class="col-lg-8"> |
| 12 | + <x-core::title-and-slug-fields :locales="locales()" /> |
| 13 | + <div class="mb-3"> |
| 14 | + {!! TranslatableBootForm::hidden('status')->value(0) !!} |
| 15 | + {!! TranslatableBootForm::checkbox(__('Published'), 'status') !!} |
| 16 | + {!! BootForm::hidden('registration_form')->value(0) !!} |
| 17 | + {!! BootForm::checkbox(__('Registration form'), 'registration_form') !!} |
| 18 | + </div> |
14 | 19 |
|
15 | | - <x-core::title-and-slug-fields :locales="locales()" /> |
16 | | - <div class="mb-3"> |
17 | | - {!! TranslatableBootForm::hidden('status')->value(0) !!} |
18 | | - {!! TranslatableBootForm::checkbox(__('Published'), 'status') !!} |
19 | | - {!! BootForm::hidden('registration_form')->value(0) !!} |
20 | | - {!! BootForm::checkbox(__('Registration form'), 'registration_form') !!} |
21 | | - </div> |
| 20 | + <div class="row gx-3"> |
| 21 | + <div class="col-sm-6"> |
| 22 | + {!! BootForm::date(__('Start date'), 'start_date')->value(old('start_date') ?: $model->present()->dateOrNow('start_date'))->required() !!} |
| 23 | + </div> |
| 24 | + <div class="col-sm-6"> |
| 25 | + {!! BootForm::date(__('End date'), 'end_date')->value(old('end_date') ?: $model->present()->dateOrNow('end_date'))->required() !!} |
| 26 | + </div> |
| 27 | + </div> |
22 | 28 |
|
23 | | - <div class="row gx-3"> |
24 | | - <div class="col-sm-6"> |
25 | | - {!! BootForm::date(__('Start date'), 'start_date')->value(old('start_date') ?: $model->present()->dateOrNow('start_date'))->required() !!} |
| 29 | + {!! TranslatableBootForm::text(__('Venue'), 'venue') !!} |
| 30 | + {!! TranslatableBootForm::textarea(__('Address'), 'address')->rows(3) !!} |
| 31 | + {!! TranslatableBootForm::text(__('Website'), 'website')->type('url')->placeholder('https://') !!} |
| 32 | + {!! TranslatableBootForm::textarea(__('Summary'), 'summary')->rows(4) !!} |
| 33 | + <x-core::tiptap-editors :model="$model" name="body" :label="__('Body')" /> |
26 | 34 | </div> |
27 | | - <div class="col-sm-6"> |
28 | | - {!! BootForm::date(__('End date'), 'end_date')->value(old('end_date') ?: $model->present()->dateOrNow('end_date'))->required() !!} |
| 35 | + <div class="col-lg-4"> |
| 36 | + <div class="right-column"> |
| 37 | + <file-manager></file-manager> |
| 38 | + <file-field type="image" field="image_id" :init-file="{{ $model->image ?? 'null' }}"></file-field> |
| 39 | + <file-field type="image" field="og_image_id" :init-file="{{ $model->ogImage ?? 'null' }}" label="Open Graph image"></file-field> |
| 40 | + <files-field :init-files="{{ $model->files }}"></files-field> |
| 41 | + </div> |
29 | 42 | </div> |
30 | 43 | </div> |
31 | | - |
32 | | - {!! TranslatableBootForm::text(__('Venue'), 'venue') !!} |
33 | | - {!! TranslatableBootForm::textarea(__('Address'), 'address')->rows(3) !!} |
34 | | - {!! TranslatableBootForm::text(__('Website'), 'website')->type('url')->placeholder('https://') !!} |
35 | | - {!! TranslatableBootForm::textarea(__('Summary'), 'summary')->rows(4) !!} |
36 | | - <x-core::tiptap-editors :model="$model" name="body" :label="__('Body')" /> |
37 | 44 | </div> |
0 commit comments