1
1
{{ #if @studentList }}
2
2
3
- <div class =" add-student-list" >
3
+ <PixBlock class =" add-student-list" >
4
4
<div class =" add-student-list__filters" >
5
5
<span >{{ t " pages.sco.enrol-candidates-in-session.list.table.filter.title" }} </span >
6
6
<PixMultiSelect
22
22
<table >
23
23
<thead >
24
24
<tr >
25
- <th >
25
+ <th class = " table__column--checkbox " >
26
26
<PixCheckbox
27
27
@screenReaderOnly ={{ true }}
28
28
@class =" add-student-list__checker"
34
34
<:label >{{ t " pages.candidates.add.actions.select-all.label" }} </:label >
35
35
</PixCheckbox >
36
36
</th >
37
- <th >{{ t " pages.sco.enrol-candidates-in-session.list.table.division" }} </th >
38
- <th >{{ t " pages.sco.enrol-candidates-in-session.list.table.last-name" }} </th >
39
- <th >{{ t " pages.sco.enrol-candidates-in-session.list.table.first-name" }} </th >
37
+ <th class = " table__column--medium " >{{ t " pages.sco.enrol-candidates-in-session.list.table.division" }} </th >
38
+ <th class = " table__column--medium " >{{ t " pages.sco.enrol-candidates-in-session.list.table.last-name" }} </th >
39
+ <th class = " table__column--medium " >{{ t " pages.sco.enrol-candidates-in-session.list.table.first-name" }} </th >
40
40
<th class =" add-student-list__column-birthdate" >
41
41
{{ t " pages.sco.enrol-candidates-in-session.list.table.birthdate" }}
42
42
</th >
46
46
{{ #each @studentList as |student |}}
47
47
{{ #if student.isEnrolled }}
48
48
<tr class =" add-student-list__row add-student-list__row--disabled" >
49
- <td class = " add-student-list__column-checkbox " >
49
+ <td >
50
50
<PixCheckbox @screenReaderOnly ={{ true }} @class =" add-student-list__checker" @checked ={{ true }} disabled>
51
51
<:label >
52
52
{{ t
60
60
<td >{{ student.division }} </td >
61
61
<td >{{ student.lastName }} </td >
62
62
<td >{{ student.firstName }} </td >
63
- <td class = " add-student-list__column-birthdate " >{{ dayjs-format student.birthdate " DD/MM/YYYY" }} </td >
63
+ <td >{{ dayjs-format student.birthdate " DD/MM/YYYY" }} </td >
64
64
</tr >
65
65
{{ else }}
66
66
<tr class =" add-student-list__row" {{ on " click" (fn this.toggleItem student )}} >
67
- <td class = " add-student-list__column-checkbox " >
67
+ <td >
68
68
<PixCheckbox @screenReaderOnly ={{ true }} @checked ={{ student.isSelected }} >
69
69
<:label >
70
70
{{ t
85
85
</tbody >
86
86
</table >
87
87
</div >
88
+ </PixBlock >
88
89
89
- <PixPagination @pagination ={{ @studentList.meta }} />
90
+ <PixPagination @pagination ={{ @studentList.meta }} />
90
91
91
- {{ #if this.showStickyBar }}
92
- <div class =" add-student-list__bottom-action-bar" >
92
+ {{ #if this.showStickyBar }}
93
+ <div class =" add-student-list__bottom-action-bar" >
93
94
94
- <div class =" bottom-action-bar__informations " >
95
- <p class =" bottom-action-bar__informations --candidates-selected" >
96
- {{ #if this.numberOfStudentsSelected }}
97
- {{ this.numberOfStudentsSelected }}
98
- {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.candidate-selected" }}
99
- {{ else }}
100
- {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.no-candidate-selected" }}
101
- {{ /if }}
102
- </p >
103
- <span class =" bottom-action-bar__seperator " ></span >
104
- <p class =" bottom-action-bar__informations --candidates-already-added" >
105
- {{ this.numberOfStudentsAlreadyCandidate }}
106
- {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.candidate-already-enrolled" }}
107
- </p >
108
- </div >
95
+ <div class =" bottom-action-bar__information " >
96
+ <p class =" bottom-action-bar__information --candidates-selected" >
97
+ {{ #if this.numberOfStudentsSelected }}
98
+ {{ this.numberOfStudentsSelected }}
99
+ {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.candidate-selected" }}
100
+ {{ else }}
101
+ {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.no-candidate-selected" }}
102
+ {{ /if }}
103
+ </p >
104
+ <span class =" bottom-action-bar__separator " ></span >
105
+ <p class =" bottom-action-bar__information --candidates-already-added" >
106
+ {{ this.numberOfStudentsAlreadyCandidate }}
107
+ {{ t " pages.sco.enrol-candidates-in-session.list.action-bar.candidate-already-enrolled" }}
108
+ </p >
109
+ </div >
109
110
110
- <div class =" bottom-action-bar__actions" >
111
- <PixButtonLink
112
- @variant =" secondary"
113
- @isBorderVisible ={{ true }}
114
- @route =" authenticated.sessions.details.certification-candidates"
115
- @model ={{ @session.id }}
116
- >
117
- {{ t " common.actions.cancel" }}
118
- </PixButtonLink >
119
- <PixButton
120
- @triggerAction ={{ this.enrolStudents }}
121
- type =" button"
122
- @isDisabled ={{ this.shouldDisableAddButton }}
123
- class =" bottom-action-bar__actions--add-button"
124
- >
125
- Inscrire
126
- </PixButton >
127
- </div >
111
+ <div class =" bottom-action-bar__actions" >
112
+ <PixButtonLink
113
+ @variant =" secondary"
114
+ @isBorderVisible ={{ true }}
115
+ @route =" authenticated.sessions.details.certification-candidates"
116
+ @model ={{ @session.id }}
117
+ >
118
+ {{ t " common.actions.cancel" }}
119
+ </PixButtonLink >
120
+ <PixButton
121
+ @triggerAction ={{ this.enrolStudents }}
122
+ type =" button"
123
+ @isDisabled ={{ this.shouldDisableAddButton }}
124
+ class =" bottom-action-bar__actions--add-button"
125
+ >
126
+ Inscrire
127
+ </PixButton >
128
128
</div >
129
- {{ /if }}
130
- </ div >
129
+ </ div >
130
+ {{ /if }}
131
131
{{ /if }}
0 commit comments