Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monnaies-locales
kohinos
Commits
bd577250
Commit
bd577250
authored
Jan 25, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
11aacccf
140b7937
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
VERSION
VERSION
+1
-1
GeolocFormType.php
src/Form/Type/GeolocFormType.php
+7
-4
No files found.
VERSION
View file @
bd577250
1.1.
6
1.1.
7
src/Form/Type/GeolocFormType.php
View file @
bd577250
...
@@ -24,6 +24,7 @@ namespace App\Form\Type;
...
@@ -24,6 +24,7 @@ namespace App\Form\Type;
use
App\Entity\Geoloc
;
use
App\Entity\Geoloc
;
use
Symfony\Component\Form\AbstractType
;
use
Symfony\Component\Form\AbstractType
;
use
Symfony\Component\Form\Extension\Core\Type\TextType
;
use
Symfony\Component\Form\Extension\Core\Type\TextType
;
use
Symfony\Component\Form\Extension\Core\Type\NumberType
;
use
Symfony\Component\Form\Extension\Core\Type\ButtonType
;
use
Symfony\Component\Form\Extension\Core\Type\ButtonType
;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\Form\FormEvent
;
use
Symfony\Component\Form\FormEvent
;
...
@@ -70,13 +71,15 @@ class GeolocFormType extends AbstractType
...
@@ -70,13 +71,15 @@ class GeolocFormType extends AbstractType
}
}
if
(
$options
[
'with_latlon'
]
===
true
||
(
!
empty
(
$geoloc
)
&&
(
!
empty
(
$geoloc
->
getLat
())
||
!
empty
(
$geoloc
->
getLon
()))))
{
if
(
$options
[
'with_latlon'
]
===
true
||
(
!
empty
(
$geoloc
)
&&
(
!
empty
(
$geoloc
->
getLat
())
||
!
empty
(
$geoloc
->
getLon
()))))
{
$builder
$builder
->
add
(
'lat'
,
null
,
array
(
->
add
(
'lat'
,
NumberType
::
class
,
array
(
'label'
=>
'Latitude :'
,
'label'
=>
'Latitude :'
,
'required'
=>
false
'required'
=>
false
,
'scale'
=>
8
))
))
->
add
(
'lon'
,
null
,
array
(
->
add
(
'lon'
,
NumberType
::
class
,
array
(
'label'
=>
'Longitude :'
,
'label'
=>
'Longitude :'
,
'required'
=>
false
'required'
=>
false
,
'scale'
=>
8
))
))
;
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment