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
cooperatic-mlc
kohinos
Commits
05cd0b98
Commit
05cd0b98
authored
Sep 08, 2020
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin création adhérent : prenom et nom obligatoire + choix groupe
parent
bc69a8fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+9
-0
UserFormType.php
src/Form/Type/UserFormType.php
+2
-2
No files found.
src/Admin/AdherentAdmin.php
View file @
05cd0b98
...
...
@@ -150,6 +150,15 @@ class AdherentAdmin extends AbstractAdmin
'with_latlon'
=>
false
))
->
end
()
->
with
(
'Groupe'
,
[
'class'
=>
'col-md-5'
])
->
add
(
'groupe'
,
ChoiceType
::
class
,
array
(
'required'
=>
true
,
'label'
=>
'Groupe local :'
,
'choices'
=>
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getRepository
(
Groupe
::
class
)
->
findAll
(),
'choice_label'
=>
'name'
,
'placeholder'
=>
'Choisir un groupe'
,
))
->
end
()
->
end
()
;
...
...
src/Form/Type/UserFormType.php
View file @
05cd0b98
...
...
@@ -38,11 +38,11 @@ class UserFormType extends AbstractType
))
->
add
(
'firstname'
,
TextType
::
class
,
array
(
'label'
=>
'Prénom'
,
'required'
=>
fals
e
,
'required'
=>
tru
e
,
))
->
add
(
'lastname'
,
TextType
::
class
,
array
(
'label'
=>
'Nom'
,
'required'
=>
fals
e
,
'required'
=>
tru
e
,
))
->
add
(
'phone'
,
TextType
::
class
,
array
(
'label'
=>
'Téléphone fixe :'
,
...
...
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