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
c23bfbe5
Commit
c23bfbe5
authored
Nov 17, 2022
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework two previous commits so that changes are applied only for tav instance
parent
05609179
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
UserInfosFormType.php
src/Form/Type/UserInfosFormType.php
+5
-3
admin_adherent.html.twig
templates/themes/kohinos/block/admin_adherent.html.twig
+9
-0
No files found.
src/Form/Type/UserInfosFormType.php
View file @
c23bfbe5
...
...
@@ -16,11 +16,13 @@ class UserInfosFormType extends AbstractType
{
protected
$em
;
protected
$security
;
protected
$container
;
public
function
__construct
(
EntityManagerInterface
$em
,
Security
$security
)
public
function
__construct
(
EntityManagerInterface
$em
,
Security
$security
,
ContainerInterface
$container
)
{
$this
->
em
=
$em
;
$this
->
security
=
$security
;
$this
->
container
=
$container
;
}
public
function
buildForm
(
FormBuilderInterface
$builder
,
array
$options
)
...
...
@@ -30,12 +32,12 @@ class UserInfosFormType extends AbstractType
->
add
(
'firstname'
,
TextType
::
class
,
[
'label'
=>
'Prénom'
,
'required'
=>
false
,
'disabled'
=>
$this
->
security
->
isGranted
(
'ROLE_ADHERENT'
),
'disabled'
=>
$this
->
container
->
getParameter
(
'tav_env'
)
&&
$this
->
security
->
isGranted
(
'ROLE_ADHERENT'
),
])
->
add
(
'lastname'
,
TextType
::
class
,
[
'label'
=>
'Nom'
,
'required'
=>
false
,
'disabled'
=>
$this
->
security
->
isGranted
(
'ROLE_ADHERENT'
),
'disabled'
=>
$this
->
container
->
getParameter
(
'tav_env'
)
&&
$this
->
security
->
isGranted
(
'ROLE_ADHERENT'
),
])
->
add
(
'email'
,
EmailType
::
class
,
[
'label'
=>
'Courriel'
,
...
...
templates/themes/kohinos/block/admin_adherent.html.twig
View file @
c23bfbe5
...
...
@@ -9,8 +9,16 @@
{%
else
%}
{%
include
'@kohinos/adherent/block/demande_achat_monnaie.html.twig'
%}
{%
endif
%}
{%
if
not
tav_env
%}
{%
include
'@kohinos/adherent/block/transaction_presta.html.twig'
%}
{%
include
'@kohinos/adherent/block/transaction_adherent.html.twig'
%}
{%
endif
%}
{#
{
% include '@kohinos/block/transactions.html.twig' %} #}
{%
include
'@kohinos/block/operations.html.twig'
%}
{%
if
not
tav_env
%}
{%
include
'@kohinos/block/cotisations.html.twig'
%}
{%
include
'@kohinos/adherent/block/infos.html.twig'
%}
{%
endif
%}
{%
if
KOH_USE_SOLIDOUME
|
default
(
'false'
)
==
'true'
and
getSolidoumeParam
(
'name'
)
|
default
(
''
)
is
not
null
%}
{%
include
'@kohinos/adherent/block/solidoume.html.twig'
%}
{%
endif
%}
\ No newline at end of file
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