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
38ebb1c7
Commit
38ebb1c7
authored
6 years ago
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cotisation form fix
parent
8f6b1be6
master
…
dev
update-from-kohinos-repo
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CotisationAdmin.php
src/Admin/CotisationAdmin.php
+4
-4
No files found.
src/Admin/CotisationAdmin.php
View file @
38ebb1c7
...
...
@@ -75,10 +75,12 @@ class CotisationAdmin extends AbstractAdmin
'entity_class'
=>
Siege
::
class
,
'em'
=>
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getManager
()
))
->
add
(
'cotisationInfos.annee'
,
null
,
array
(
'label'
=>
'Année'
,
'data'
=>
$now
->
format
(
'Y'
)))
->
add
(
'cotisationInfos.annee'
,
null
,
array
(
'label'
=>
'Année'
,
))
->
add
(
'montant'
,
MoneyType
::
class
,
array
(
'label'
=>
'Montant'
,
'data'
=>
floatval
(
$this
->
container
->
getParameter
(
'app.cotisation_montant'
))
'data'
=>
(
$cotisation
->
getMontant
()
!=
null
)
?
$cotisation
->
getMontant
()
:
floatval
(
$this
->
container
->
getParameter
(
'app.cotisation_montant'
))
))
->
add
(
'moyen'
,
ChoiceType
::
class
,
array
(
'required'
=>
true
,
...
...
@@ -96,14 +98,12 @@ class CotisationAdmin extends AbstractAdmin
->
with
(
'Date'
,
[
'class'
=>
'col-md-4'
])
->
add
(
'cotisationInfos.debut'
,
DateType
::
class
,
array
(
'label'
=>
'Date de début'
,
'data'
=>
new
\DateTime
(),
'widget'
=>
'single_text'
,
'html5'
=>
false
,
'attr'
=>
[
'class'
=>
'js-datepicker'
],
))
->
add
(
'cotisationInfos.fin'
,
DateType
::
class
,
array
(
'label'
=>
'Date de fin'
,
'data'
=>
new
\DateTime
(
'+ 1 year'
),
'widget'
=>
'single_text'
,
'html5'
=>
false
,
'attr'
=>
[
'class'
=>
'js-datepicker'
],
...
...
This diff is collapsed.
Click to expand it.
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