Commit b5517a5a by Julien Jorry

Fix installation bug on coordinates

parent 99a14915
...@@ -124,7 +124,7 @@ class GlobalConfigurationFormType extends AbstractType ...@@ -124,7 +124,7 @@ class GlobalConfigurationFormType extends AbstractType
'required' => true, 'required' => true,
'_placeholder' => '[45.7,3.2]', '_placeholder' => '[45.7,3.2]',
'constraints_param' => [ 'constraints_param' => [
new RegexConstraint(['pattern' => '/^\[[0-9]+\.[0-9]+,[0-9]+\.[0-9]+\]/', 'message' => 'Coordonnées invalide, format attendu : [45.7,3.2]']), new RegexConstraint(['pattern' => '/^\[-?[0-9]+\.[0-9]+,-?[0-9]+\.[0-9]+\]/', 'message' => 'Coordonnées invalide, format attendu : [45.7,3.2]']),
], ],
'help_html' => true, 'help_html' => true,
'help' => "Pour déterminer le centre et zoom de la carte <a target='_blank' rel='noopener noreferrer' href='https://www.openstreetmap.org/'>Ouvrir OpenStreetMap</a><br/> 'help' => "Pour déterminer le centre et zoom de la carte <a target='_blank' rel='noopener noreferrer' href='https://www.openstreetmap.org/'>Ouvrir OpenStreetMap</a><br/>
......
...@@ -65,6 +65,6 @@ class GlobalParameterType extends AbstractType ...@@ -65,6 +65,6 @@ class GlobalParameterType extends AbstractType
public function getBlockPrefix() public function getBlockPrefix()
{ {
return 'formSiege'; return 'formGlobalParameter';
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment