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
55128265
Commit
55128265
authored
Mar 17, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add param so that admin can disable cotisation from adherent admin and comptoir admin
parent
4828491c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
GlobalParameter.php
src/Entity/GlobalParameter.php
+1
-1
adherent_payer_cotisation.html.twig
...mes/kohinos/tav/block/adherent_payer_cotisation.html.twig
+3
-1
comptoir_encaisser_cotisation.html.twig
...kohinos/tav/block/comptoir_encaisser_cotisation.html.twig
+3
-1
No files found.
src/Entity/GlobalParameter.php
View file @
55128265
...
...
@@ -59,7 +59,7 @@ class GlobalParameter
const
SSA_HOUSEHOLD_ALLOCATION_MSG_FOR_COMPTOIR
=
'SSA_HOUSEHOLD_ALLOCATION_MSG_FOR_COMPTOIR'
;
const
ACTIVATE_ADHERENTS_BALANCE_CEILING
=
'ACTIVATE_ADHERENTS_BALANCE_CEILING'
;
const
SSA_SIMPL_HOUSEHOLD_ADMIN_TEXT_INFO_ADHERENT_FALLBACKS_TO_PROFILECOTIS
=
'SSA_SIMPL_HOUSEHOLD_ADMIN_TEXT_INFO_ADHERENT_FALLBACKS_TO_PROFILECOTIS'
;
const
SSA_DISABLE_COTISATION
=
'SSA_DISABLE_COTISATION'
;
/**
* @var \Ramsey\Uuid\UuidInterface
*
...
...
templates/themes/kohinos/tav/block/adherent_payer_cotisation.html.twig
View file @
55128265
...
...
@@ -7,7 +7,9 @@
{%
set
form
=
getPayerCotisationTAVForm
(
app.user
)
%}
{%
set
formRecurrentPayment
=
getPaiementRecurrentCotisationTAVForm
(
app.user
)
%}
{%
if
form.montant.vars.value
==
false
and
not
household_based_allowance
%}
{%
if
KOH_SSA_DISABLE_COTISATION
==
'true'
%}
<p>
{{
'La possibilité de cotiser a été désactivée par un•e administrateur•rice.'
}}
</p>
{%
elseif
form.montant.vars.value
==
false
and
not
household_based_allowance
%}
<p>
{{
'Vous n\'avez pas de profil de cotisation associé, vous ne pouvez donc pas payer de cotisation.'
|
trans
}}
</p>
<p>
{{
'Veuillez contacter un•e administrateur•rice.'
|
trans
}}
</p>
{%
elseif
form.montant.vars.value
==
false
and
household_based_allowance
%}
...
...
templates/themes/kohinos/tav/block/comptoir_encaisser_cotisation.html.twig
View file @
55128265
...
...
@@ -4,7 +4,9 @@
<i
class=
"fa fa-exchange fa-exchange-alt mr-4"
></i>
{{
'Encaisser la COTISATION d\'un habitant'
|
trans
}}
{%
endblock
blocktitle
%}
{%
block
blockcontent
%}
{%
if
app.session.has
(
'_comptoirgere'
)
%}
{%
if
KOH_SSA_DISABLE_COTISATION
==
'true'
%}
<p>
{{
'La possibilité de cotiser a été désactivée par un•e administrateur•rice.'
}}
</p>
{%
elseif
app.session.has
(
'_comptoirgere'
)
%}
<div
id=
"formEncaisserCotisationAdherent-montant-container"
style=
"display:none"
>
<h5>
<b>
Montant de la cotisation :
<span
id=
"formEncaisserCotisationAdherent-montant-display"
></span></b></h5>
<br/>
...
...
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