Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Libriciel
web-DPO
Commits
8d1ebcdf
Commit
8d1ebcdf
authored
Aug 13, 2020
by
Théo GUILLON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout : lib francais select2
Ajout : définition language sur les champs select2
parent
d0df61ef
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
2 deletions
+10
-2
app/View/Elements/Fiches/tabs/coresponsable.ctp
app/View/Elements/Fiches/tabs/coresponsable.ctp
+1
-0
app/View/Elements/Fiches/tabs/formulaire.ctp
app/View/Elements/Fiches/tabs/formulaire.ctp
+1
-0
app/View/Elements/Fiches/tabs/soustraitance.ctp
app/View/Elements/Fiches/tabs/soustraitance.ctp
+1
-0
app/View/Elements/Formulaires/champDuFormulaire.ctp
app/View/Elements/Formulaires/champDuFormulaire.ctp
+1
-0
app/View/Layouts/default.ctp
app/View/Layouts/default.ctp
+1
-2
app/View/Users/changepassword.ctp
app/View/Users/changepassword.ctp
+2
-0
app/View/Users/edit.ctp
app/View/Users/edit.ctp
+2
-0
app/webroot/js/FormulaireGenerator/createFormulaire.js
app/webroot/js/FormulaireGenerator/createFormulaire.js
+1
-0
No files found.
app/View/Elements/Fiches/tabs/coresponsable.ctp
View file @
8d1ebcdf
...
...
@@ -88,6 +88,7 @@ if (isset($this->validationErrors['WebdpoCoresponsable']) && !empty($this->valid
$
(
document
).
ready
(
function
()
{
let
eventSelect
=
$
(
"
#coresponsables
"
);
$
(
eventSelect
).
select2
({
language
:
"
fr
"
,
width
:
'
100%
'
,
});
...
...
app/View/Elements/Fiches/tabs/formulaire.ctp
View file @
8d1ebcdf
...
...
@@ -233,6 +233,7 @@ $line = 1;
$
(
document
).
ready
(
function
()
{
$
(
'
.multiSelect
'
).
select2
({
language
:
"
fr
"
,
placeholder
:
'
Sélectionnez une ou plusieurs options
'
,
allowClear
:
true
,
width
:
'
100%
'
...
...
app/View/Elements/Fiches/tabs/soustraitance.ctp
View file @
8d1ebcdf
...
...
@@ -92,6 +92,7 @@ if (isset($this->validationErrors['WebdpoSoustraitance']) ) {
let
eventSelect
=
$
(
"
#soustraitances
"
);
$
(
eventSelect
).
select2
({
language
:
"
fr
"
,
width
:
'
100%
'
,
});
...
...
app/View/Elements/Formulaires/champDuFormulaire.ctp
View file @
8d1ebcdf
...
...
@@ -251,6 +251,7 @@ foreach ($champs as $key => $value) {
// Les "seuls" endroits du code où l'on utilise select2 semblent être les "formulaires" et les "fiches".
// Pour les autres champ de formulaire (autres que multiSelect ?) on utilise chosen.
$
(
'
.multiSelect
'
).
select2
({
language
:
"
fr
"
,
placeholder
:
'
Sélectionnez une ou plusieurs options
'
,
allowClear
:
true
,
width
:
'
100%
'
...
...
app/View/Layouts/default.ctp
View file @
8d1ebcdf
...
...
@@ -35,6 +35,7 @@
'bootstrap/dist/js/bootstrap.min.js',
'chosen/chosen.jquery.min.js',
'select2/dist/js/select2.full.min.js',
'select2/dist/js/i18n/fr.js',
'select2/dist/js/select2.min.js',
'tinymce/tinymce.js',
'tinymce/jquery.tinymce.js',
...
...
@@ -63,8 +64,6 @@
echo $this->fetch('script');
require_once APP . 'View' . DS . 'Pannel' . DS . 'notification.ctp';
// debug($this->Session->read('Droit.liste'));die;
?>
</head>
...
...
app/View/Users/changepassword.ctp
View file @
8d1ebcdf
...
...
@@ -103,11 +103,13 @@
$
(
document
).
ready
(
function
()
{
$
(
"
#deroulant
"
).
select2
({
language
:
"
fr
"
,
placeholder
:
"
Sélectionnez une ou plusieurs entitées
"
,
allowClear
:
true
});
$
(
"
#deroulantservice
"
).
select2
({
language
:
"
fr
"
,
placeholder
:
"
Sélectionnez un ou plusieurs service
"
,
allowClear
:
true
});
...
...
app/View/Users/edit.ctp
View file @
8d1ebcdf
...
...
@@ -263,6 +263,7 @@ echo $this->element('modalpassword');
$
(
document
).
ready
(
function
()
{
$
(
"
#deroulant
"
).
select2
({
language
:
"
fr
"
,
placeholder
:
"
Sélectionnez une ou plusieurs entités
"
,
allowClear
:
true
});
...
...
@@ -270,6 +271,7 @@ echo $this->element('modalpassword');
<?php
$selected
=
(
array
)
Hash
::
get
(
$this
->
request
->
data
,
'User.organisation_id'
);
?>
<?php
foreach
(
array_keys
(
$options
[
'organisation_id'
])
as
$organisation_id
)
:
?>
$
(
"
#
<?php
echo
'service_id'
.
$organisation_id
;
?>
"
).
select2
({
language
:
"
fr
"
,
placeholder
:
"
Sélectionnez un ou plusieurs service
"
,
allowClear
:
true
});
...
...
app/webroot/js/FormulaireGenerator/createFormulaire.js
View file @
8d1ebcdf
...
...
@@ -713,6 +713,7 @@ let createForm = function(typeCreateForm) {
}
$
(
'
.multiSelect
'
).
select2
({
language
:
"
fr
"
,
placeholder
:
'
Sélectionnez une ou plusieurs options
'
,
width
:
'
100%
'
,
allowClear
:
true
...
...
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