|
45 | 45 | <div class="content"> |
46 | 46 | <x-core::form-errors /> |
47 | 47 |
|
48 | | - <file-manager></file-manager> |
49 | | - <file-field type="image" field="image_id" :init-file="{{ $model->image ?? 'null' }}"></file-field> |
50 | | - <file-field type="image" field="og_image_id" :init-file="{{ $model->ogImage ?? 'null' }}" label="Open Graph image"></file-field> |
51 | | - <files-field :init-files="{{ $model->files }}"></files-field> |
| 48 | + <div class="row"> |
| 49 | + <div class="col-lg-8"> |
| 50 | + <x-core::title-and-slug-fields :locales="locales()" /> |
| 51 | + <div class="mb-3"> |
| 52 | + {!! TranslatableBootForm::hidden('status')->value(0) !!} |
| 53 | + {!! TranslatableBootForm::checkbox(__('Published'), 'status') !!} |
| 54 | + </div> |
52 | 55 |
|
53 | | - <x-core::title-and-slug-fields :locales="locales()" /> |
54 | | - <div class="mb-3"> |
55 | | - {!! TranslatableBootForm::hidden('status')->value(0) !!} |
56 | | - {!! TranslatableBootForm::checkbox(__('Published'), 'status') !!} |
57 | | - </div> |
| 56 | + <div class="row gx-3"> |
| 57 | + <div class="col-sm-6"> |
| 58 | + {!! BootForm::email(__('Email'), 'email')->autocomplete('off') !!} |
| 59 | + </div> |
| 60 | + <div class="col-sm-6"> |
| 61 | + {!! BootForm::text(__('Website'), 'website')->placeholder('https://') !!} |
| 62 | + </div> |
| 63 | + </div> |
58 | 64 |
|
59 | | - <div class="row gx-3"> |
60 | | - <div class="col-sm-6"> |
61 | | - {!! BootForm::email(__('Email'), 'email')->autocomplete('off') !!} |
62 | | - </div> |
63 | | - <div class="col-sm-6"> |
64 | | - {!! BootForm::text(__('Website'), 'website')->placeholder('https://') !!} |
65 | | - </div> |
66 | | - </div> |
| 65 | + <div class="row gx-3"> |
| 66 | + <div class="col-sm-6"> |
| 67 | + {!! BootForm::text(__('Phone'), 'phone')->autocomplete('off') !!} |
| 68 | + </div> |
| 69 | + </div> |
67 | 70 |
|
68 | | - <div class="row gx-3"> |
69 | | - <div class="col-sm-6"> |
70 | | - {!! BootForm::text(__('Phone'), 'phone')->autocomplete('off') !!} |
71 | | - </div> |
72 | | - </div> |
| 71 | + {!! BootForm::textarea(__('Address'), 'address')->rows(4)->autocomplete('off') !!} |
73 | 72 |
|
74 | | - {!! BootForm::textarea(__('Address'), 'address')->rows(4)->autocomplete('off') !!} |
| 73 | + <div class="row gx-3"> |
| 74 | + <div class="col-md-5"> |
| 75 | + {!! BootForm::text(__('Latitude'), 'latitude') !!} |
| 76 | + </div> |
| 77 | + <div class="col-md-5"> |
| 78 | + {!! BootForm::text(__('Longitude'), 'longitude') !!} |
| 79 | + </div> |
| 80 | + <div class="col-md-2"> |
| 81 | + <div class="mb-3"> |
| 82 | + <label class="form-label" for="geocode-button"> </label> |
| 83 | + <p class="mb-0"> |
| 84 | + <button class="btn btn-secondary w-100" id="geocode-button" type="button">Chercher</button> |
| 85 | + </p> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
75 | 89 |
|
76 | | - <div class="row gx-3"> |
77 | | - <div class="col-md-5"> |
78 | | - {!! BootForm::text(__('Latitude'), 'latitude') !!} |
| 90 | + {!! TranslatableBootForm::textarea(__('Summary'), 'summary')->rows(4) !!} |
| 91 | + <x-core::tiptap-editors :model="$model" name="body" :label="__('Body')" /> |
79 | 92 | </div> |
80 | | - <div class="col-md-5"> |
81 | | - {!! BootForm::text(__('Longitude'), 'longitude') !!} |
82 | | - </div> |
83 | | - <div class="col-md-2"> |
84 | | - <div class="mb-3"> |
85 | | - <label class="form-label" for="geocode-button"> </label> |
86 | | - <p class="mb-0"> |
87 | | - <button class="btn btn-secondary w-100" id="geocode-button" type="button">Chercher</button> |
88 | | - </p> |
| 93 | + <div class="col-lg-4"> |
| 94 | + <div class="right-column"> |
| 95 | + <file-manager></file-manager> |
| 96 | + <file-field type="image" field="image_id" :init-file="{{ $model->image ?? 'null' }}"></file-field> |
| 97 | + <file-field type="image" field="og_image_id" :init-file="{{ $model->ogImage ?? 'null' }}" label="Open Graph image"></file-field> |
| 98 | + <files-field :init-files="{{ $model->files }}"></files-field> |
89 | 99 | </div> |
90 | 100 | </div> |
91 | 101 | </div> |
92 | | - |
93 | | - {!! TranslatableBootForm::textarea(__('Summary'), 'summary')->rows(4) !!} |
94 | | - <x-core::tiptap-editors :model="$model" name="body" :label="__('Body')" /> |
95 | 102 | </div> |
0 commit comments