This repository has been archived by the owner on May 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrequest_page.html
225 lines (195 loc) · 6.81 KB
/
request_page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<nav class="my-activities-nav collapsible-nav">
<ul class="collapsible-nav-list container">
<li aria-selected=true>{{t 'requests'}}</li>
<li>{{link 'contributions'}}</li>
<li>{{link 'subscriptions'}}</li>
</ul>
</nav>
<div class="container">
<div class="request-breadcrumbs">{{breadcrumbs}}</div>
<h2 class="request-title">{{request.subject}}</h2>
<div class="request-container">
<section class="request-main">
{{satisfaction}}
<ul class="comment-list">
{{#each comments}}
<li id="{{anchor}}" class="comment">
<div class="comment-wrapper">
<div class="comment-info">
<div class="comment-author">
<div class="avatar comment-avatar">
{{#if author.agent}}
<span class="icon-agent"></span>
{{/if}}
<img src="{{author.avatar_url}}" alt="Avatar" class="user-avatar"/>
</div>
<div class="comment-meta">
<span title="{{author.name}}">
{{#link 'user_profile' id=author.id}}
{{author.name}}
{{/link}}
</span>
<ul class="meta-group">
<li class="meta-data">{{date created_at timeago=true}}</li>
</ul>
</div>
</div>
<section class="comment-body">{{body}}</section>
{{#if attachments}}
<ul class="attachments">
{{#each attachments}}
<li class="attachment-item">
<a href="{{url}}" target="_blank">{{name}}</a>
<div class="attachment-meta meta-group">
<span class="attachment-meta-item meta-data">{{size}}</span>
<a href="{{url}}" target="_blank" class="attachment-meta-item meta-data">{{t 'download'}}</a>
</div>
</li>
{{/each}}
</ul>
{{/if}}
</div>
</div>
</li>
{{/each}}
</ul>
{{pagination}}
{{#if comment_callout}}
<div class="request-follow-up">
{{comment_callout}}
</div>
{{/if}}
{{#form 'comment' class='comment-form'}}
<div class="avatar comment-avatar">
{{user_avatar class='user-avatar'}}
</div>
<div class="comment-container">
<div class="comment-show-container {{#validate 'body'}}hidden{{/validate}}">
<span class="comment-show-container-content">
{{t 'add_to_conversation'}}
</span>
</div>
<div class="comment-fields {{#validate 'body'}}shown{{/validate}}">
{{#if help_center.request_ccs_enabled}}
<div class="comment-ccs form-field">
{{token_field 'ccs' class='ccs-input'}}
</div>
{{/if}}
{{textarea 'body' rows='7'}}
{{#if upload}}
<div class="comment-attachments">
{{upload}}
</div>
{{/if}}
</div>
<div class="comment-form-controls">
{{checkbox 'mark_as_solved'}}
{{#if request.can_be_marked_as_solved}}
<a role="button" class="button-large button-secondary mark-as-solved"
data-solve-translation="{{t 'mark_as_solved'}}"
data-solve-and-submit-translation="{{t 'mark_as_solved_and_submit'}}">
{{t 'mark_as_solved'}}
</a>
{{/if}}
<span class="request-submit-comment {{#validate 'body'}}shown{{/validate}}">
{{input type='submit'}}
</span>
</div>
</div>
{{/form}}
</section>
<section class="request-sidebar collapsible-sidebar">
<h5 class="collapsible-sidebar-title">{{t 'ticket_details'}}</h5>
{{#if request.followup_source_id}}
<dl class="request-details">
<dt>{{t 'followup'}}</dt>
<dd>{{link 'request' id=request.followup_source_id}}</dd>
</dl>
{{/if}}
<dl class="request-details">
<dt>{{t 'requester'}}</dt>
<dd>{{request.requester.name}}</dd>
<dt>{{t 'created'}}</dt>
<dd>{{date request.created_at}}</dd>
<dt>{{t 'last_activity'}}</dt>
<dd>{{date request.updated_at}}</dd>
{{#if collaborators}}
<dt>{{t 'ccs'}}</dt>
<dd>
<ul class="request-collaborators">
{{#each collaborators}}
<li title={{name}}>{{name}}</li>
{{/each}}
</ul>
</dd>
{{/if}}
</dl>
<dl class="request-details">
{{#if assignee}}
<dt>{{t 'assignee'}}</dt>
<dd>
{{assignee.name}}
</dd>
{{/if}}
<dt>{{t 'id'}}</dt>
<dd>#{{request.id}}</dd>
{{#form 'organization' id='request-organization'}}
<dt>{{t 'organization'}}</dt>
<dd>{{select 'organization'}}</dd>
{{/form}}
{{#if group}}
<dt>{{t 'group'}}</dt>
<dd>
{{group.name}}
</dd>
{{/if}}
<dt>{{t 'status'}}</dt>
<dd>
<span class="status-label status-label-{{request.status}}" title="{{request.status_description}}">
{{request.status_name}}
</span>
</dd>
{{#if request.type}}
<dt>{{t 'type'}}</dt>
<dd>
{{request.type_name}}
{{#is request.type 'task'}}
{{t 'task_due_date' due_date=request.due_date}}
{{/is}}
</dd>
{{/if}}
{{#if request.priority}}
<dt>{{t 'priority'}}</dt>
<dd>
{{request.priority_name}}
</dd>
{{/if}}
{{#each custom_fields}}
<dt>{{title}}</dt>
<dd>
{{value}}
</dd>
{{/each}}
</dl>
{{#if attachments}}
<dl class="request-details request-attachments">
<dt>{{t 'attachments_heading'}}</dt>
<dd>
<ul class="attachments">
{{#each attachments}}
<li class="attachment-item">
<a href="{{url}}" target="_blank">{{name}}</a>
<div class="attachment-meta meta-group">
<span class="attachment-meta-item meta-data">{{size}}</span>
<a href="{{url}}" target="_blank" class="attachment-meta-item meta-data">{{t 'download'}}</a>
</div>
</li>
{{/each}}
</ul>
</dd>
</dl>
{{/if}}
</section>
</div>
{{chat_about_my_ticket}}
</div>