|
@@ -11,24 +11,24 @@
|
11
|
11
|
%table.table
|
12
|
12
|
%tr
|
13
|
13
|
%td
|
14
|
|
- Organizers:
|
|
14
|
+ = t 'activities.attrs.organizers'
|
15
|
15
|
%td
|
16
|
16
|
= @organizers
|
17
|
17
|
%tr
|
18
|
18
|
%td
|
19
|
|
- Description:
|
|
19
|
+ = t 'activities.attrs.description'
|
20
|
20
|
%td
|
21
|
21
|
= @activity.description
|
22
|
22
|
|
23
|
23
|
%tr
|
24
|
24
|
%td
|
25
|
|
- Location:
|
|
25
|
+ = t 'activities.attrs.location'
|
26
|
26
|
%td
|
27
|
27
|
= @activity.location
|
28
|
28
|
|
29
|
29
|
%tr
|
30
|
30
|
%td
|
31
|
|
- When:
|
|
31
|
+ = t 'activities.attrs.when'
|
32
|
32
|
|
33
|
33
|
%td
|
34
|
34
|
= @activity.start
|
|
@@ -37,7 +37,7 @@
|
37
|
37
|
|
38
|
38
|
%tr
|
39
|
39
|
%td
|
40
|
|
- Deadline:
|
|
40
|
+ = t 'activities.attrs.deadline'
|
41
|
41
|
|
42
|
42
|
%td
|
43
|
43
|
= @activity.deadline
|
|
@@ -46,30 +46,21 @@
|
46
|
46
|
.col-md-3
|
47
|
47
|
.panel.panel-default
|
48
|
48
|
.panel-heading
|
49
|
|
- Your response
|
|
49
|
+ = t 'activities.participant.yourresponse'
|
50
|
50
|
.panel-body
|
51
|
51
|
= render partial: "activities/wide_presence_buttons", locals: {activity: @activity, person: @ownparticipant.person, state: @ownparticipant.attending}
|
52
|
52
|
|
53
|
|
- -#.btn-group.btn-group-justified
|
54
|
|
- -#.btn-group
|
55
|
|
- -#%button.btn.btn-success
|
56
|
|
- -#Present
|
57
|
|
-
|
58
|
|
- -#.btn-group
|
59
|
|
- -#%button.btn.btn-danger
|
60
|
|
- -#Absent
|
61
|
|
-
|
62
|
53
|
= editable @ownparticipant,
|
63
|
54
|
:notes,
|
64
|
55
|
url: presence_group_activity_path(@activity.group, @activity, person_id: @ownparticipant.person_id),
|
65
|
|
- title: "Notes",
|
|
56
|
+ title: t('activities.participant.notes'),
|
66
|
57
|
value: "",
|
67
|
|
- emptytext: "Add notes..."
|
|
58
|
+ emptytext: t('activities.participant.add_notes')
|
68
|
59
|
|
69
|
60
|
.hidden-xs
|
70
|
61
|
%h2
|
71
|
62
|
= @num_participants
|
72
|
|
- participants
|
|
63
|
+ = t 'activities.participant.plural'
|
73
|
64
|
= render partial: "state_counts", locals: {counts: @counts}
|
74
|
65
|
|
75
|
66
|
%table.table.table-bordered
|
|
@@ -81,7 +72,7 @@
|
81
|
72
|
%i.fa.fa-star-o
|
82
|
73
|
|
83
|
74
|
%td
|
84
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--"
|
|
75
|
+ = 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: "--"
|
85
|
76
|
|
86
|
77
|
%td
|
87
|
78
|
= render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending}
|
|
@@ -89,9 +80,6 @@
|
89
|
80
|
.hidden-sm.hidden-md.hidden-lg
|
90
|
81
|
.panel.panel-default.panel-success
|
91
|
82
|
.panel-heading
|
92
|
|
- -#%button.btn.btn-default.btn-sm{data: {toggle: 'collapse', target: '#present-collapse'}}
|
93
|
|
- -#%i.fa.fa-arrows-v
|
94
|
|
-
|
95
|
83
|
%a{role: 'button', href: '#present-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'}
|
96
|
84
|
|
97
|
85
|
%span.sv-show-collapsed
|
|
@@ -100,7 +88,7 @@
|
100
|
88
|
%span.sv-show-expanded
|
101
|
89
|
%i.fa.fa-angle-up
|
102
|
90
|
|
103
|
|
- Present
|
|
91
|
+ = t 'activities.state.present'
|
104
|
92
|
%span.badge
|
105
|
93
|
= @counts[true]
|
106
|
94
|
|
|
@@ -118,7 +106,7 @@
|
118
|
106
|
|
119
|
107
|
%tr{data: {person_id: p.person_id, activity_id: @activity.id}}
|
120
|
108
|
%td{colspan: "2"}
|
121
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--"
|
|
109
|
+ = 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: "--"
|
122
|
110
|
|
123
|
111
|
|
124
|
112
|
.panel.panel-default
|
|
@@ -130,7 +118,9 @@
|
130
|
118
|
|
131
|
119
|
%span.sv-show-expanded
|
132
|
120
|
%i.fa.fa-angle-up
|
133
|
|
- No reaction
|
|
121
|
+
|
|
122
|
+ = t 'activities.state.need_response'
|
|
123
|
+
|
134
|
124
|
%span.badge
|
135
|
125
|
= @counts[nil]
|
136
|
126
|
|
|
@@ -148,7 +138,7 @@
|
148
|
138
|
|
149
|
139
|
%tr{data: {person_id: p.person_id, activity_id: @activity.id}}
|
150
|
140
|
%td{colspan: "2"}
|
151
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--"
|
|
141
|
+ = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activitites.participant.notes'), value: p.notes, emptytext: "--"
|
152
|
142
|
|
153
|
143
|
.panel.panel-default.panel-danger
|
154
|
144
|
.panel-heading
|
|
@@ -159,7 +149,9 @@
|
159
|
149
|
|
160
|
150
|
%span.sv-show-expanded
|
161
|
151
|
%i.fa.fa-angle-up
|
162
|
|
- Absent
|
|
152
|
+
|
|
153
|
+ = t 'activities.state.absent'
|
|
154
|
+
|
163
|
155
|
%span.badge
|
164
|
156
|
= @counts[false]
|
165
|
157
|
|
|
@@ -177,4 +169,4 @@
|
177
|
169
|
|
178
|
170
|
%tr{data: {person_id: p.person_id, activity_id: @activity.id}}
|
179
|
171
|
%td{colspan: "2"}
|
180
|
|
- = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--"
|
|
172
|
+ = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: t('activitites.participant.notes'), value: p.notes, emptytext: "--"
|