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
6
Merge Requests
6
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
c82af127
Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
Commit
c82af127
authored
Jun 16, 2023
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '4422-don-association' into 'develop'
4422 don association See merge request cooperatic/kohinos-tav!35
parents
7c35e29b
0dac26fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
DonFormType.php
src/Form/Type/DonFormType.php
+2
-1
block_collapse_sub.html.twig
templates/themes/kohinos/block/block_collapse_sub.html.twig
+12
-0
adherent_payer_cotisation.html.twig
...mes/kohinos/tav/block/adherent_payer_cotisation.html.twig
+1
-1
adherent_payer_cotisation_don.html.twig
...kohinos/tav/block/adherent_payer_cotisation_don.html.twig
+9
-0
No files found.
src/Form/Type/DonFormType.php
View file @
c82af127
...
...
@@ -25,11 +25,12 @@ class DonFormType extends FluxFormType
])
->
add
(
'montant'
,
MoneyType
::
class
,
[
'data'
=>
0
,
'label'
=>
"Don à l'association :"
,
'label'
=>
$this
->
container
->
getParameter
(
'tav_env'
)
?
"Don à la caisse alimentaire :"
:
"Don à l'association :"
,
'required'
=>
false
,
'constraints'
=>
[
new
GreaterThanOrEqual
([
'value'
=>
0
]),
],
'attr'
=>
[
'autocomplete'
=>
'off'
]
])
->
remove
(
'save'
)
;
...
...
templates/themes/kohinos/block/block_collapse_sub.html.twig
0 → 100644
View file @
c82af127
{%
set
idcard_sub
=
idcard_sub
|
default
(
random
(
50000
))
%}
{%
set
collapse
=
collapse
is
defined
?
collapse
:
'collapse'
%}
<div
class=
""
>
<div
class=
"card-header"
onmouseover=
"$(this).addClass('border-primary');"
onmouseout=
"$(this).removeClass('border-primary');"
data-toggle=
"
{%
block
blocktoggle
%}
collapse
{%
endblock
blocktoggle
%}
"
data-target=
"#collapse
{{
idcard_sub
}}
"
aria-expanded=
"false"
aria-controls=
"collapse
{{
idcard_sub
}}
"
>
{%
block
blocktitle
%}{%
endblock
blocktitle
%}
</div>
<div
class=
"card-body
{{
collapse
}}
"
id=
"collapse
{{
idcard_sub
}}
"
>
{%
block
blocksubtitle
%}
<h4
class=
"card-title"
></h4>
{%
endblock
blocksubtitle
%}
<div
class=
"card-text"
>
{%
block
blockcontent
%}
{%
endblock
blockcontent
%}
</div>
</div>
</div>
templates/themes/kohinos/tav/block/adherent_payer_cotisation.html.twig
View file @
c82af127
...
...
@@ -15,7 +15,7 @@
</p>
{{
form_start
(
form
)
}}
{%
if
form.don
is
defined
%}
{
{
form_row
(
form.don
,
{
row_attr
:{
style
:
'max-width: 200px;margin: 0 auto;'
}}
) }
}
{
%
include
'@kohinos/tav/block/adherent_payer_cotisation_don.html.twig'
%
}
<hr/>
<p><b>
{{
'TOTAL A PAYER'
|
trans
}}
:
<span
class=
"achat_monnaie_montant_total"
>
{{
form.montant.vars.value
}}
€
</span></b></p>
{%
endif
%}
...
...
templates/themes/kohinos/tav/block/adherent_payer_cotisation_don.html.twig
0 → 100644
View file @
c82af127
{%
extends
'@kohinos/block/block_collapse_sub.html.twig'
%}
{%
block
blocktitle
%}
En plus de ma cotisation je souhaite faire un don pour ce mois
{%
endblock
blocktitle
%}
{%
block
blockcontent
%}
{{
form_row
(
form.don
,
{
row_attr
:{
style
:
'max-width: 200px;margin: 0 auto;'
}}
) }}
{%
endblock
blockcontent
%}
\ 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