Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SUD Éducation
Cartable
Commits
54b56c9f
Commit
54b56c9f
authored
3 years ago
by
Bastien Ho
Browse files
Options
Download
Email Patches
Plain Diff
Manage conditional available values
parent
2475a795
main
102-summer-break
104-syndicate-contribution-page
111-styler-le-bloc-membership-to-complete
114-undefined-array-key-1
115-contribution-template
117-wall-test
118-mise-a-jour-de-l-etat-d-adhesion-dans-un-sepa
119-nombre-de-contribution-periodique-se-concatene-a-chaque-ouverture-de-fenetre
120-etiquettes-postales-ajouter-le-nom-de-l-etablissement-dans-l-adresse-work
125-test-SEPA
126-more-CB-tests
126-test-cb
129-nouvelle-civirule-pour-garantir-une-relation-membre-de
130-enddate
141-SP-Rest
145-fix-frequency-front
146-fine-vads-desc
147-no-sepa-prorata
151-readable-membership-amount
164-civirule-alerte-si-une-personne-est-en-relation-adhesion-avec-deux-syndicats
172-fix-le-search-recherche-des-paiements-recap-annee-le-renommer-par-periode-et-non-annee
178-notifications-de-paiement-mensuel-ne-pas-mettre-le-syndicat-en-cc
93-script-for-replation
99-membership-ratio-general-non-pris-en-compte
More-Tests
civicrm-5.69
civix-23
filter-cases
fix-address-work-match
fix-sepa-restrict
show-test-scenarios
stable
staging
traduction
v1.10.11
v2.10-fixes
2.15.0
2.14.0
2.13.0
2.12.0
2.11.1
2.11.0
2.10.0
2.9.1
2.9.0
2.8.1
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.10
1.9.1
1.9
1.8.5
1.8.5-beta3
1.8.4
1.8.3
1.8.2
1.8.1
1.8
1.7.1
1.7
1.6.1
1.6
1.5
1.4
1.3
1.2
1.1
1.0.2
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cartable.php
+3
-2
cartable.php
src/js/donnees-particulier.js
+13
-0
src/js/donnees-particulier.js
with
16 additions
and
2 deletions
+16
-2
cartable.php
+
3
-
2
View file @
54b56c9f
...
...
@@ -259,11 +259,12 @@ function cartable_get_donnees_particuliers_vars(){
$DisciplineField
=>
[
// Corps
$CorpsField
=>
[
'Certifié·e'
=>
[],
'Certifié·e'
=>
cartable_get_values
(
'disciplines-fonctionnaires'
),
'Agrégé·e'
=>
cartable_get_values
(
'disciplines-fonctionnaires'
),
],
// Type de post
$TypeDePosteField
=>
[
'Enseignant·e'
=>
cartable_get_values
(
'disciplines-non-titulaires'
),
],
],
],
...
...
This diff is collapsed.
Click to expand it.
src/js/donnees-particulier.js
+
13
-
0
View file @
54b56c9f
...
...
@@ -20,6 +20,19 @@ const cartable_toggle_field_if_value = function(target_id){
target_field_wrapper
.
hide
();
target_field
.
val
(
''
).
trigger
(
'
change
'
);
}
if
(
typeof
cartable
.
DonneesParticuliers
.
filter_options
[
target_id
]
!==
'
undefined
'
){
var
src_fields
=
cartable
.
DonneesParticuliers
.
filter_options
[
target_id
];
var
available_values
=
[];
for
(
var
src_id
in
src_fields
){
var
src_field
=
CRM
.
$
(
'
[data-api-field=
'
+
src_id
+
'
]
'
);
if
(
typeof
src_fields
[
src_id
][
src_field
.
val
()]
!==
undefined
){
for
(
v
in
src_fields
[
src_id
][
src_field
.
val
()]){
available_values
.
push
(
'
<option value="
'
+
v
+
'
">
'
+
v
+
'
»
'
+
src_fields
[
src_id
][
src_field
.
val
()][
v
]
+
'
</option>
'
);
}
}
}
target_field
.
html
(
available_values
);
}
};
const
cartable_check_toggle_field
=
function
(){
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets