Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
agplv3
kohinos-tav
Commits
ff060adc
Commit
ff060adc
authored
Mar 28, 2025
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cotisation reminder in adherent admin page in simplified household mode
parent
0ce5691f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
21 deletions
+49
-21
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+49
-21
No files found.
src/Admin/AdherentAdmin.php
View file @
ff060adc
...
...
@@ -340,33 +340,61 @@ class AdherentAdmin extends AbstractAdmin
])
->
end
()
->
end
();
if
(
$simplified_household_based_allowance
)
{
$formMapper
->
tab
(
'General'
)
->
with
(
'Informations de cotisation'
,
[
'class'
=>
'col-md-5'
,
'description'
=>
$cotisSectionInfo
])
->
add
(
'mailRappelCotisation'
,
CheckboxType
::
class
,
[
'required'
=>
false
,
'label'
=>
'Recevoir un rappel du paiement de ma cotisation par mail'
,
'attr'
=>
[
'autocomplete'
=>
'off'
]
])
->
add
(
'jourMailRappelCotisation'
,
ChoiceType
::
class
,
[
'required'
=>
false
,
'label'
=>
'Jour de l\'envoi du mail de rappel :'
,
'choices'
=>
$this
->
daysOfMonth
(),
'empty_data'
=>
null
,
'placeholder'
=>
'Choisir un jour pour l\'envoi du mail de rappel'
,
'attr'
=>
[
'autocomplete'
=>
'off'
]
])
->
end
()
->
end
();
}
}
else
{
// For Comptoir role in edit mode, hide profile choice
$displayProfilChoice
=
!
(
$isComptoirOnly
&&
$this
->
isCurrentRoute
(
'edit'
));
if
(
$displayProfilChoice
)
{
$formMapper
->
tab
(
'General'
)
->
with
(
'Informations de cotisation'
,
[
'class'
=>
'col-md-5'
])
->
add
(
'profilDeCotisation'
,
ChoiceType
::
class
,
[
'required'
=>
true
,
'label'
=>
'Choix du profil de cotisation :'
,
'choices'
=>
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getRepository
(
ProfilDeCotisation
::
class
)
->
findBy
([],
[
'montant'
=>
'ASC'
]),
'empty_data'
=>
null
,
'placeholder'
=>
'Choisir un profil'
,
'choice_label'
=>
function
(
$choice
,
$key
,
$value
)
{
if
(
null
===
$choice
)
{
return
''
;
}
return
$choice
->
__toString
();
},
'attr'
=>
[
'autocomplete'
=>
'off'
]
])
->
end
()
->
end
();
->
tab
(
'General'
)
->
with
(
'Informations de cotisation'
,
[
'class'
=>
'col-md-5'
])
->
add
(
'profilDeCotisation'
,
ChoiceType
::
class
,
[
'required'
=>
true
,
'label'
=>
'Choix du profil de cotisation :'
,
'choices'
=>
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getRepository
(
ProfilDeCotisation
::
class
)
->
findBy
([],
[
'montant'
=>
'ASC'
]),
'empty_data'
=>
null
,
'placeholder'
=>
'Choisir un profil'
,
'choice_label'
=>
function
(
$choice
,
$key
,
$value
)
{
if
(
null
===
$choice
)
{
return
''
;
}
return
$choice
->
__toString
();
},
'attr'
=>
[
'autocomplete'
=>
'off'
]
])
->
end
()
->
end
();
}
$formMapper
...
...
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