Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
9d04b161
Commit
9d04b161
authored
May 18, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
novalidate, désactive les vérifs html pendant le dev
parent
ed1b446b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/TechnoBundle/Form/Owner/OwnerType.php
src/TechnoBundle/Form/Owner/OwnerType.php
+5
-2
No files found.
src/TechnoBundle/Form/Owner/OwnerType.php
View file @
9d04b161
...
...
@@ -10,7 +10,6 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\OptionsResolver\OptionsResolver
;
use
TechnoBundle\Entity\Owner
;
//use TechnoBundle\Entity\Image;
class
OwnerType
extends
AbstractType
{
...
...
@@ -48,7 +47,11 @@ class OwnerType extends AbstractType
parent
::
configureOptions
(
$resolver
);
$resolver
->
setDefault
(
'data_class'
,
Owner
::
class
);
$resolver
->
setDefault
(
'novalidate'
,
true
);
// ok, on met ça en développement, le temps de régler
// les validations au niveau des Asserts, des FormType,
// qd c'est réglé, on vire cette option !!! (false)
$resolver
->
setDefault
(
'attr'
,
array
(
'novalidate'
=>
true
));
}
...
...
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