Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libriciel
web-DPO
Commits
10fadb03
Commit
10fadb03
authored
Aug 11, 2020
by
Théo GUILLON
Browse files
Ajout : sous titre pour le registre en fonction du filtre
parent
eb2b151c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Controller/RegistresController.php
View file @
10fadb03
...
...
@@ -277,6 +277,12 @@ class RegistresController extends AppController {
// Filtre sur le type de registre
if
(
!
empty
(
$this
->
request
->
data
[
'Registre'
][
'typeRegistre'
])
&&
$this
->
request
->
data
[
'Registre'
][
'typeRegistre'
]
!==
'null'
)
{
$condition
[
'Fiche.rt_externe'
]
=
$this
->
request
->
data
[
'Registre'
][
'typeRegistre'
];
if
(
$this
->
request
->
data
[
'Registre'
][
'typeRegistre'
]
===
'true'
)
{
$this
->
set
(
'title'
,
__d
(
'registre'
,
'registre.titreRegistreSoustraitance'
)
.
$this
->
Session
->
read
(
'Organisation.raisonsociale'
));
}
else
{
$this
->
set
(
'title'
,
__d
(
'registre'
,
'registre.titreRegistreActivite'
)
.
$this
->
Session
->
read
(
'Organisation.raisonsociale'
));
}
}
}
...
...
app/Locale/fra/LC_MESSAGES/registre.po
View file @
10fadb03
...
...
@@ -18,6 +18,12 @@ msgstr ""
msgid "registre.titreRegistre"
msgstr "Registre : "
msgid "registre.titreRegistreActivite"
msgstr "Registre d'activité : "
msgid "registre.titreRegistreSoustraitance"
msgstr "Registre de sous-traitance : "
###################### Session->setFlash ######################
msgid "registre.flasherrorAucunTraitementSelectionner"
...
...
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