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
16872361
Commit
16872361
authored
Dec 13, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show added
parent
8e14715a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+14
-0
No files found.
src/Admin/AdherentAdmin.php
View file @
16872361
...
...
@@ -26,6 +26,7 @@ use Sonata\AdminBundle\Datagrid\ListMapper;
use
Sonata\AdminBundle\Datagrid\ProxyQueryInterface
;
use
Sonata\AdminBundle\Form\FormMapper
;
use
Sonata\AdminBundle\Route\RouteCollection
;
use
Sonata\AdminBundle\Show\ShowMapper
;
use
Sonata\DoctrineORMAdminBundle\Datagrid\OrderByToSelectWalker
;
use
Sonata\DoctrineORMAdminBundle\Filter\CallbackFilter
;
use
Sonata\Form\Type\DateTimeRangePickerType
;
...
...
@@ -118,6 +119,19 @@ class AdherentAdmin extends AbstractAdmin
]);
}
protected
function
configureShowFields
(
ShowMapper
$showMapper
)
:
void
{
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'tav_env'
))
{
$adherent
=
$this
->
getSubject
();
$balance
=
$adherent
->
getEmlcAccount
()
->
getBalance
();
$showMapper
->
with
(
'Solde'
,
[
'class'
=>
'col-md-12'
])
->
add
(
'Solde : '
.
$balance
,
TextType
::
class
)
->
end
()
;
}
}
/**
* {@inheritdoc}
*/
...
...
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