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
72ab85f8
Commit
72ab85f8
authored
Aug 04, 2020
by
Théo GUILLON
Browse files
Correction : fonctionnement filtre sur le siret et le code APE
Ajout : mask sur le champ APE
parent
3d7973da
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Controller/SoustraitantsController.php
View file @
72ab85f8
...
@@ -87,9 +87,9 @@ class SoustraitantsController extends AppController {
...
@@ -87,9 +87,9 @@ class SoustraitantsController extends AppController {
// Filtrer par raison sociale (du sous-traitant)
// Filtrer par raison sociale (du sous-traitant)
'Filtre.raisonsociale'
=>
'Soustraitant.raisonsocialestructure'
,
'Filtre.raisonsociale'
=>
'Soustraitant.raisonsocialestructure'
,
// Filtrer par numéro SIRET (du sous-traitant)
// Filtrer par numéro SIRET (du sous-traitant)
'Filtre.siret'
=>
'Soustraitant.siret'
,
'Filtre.siret'
=>
'Soustraitant.siret
structure
'
,
// Filtrer par code APE (du sous-traitant)
// Filtrer par code APE (du sous-traitant)
'Filtre.ape'
=>
'Soustraitant.ape'
,
'Filtre.ape'
=>
'Soustraitant.ape
structure
'
,
];
];
foreach
(
$filters
as
$filter
=>
$path
)
{
foreach
(
$filters
as
$filter
=>
$path
)
{
$value
=
(
string
)
Hash
::
get
(
$this
->
request
->
data
,
$filter
);
$value
=
(
string
)
Hash
::
get
(
$this
->
request
->
data
,
$filter
);
...
...
app/View/Elements/Responsables_Soustraitants/fields.ctp
View file @
72ab85f8
...
@@ -87,6 +87,7 @@ $titleAssociation = isset($titleAssociation) === true ? $titleAssociation : '';
...
@@ -87,6 +87,7 @@ $titleAssociation = isset($titleAssociation) === true ? $titleAssociation : '';
'label'
=>
[
'label'
=>
[
'text'
=>
__d
(
'responsable_soustraitant'
,
'responsable_soustraitant.champApestructure'
)
'text'
=>
__d
(
'responsable_soustraitant'
,
'responsable_soustraitant.champApestructure'
)
],
],
'class'
=>
'form-control maskApe'
,
'placeholder'
=>
__d
(
'responsable_soustraitant'
,
'responsable_soustraitant.placeholderChampApestructure'
),
'placeholder'
=>
__d
(
'responsable_soustraitant'
,
'responsable_soustraitant.placeholderChampApestructure'
),
'readonly'
=>
$readonly
'readonly'
=>
$readonly
]
]
...
...
app/webroot/js/responsables_soustraitants.js
View file @
72ab85f8
...
@@ -10,6 +10,10 @@ $(document).ready(function () {
...
@@ -10,6 +10,10 @@ $(document).ready(function () {
placeholder
:
'
___ ___ ___ _____
'
placeholder
:
'
___ ___ ___ _____
'
});
});
$
(
'
.maskApe
'
).
mask
(
"
AAAAA
"
,
{
placeholder
:
"
_____
"
});
$
(
'
#nomresponsable, #nom_dpo
'
).
keyup
(
function
()
{
$
(
'
#nomresponsable, #nom_dpo
'
).
keyup
(
function
()
{
var
value
=
$
(
this
).
val
().
toUpperCase
();
var
value
=
$
(
this
).
val
().
toUpperCase
();
$
(
this
).
val
(
value
);
$
(
this
).
val
(
value
);
...
...
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