Skip to content

Commit dea14ab

Browse files
add manual location section to map point view (#161)
1 parent c603991 commit dea14ab

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

app/Filament/Resources/PointResource/Pages/ViewMapPoint.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ public function infolist(Infolist $infolist): Infolist
159159

160160
Textarea::make('notes')
161161
->label(__('map_points.fields.notes')),
162+
\Filament\Forms\Components\Section::make(__('map_points.fields.manual_location'))
163+
->collapsed()
164+
->schema([
165+
TextInput::make('address')
166+
->label(__('map_points.fields.address')),
167+
TextInput::make('location.lat')
168+
->label(__('map_points.fields.latitude')),
169+
TextInput::make('location.lng')
170+
->label(__('map_points.fields.longitude')),
171+
]),
162172
])
163173
->fillForm([
164174
'location' => [

lang/ro/map_points.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
],
6565
'fields' => [
66+
'manual_location'=> 'Seteaza manual locatia',
6667
'address' => 'Adresǎ',
6768
'coordinate' => 'Coordonate',
6869
'notes' => 'Notițe localizare (private)',

0 commit comments

Comments
 (0)