liste etablissement remplie avec moyenne

This commit is contained in:
Haïssous Kayyissa 2023-03-28 16:59:05 +02:00
parent 5ed4cf2001
commit 581383ac2a
2 changed files with 24 additions and 24 deletions

View File

@ -21,11 +21,11 @@
</thead> </thead>
<tbody> <tbody>
<tr each={etablissement in this.state.items}> <tr each={etablissement in this.state.items}>
<td>{etablissement.g_ea_lib_vx}</td> <td>{etablissement.fields.g_ea_lib_vx}</td>
<td>{etablissement.ville_etab}</td> <td>{etablissement.fields.ville_etab}</td>
<td>{etablissement.dep}</td> <td>{etablissement.fields.dep}</td>
<td>{etablissement.list_com}</td> <td>{etablissement.fields.list_com}</td>
<td>{etablissement.taux_acces_ens}</td> <td>{etablissement.fields.taux_acces_ens}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -62,53 +62,53 @@ var school = {
} }
}; };
}, },
template: (template, expressionTypes, bindingTypes, getComponent) => template('<main class="container"><div class="block control has-icons-left is-inline-block is-pulled-right"><input class="input" type="search" placeholder="Établissement"/><span class="icon is-small is-left"><i class="fas fa-search"></i></span></div><table class="table is-fullwidth is-hoverable"><thead><tr><th><abbr title="name">Nom</abbr></th><th><abbr title="city">Ville</abbr></th><th><abbr title="dept">Dpt</abbr></th><th><abbr title="moyenne">Moyenne</abbr></th><th><abbr title="selectivite">Sélectivité</abbr></th></tr></thead><tbody><tr expr102="expr102"></tr></tbody></table></main>', [{ template: (template, expressionTypes, bindingTypes, getComponent) => template('<main class="container"><div class="block control has-icons-left is-inline-block is-pulled-right"><input class="input" type="search" placeholder="Établissement"/><span class="icon is-small is-left"><i class="fas fa-search"></i></span></div><table class="table is-fullwidth is-hoverable"><thead><tr><th><abbr title="name">Nom</abbr></th><th><abbr title="city">Ville</abbr></th><th><abbr title="dept">Dpt</abbr></th><th><abbr title="moyenne">Moyenne</abbr></th><th><abbr title="selectivite">Sélectivité</abbr></th></tr></thead><tbody><tr expr108="expr108"></tr></tbody></table></main>', [{
type: bindingTypes.EACH, type: bindingTypes.EACH,
getKey: null, getKey: null,
condition: null, condition: null,
template: template('<td expr103="expr103"> </td><td expr104="expr104"> </td><td expr105="expr105"> </td><td expr106="expr106"> </td><td expr107="expr107"> </td>', [{ template: template('<td expr109="expr109"> </td><td expr110="expr110"> </td><td expr111="expr111"> </td><td expr112="expr112"> </td><td expr113="expr113"> </td>', [{
redundantAttribute: 'expr103', redundantAttribute: 'expr109',
selector: '[expr103]', selector: '[expr109]',
expressions: [{ expressions: [{
type: expressionTypes.TEXT, type: expressionTypes.TEXT,
childNodeIndex: 0, childNodeIndex: 0,
evaluate: _scope => _scope.etablissement.g_ea_lib_vx evaluate: _scope => _scope.etablissement.fields.g_ea_lib_vx
}] }]
}, { }, {
redundantAttribute: 'expr104', redundantAttribute: 'expr110',
selector: '[expr104]', selector: '[expr110]',
expressions: [{ expressions: [{
type: expressionTypes.TEXT, type: expressionTypes.TEXT,
childNodeIndex: 0, childNodeIndex: 0,
evaluate: _scope => _scope.etablissement.ville_etab evaluate: _scope => _scope.etablissement.fields.ville_etab
}] }]
}, { }, {
redundantAttribute: 'expr105', redundantAttribute: 'expr111',
selector: '[expr105]', selector: '[expr111]',
expressions: [{ expressions: [{
type: expressionTypes.TEXT, type: expressionTypes.TEXT,
childNodeIndex: 0, childNodeIndex: 0,
evaluate: _scope => _scope.etablissement.dep evaluate: _scope => _scope.etablissement.fields.dep
}] }]
}, { }, {
redundantAttribute: 'expr106', redundantAttribute: 'expr112',
selector: '[expr106]', selector: '[expr112]',
expressions: [{ expressions: [{
type: expressionTypes.TEXT, type: expressionTypes.TEXT,
childNodeIndex: 0, childNodeIndex: 0,
evaluate: _scope => _scope.etablissement.list_com evaluate: _scope => _scope.etablissement.fields.list_com
}] }]
}, { }, {
redundantAttribute: 'expr107', redundantAttribute: 'expr113',
selector: '[expr107]', selector: '[expr113]',
expressions: [{ expressions: [{
type: expressionTypes.TEXT, type: expressionTypes.TEXT,
childNodeIndex: 0, childNodeIndex: 0,
evaluate: _scope => _scope.etablissement.taux_acces_ens evaluate: _scope => _scope.etablissement.fields.taux_acces_ens
}] }]
}]), }]),
redundantAttribute: 'expr102', redundantAttribute: 'expr108',
selector: '[expr102]', selector: '[expr108]',
itemName: 'etablissement', itemName: 'etablissement',
indexName: null, indexName: null,
evaluate: _scope => _scope.state.items evaluate: _scope => _scope.state.items