diff --git a/components/school.riot b/components/school.riot index a647513..61ee3b2 100644 --- a/components/school.riot +++ b/components/school.riot @@ -21,11 +21,11 @@ - {etablissement.g_ea_lib_vx} - {etablissement.ville_etab} - {etablissement.dep} - {etablissement.list_com} - {etablissement.taux_acces_ens} + {etablissement.fields.g_ea_lib_vx} + {etablissement.fields.ville_etab} + {etablissement.fields.dep} + {etablissement.fields.list_com} + {etablissement.fields.taux_acces_ens} diff --git a/javascript/school.js b/javascript/school.js index 98afd3d..57b8f9c 100644 --- a/javascript/school.js +++ b/javascript/school.js @@ -62,53 +62,53 @@ var school = { } }; }, - template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
', [{ + template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
', [{ type: bindingTypes.EACH, getKey: null, condition: null, - template: template(' ', [{ - redundantAttribute: 'expr103', - selector: '[expr103]', + template: template(' ', [{ + redundantAttribute: 'expr109', + selector: '[expr109]', expressions: [{ type: expressionTypes.TEXT, childNodeIndex: 0, - evaluate: _scope => _scope.etablissement.g_ea_lib_vx + evaluate: _scope => _scope.etablissement.fields.g_ea_lib_vx }] }, { - redundantAttribute: 'expr104', - selector: '[expr104]', + redundantAttribute: 'expr110', + selector: '[expr110]', expressions: [{ type: expressionTypes.TEXT, childNodeIndex: 0, - evaluate: _scope => _scope.etablissement.ville_etab + evaluate: _scope => _scope.etablissement.fields.ville_etab }] }, { - redundantAttribute: 'expr105', - selector: '[expr105]', + redundantAttribute: 'expr111', + selector: '[expr111]', expressions: [{ type: expressionTypes.TEXT, childNodeIndex: 0, - evaluate: _scope => _scope.etablissement.dep + evaluate: _scope => _scope.etablissement.fields.dep }] }, { - redundantAttribute: 'expr106', - selector: '[expr106]', + redundantAttribute: 'expr112', + selector: '[expr112]', expressions: [{ type: expressionTypes.TEXT, childNodeIndex: 0, - evaluate: _scope => _scope.etablissement.list_com + evaluate: _scope => _scope.etablissement.fields.list_com }] }, { - redundantAttribute: 'expr107', - selector: '[expr107]', + redundantAttribute: 'expr113', + selector: '[expr113]', expressions: [{ type: expressionTypes.TEXT, childNodeIndex: 0, - evaluate: _scope => _scope.etablissement.taux_acces_ens + evaluate: _scope => _scope.etablissement.fields.taux_acces_ens }] }]), - redundantAttribute: 'expr102', - selector: '[expr102]', + redundantAttribute: 'expr108', + selector: '[expr108]', itemName: 'etablissement', indexName: null, evaluate: _scope => _scope.state.items