|
@@ -5,21 +5,21 @@
|
5
|
5
|
.panel-heading
|
6
|
6
|
.btn-group.pull-right
|
7
|
7
|
%button.btn.btn-default.dropdown-toggle.btn-xs{data: {toggle: 'dropdown'}, 'aria-haspopup': true, 'aria-expanded': false}
|
8
|
|
- %i.fa.fa-cogs
|
|
8
|
+ %i.fas.fa-cogs
|
9
|
9
|
%span.caret
|
10
|
10
|
%ul.dropdown-menu
|
11
|
11
|
%li
|
12
|
12
|
%a.copy-reactions{data: {activity: @activity.id, absent: true}}
|
13
|
|
- %i.fa.fa-files-o
|
|
13
|
+ %i.fas.fa-copy
|
14
|
14
|
= t 'activities.participant.copy_absent'
|
15
|
15
|
%a.copy-reactions{data: {activity: @activity.id, present: true, absent: true, unknown: true}}
|
16
|
|
- %i.fa.fa-files-o
|
|
16
|
+ %i.fas.fa-copy
|
17
|
17
|
= t 'activities.participant.copy_responses'
|
18
|
18
|
- if all_buttons
|
19
|
19
|
%li.divider{role: 'separator'}
|
20
|
20
|
%li
|
21
|
21
|
= link_to edit_group_activity_path(@group, @activity) do
|
22
|
|
- %i.fa.fa-pencil
|
|
22
|
+ %i.fas.fa-pencil
|
23
|
23
|
= t :edit
|
24
|
24
|
= @activity.name
|
25
|
25
|
|
|
@@ -115,7 +115,7 @@
|
115
|
115
|
%td
|
116
|
116
|
= p.person.full_name
|
117
|
117
|
- if p.is_organizer
|
118
|
|
- %i.fa.fa-star-o
|
|
118
|
+ %i.fas.fa-star-o
|
119
|
119
|
|
120
|
120
|
%td
|
121
|
121
|
= editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activities.participant.notes'), value: p.notes, emptytext: "--"
|
|
@@ -137,10 +137,10 @@
|
137
|
137
|
%a{role: 'button', href: '#present-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'}
|
138
|
138
|
|
139
|
139
|
%span.sv-show-collapsed
|
140
|
|
- %i.fa.fa-angle-down
|
|
140
|
+ %i.fas.fa-angle-down
|
141
|
141
|
|
142
|
142
|
%span.sv-show-expanded
|
143
|
|
- %i.fa.fa-angle-up
|
|
143
|
+ %i.fas.fa-angle-up
|
144
|
144
|
|
145
|
145
|
= t 'activities.state.present'
|
146
|
146
|
%span.badge.state-count.present-count
|
|
@@ -149,30 +149,17 @@
|
149
|
149
|
%table.table.collapse#present-collapse
|
150
|
150
|
%tbody
|
151
|
151
|
- @participants.where(attending: true).each do |p|
|
152
|
|
- %tr.participant-row{data: {person_id: p.person.id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
153
|
|
- %td
|
154
|
|
- = p.person.full_name
|
155
|
|
- - if p.is_organizer
|
156
|
|
- %i.fa.fa-star-o
|
157
|
|
-
|
158
|
|
- %td
|
159
|
|
- - if p.person.id == current_person.id || all_buttons
|
160
|
|
- = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending}
|
161
|
|
-
|
162
|
|
- %tr.participant-row{data: {person_id: p.person_id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
163
|
|
- %td{colspan: "2"}
|
164
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activities.participant.notes'), value: p.notes, emptytext: "--"
|
165
|
|
-
|
|
152
|
+ = render partial: "mobile_participant_row", locals: {participant: p, show_all_buttons: all_buttons}
|
166
|
153
|
|
167
|
154
|
.panel.panel-default
|
168
|
155
|
.panel-heading
|
169
|
156
|
%a{role: 'button', href: '#unknown-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'}
|
170
|
157
|
|
171
|
158
|
%span.sv-show-collapsed
|
172
|
|
- %i.fa.fa-angle-down
|
|
159
|
+ %i.fas.fa-angle-down
|
173
|
160
|
|
174
|
161
|
%span.sv-show-expanded
|
175
|
|
- %i.fa.fa-angle-up
|
|
162
|
+ %i.fas.fa-angle-up
|
176
|
163
|
|
177
|
164
|
= t 'activities.state.need_response'
|
178
|
165
|
|
|
@@ -182,29 +169,17 @@
|
182
|
169
|
%table.table.collapse#unknown-collapse
|
183
|
170
|
%tbody
|
184
|
171
|
- @participants.where(attending: nil).each do |p|
|
185
|
|
- %tr.participant-row{data: {person_id: p.person.id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
186
|
|
- %td
|
187
|
|
- = p.person.full_name
|
188
|
|
- - if p.is_organizer
|
189
|
|
- %i.fa.fa-star-o
|
190
|
|
-
|
191
|
|
- %td
|
192
|
|
- - if p.person.id == current_person.id || all_buttons
|
193
|
|
- = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending}
|
194
|
|
-
|
195
|
|
- %tr.participant-row{data: {person_id: p.person_id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
196
|
|
- %td{colspan: "2"}
|
197
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activities.participant.notes'), value: p.notes, emptytext: "--"
|
|
172
|
+ = render partial: "mobile_participant_row", locals: {participant: p, show_all_buttons: all_buttons}
|
198
|
173
|
|
199
|
174
|
.panel.panel-default.panel-danger
|
200
|
175
|
.panel-heading
|
201
|
176
|
%a{role: 'button', href: '#absent-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'}
|
202
|
177
|
|
203
|
178
|
%span.sv-show-collapsed
|
204
|
|
- %i.fa.fa-angle-down
|
|
179
|
+ %i.fas.fa-angle-down
|
205
|
180
|
|
206
|
181
|
%span.sv-show-expanded
|
207
|
|
- %i.fa.fa-angle-up
|
|
182
|
+ %i.fas.fa-angle-up
|
208
|
183
|
|
209
|
184
|
= t 'activities.state.absent'
|
210
|
185
|
|
|
@@ -214,16 +189,4 @@
|
214
|
189
|
%table.table.collapse#absent-collapse
|
215
|
190
|
%tbody
|
216
|
191
|
- @participants.where(attending: false).each do |p|
|
217
|
|
- %tr.participant-row{data: {person_id: p.person.id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
218
|
|
- %td
|
219
|
|
- = p.person.full_name
|
220
|
|
- - if p.is_organizer
|
221
|
|
- %i.fa.fa-star-o
|
222
|
|
-
|
223
|
|
- %td
|
224
|
|
- - if p.person.id == current_person.id || all_buttons
|
225
|
|
- = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending}
|
226
|
|
-
|
227
|
|
- %tr.participant-row{data: {person_id: p.person_id, activity_id: @activity.id, subgroup_id: p.subgroup_id}}
|
228
|
|
- %td{colspan: "2"}
|
229
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activities.participant.notes'), value: p.notes, emptytext: "--"
|
|
192
|
+ = render partial: "mobile_participant_row", locals: {participant: p, show_all_buttons: all_buttons}
|