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
22a234c3
Commit
22a234c3
authored
May 03, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccas: add field prestataire ok for ccas
parent
6f067521
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
Prestataire.php
src/Entity/Prestataire.php
+17
-0
PrestataireInfosFormType.php
src/Form/Type/PrestataireInfosFormType.php
+8
-0
Version20240503094014.php
src/Migrations/Version20240503094014.php
+31
-0
infos.html.twig
templates/themes/kohinos/presta/block/infos.html.twig
+6
-0
No files found.
src/Entity/Prestataire.php
View file @
22a234c3
...
...
@@ -378,6 +378,11 @@ class Prestataire extends AccountableObject implements AccountableInterface
*/
protected
$conventionnement
;
/**
* @ORM\Column(type="boolean", options={"default": false})
*/
private
$ccasOk
;
public
function
__construct
()
{
...
...
@@ -1284,4 +1289,16 @@ class Prestataire extends AccountableObject implements AccountableInterface
return
$this
;
}
public
function
getCcasOk
()
:
?
bool
{
return
$this
->
ccasOk
;
}
public
function
setCcasOk
(
bool
$ccasOk
)
:
self
{
$this
->
ccasOk
=
$ccasOk
;
return
$this
;
}
}
src/Form/Type/PrestataireInfosFormType.php
View file @
22a234c3
...
...
@@ -157,6 +157,14 @@ class PrestataireInfosFormType extends AbstractType
])
->
add
(
'save'
,
SubmitType
::
class
,
[
'label'
=>
'Valider les modifications'
])
;
if
(
$this
->
container
->
getParameter
(
'tav_env'
)
&&
$this
->
container
->
getParameter
(
'ccas_mode'
))
{
$builder
->
add
(
'ccasOk'
,
CheckboxType
::
class
,
[
'label'
=>
'D\'accord pour la procédure des aides facultatives CCAS'
,
'required'
=>
false
,
]);
}
}
public
function
configureOptions
(
OptionsResolver
$resolver
)
...
...
src/Migrations/Version20240503094014.php
0 → 100644
View file @
22a234c3
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final
class
Version20240503094014
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
''
;
}
public
function
up
(
Schema
$schema
)
:
void
{
// this up() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire ADD ccas_ok TINYINT(1) DEFAULT \'0\' NOT NULL'
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire DROP ccas_ok'
);
}
}
templates/themes/kohinos/presta/block/infos.html.twig
View file @
22a234c3
...
...
@@ -96,6 +96,11 @@
<hr/>
{%
endif
%}
{{
form_row
(
form.acceptemlc
)
}}
{%
if
form.ccasOk
is
defined
%}
{{
form_row
(
form.ccasOk
)
}}
{%
endif
%}
{{
form_row
(
form.save
)
}}
{{
form_end
(
form
)
}}
{%
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