-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquick-share-upload.html
More file actions
397 lines (341 loc) · 11.2 KB
/
quick-share-upload.html
File metadata and controls
397 lines (341 loc) · 11.2 KB
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
{% extends prototypeVersion + '/layouts/layout-signed-in.html' %}
{% set pageName = "Search medical product evaluations" %}
{% block beforeContent %}
{{ breadcrumb({
items: [
{
text: "Home",
href: "dashboard"
},
{
text: "Share evaluation",
href: "#"
}
],
attributes: {
"aria-label": "Breadcrumb"
}
}) }}
{% endblock %}
{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-l">Share your evaluation</h1>
<p class="nhsuk-body">Upload your existing evaluation report for <strong>{{ data['product-picker'] }}</strong></p>
<p>We'll just need a few key details to help other trusts find your evaluation.</p>
<form action="review-evaluation" method="post">
<!-- Document Upload - REQUIRED -->
<div class="nhsuk-form-group">
<fieldset class="nhsuk-fieldset">
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--m">
<h2 class="nhsuk-fieldset__heading">
Upload your evaluation documents
</h2>
</legend>
<div class="nhsuk-hint">
Upload PDF, Word, or Excel files of your evaluation report, clinical trial results, or user feedback.
</div>
<div class="nhsuk-form-group">
<label class="nhsuk-label" for="file-upload">
Choose files to upload
</label>
<div class="nhsuk-hint" id="file-upload-hint">
You can upload multiple files. Maximum 10MB per file.
</div>
<input class="nhsuk-input" id="file-upload" name="file-upload" type="file" multiple accept=".pdf,.doc,.docx,.xls,.xlsx" aria-describedby="file-upload-hint">
</div>
<!-- Visual upload area -->
<div class="nhsuk-card nhsuk-u-padding-4" style="border: 2px dashed #aeb7bd; background: #f0f4f5;">
<div class="nhsuk-card__content" style="text-align: center;">
<svg class="nhsuk-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="48" height="48" style="fill: #768692; margin-bottom: 16px;">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path>
</svg>
<p class="nhsuk-body-s nhsuk-u-margin-bottom-2"><strong>Drag and drop files here</strong></p>
<p class="nhsuk-body-s nhsuk-u-secondary-text-color">or use the button above</p>
</div>
</div>
<!-- File list -->
<div id="uploaded-files" class="nhsuk-u-margin-top-4" style="display: none;">
<h3 class="nhsuk-heading-s">Files to upload:</h3>
<ul class="nhsuk-list" id="file-list">
<!-- Files will appear here via JavaScript -->
</ul>
</div>
</fieldset>
</div>
<!-- Alternative: Link to resource -->
<div class="nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-4">
<p class="nhsuk-body-s nhsuk-u-secondary-text-color" style="text-align: center;">
<strong>or</strong>
</p>
</div>
{{ input({
label: {
text: "Link to your evaluation",
classes: "nhsuk-label--s"
},
id: "document-link",
name: "document-link",
type: "url",
hint: {
text: "If you can't upload the document, provide a link to where it's hosted"
},
attributes: {
placeholder: "https://"
}
}) }}
<details class="nhsuk-details nhsuk-u-margin-bottom-0">
<summary class="nhsuk-details__summary">
<span class="nhsuk-details__summary-text">
Tips for sharing links
</span>
</summary>
<div class="nhsuk-details__text">
<ul class="nhsuk-list nhsuk-list--bullet">
<li>Make sure the link is accessible to other NHS staff (not restricted to your trust only)</li>
<li>If using SharePoint, check the sharing settings allow "Anyone with the link" or "People in NHS"</li>
<li>Test the link in a private browser window to confirm it works</li>
</ul>
</div>
</details>
<hr class="nhsuk-section-break nhsuk-section-break--l nhsuk-section-break--visible">
<!-- Minimal metadata -->
<h2 class="nhsuk-heading-m">A few quick details</h2>
<p class="nhsuk-body-s nhsuk-u-secondary-text-color">This helps other trusts understand the context of your evaluation</p>
{{ input({
label: {
text: "Your trust",
classes: "nhsuk-label--s"
},
id: "trust-name",
name: "trust-name",
value: "Mid England NHS Foundation Trust",
attributes: {
readonly: "readonly"
}
}) }}
{{ input({
label: {
text: "Trust department",
classes: "nhsuk-label--s"
},
id: "department-name",
name: "department-name",
hint: {
text: "E.g., Cardiology, IT Services, Procurement"
}
}) }}
{{ input({
label: {
text: "Lead clinician",
classes: "nhsuk-label--s"
},
id: "lead-clinician",
name: "lead-clinician",
hint: {
text: "Name of the clinician who led or supervised this evaluation"
}
}) }}
{% include "includes/suppliers.html" %}
{% from "date-input/macro.njk" import dateInput %}
{{ dateInput({
id: "date-of-evaluation",
name: "date-of-evaluation",
namePrefix: "date-of-evaluation",
fieldset: {
legend: {
text: "Date of evaluation",
size: "s"
}
},
hint: {
text: "Approximate date is fine"
},
items: [
{
name: "Day",
classes: "nhsuk-input--width-2"
},
{
name: "Month",
classes: "nhsuk-input--width-2"
},
{
name: "Year",
classes: "nhsuk-input--width-4"
}
]
}) }}
{{ radios({
idPrefix: "recommendation",
name: "recommendation",
fieldset: {
legend: {
text: "Did you procure this product following your evaluation?",
classes: "nhsuk-fieldset__legend--s"
},
attributes: {
"aria-describedby": "recommendation-hint"
}
},
items: [
{
value: "yes",
text: "Yes"
},
{
value: "no",
text: "No"
}
]
}) }}
{{ textarea({
name: "summary",
id: "summary",
label: {
text: "Brief summary (optional)",
classes: "nhsuk-label--s"
},
hint: {
text: "A one-sentence summary of your key finding. This helps other trusts quickly understand your evaluation."
},
rows: "2",
attributes: {
placeholder: "e.g., Reduced medication errors by 40% but required extended training period"
}
}) }}
<hr class="nhsuk-section-break nhsuk-section-break--l nhsuk-section-break--visible">
<h2 class="nhsuk-heading-m">Contact for queries</h2>
<p class="nhsuk-body-s nhsuk-u-secondary-text-color">Other trusts may want to ask about your evaluation</p>
{{ input({
label: {
text: "Contact name",
classes: "nhsuk-label--s"
},
id: "contact-name",
name: "contact-name",
hint: {
text: "The person other trusts should contact with questions"
}
}) }}
{{ input({
label: {
text: "Email address",
classes: "nhsuk-label--s"
},
id: "contact-email",
name: "contact-email",
type: "email",
classes: "nhsuk-input--width-20"
}) }}
{{ input({
label: {
text: "UK phone number (optional)",
classes: "nhsuk-label--s"
},
id: "contact-phone",
name: "contact-phone",
type: "tel",
classes: "nhsuk-input--width-20",
hint: {
text: "For example, 07700 900000 or 0113 496 0000"
},
attributes: {
autocomplete: "tel"
}
}) }}
{{ checkboxes({
idPrefix: "contact-topics",
name: "contact-topics",
fieldset: {
legend: {
text: "What are you willing to discuss?",
classes: "nhsuk-fieldset__legend--s"
}
},
hint: {
text: "Select all topics you're happy to be contacted about"
},
items: [
{
value: "clinical-outcomes",
text: "Clinical outcomes and effectiveness",
hint: {
text: "Patient outcomes, safety data, clinical performance"
}
},
{
value: "evaluation-methodology",
text: "Evaluation methodology",
hint: {
text: "How you conducted the evaluation, criteria used, lessons learned"
}
},
{
value: "implementation",
text: "Implementation and training",
hint: {
text: "Rollout experience, staff training, change management"
}
},
{
value: "integration",
text: "System integration",
hint: {
text: "IT integration, interoperability, data migration"
}
},
{
value: "procurement-process",
text: "Procurement process",
hint: {
text: "Tender approach, contract terms, supplier engagement"
}
},
{
value: "costs",
text: "Costs and value",
hint: {
text: "Pricing, total cost of ownership, return on investment"
}
},
{
value: "supplier-experience",
text: "Supplier experience",
hint: {
text: "Working relationship, support quality, responsiveness"
}
}
]
}) }}
<div class="nhsuk-warning-callout nhsuk-u-margin-top-6">
<h3 class="nhsuk-warning-callout__label">
<span role="text">
<span class="nhsuk-u-visually-hidden">Important: </span>
Who can see this?
</span>
</h3>
<p>Your evaluation will be visible to <strong>all NHS trusts</strong> using Compass.</p>
<p class="nhsuk-body">You can change this after uploading if needed.</p>
</div>
<div class="nhsuk-form-group nhsuk-u-margin-top-6">
<button class="nhsuk-button" data-module="nhsuk-button" type="submit">
Review and submit
</button>
<p>
<a href="dashboard" class="nhsuk-link nhsuk-link--no-visited-state">Cancel</a>
</p>
</div>
</form>
</div>
</div>
{% endblock %}
{% block pageScripts %}
<script src="https://cdn.jsdelivr.net/npm/accessible-autocomplete@2.0.4/dist/accessible-autocomplete.min.js"></script>
<script type="text/javascript">
accessibleAutocomplete.enhanceSelectElement({
defaultValue: '',
selectElement: document.querySelector('#supplier-picker')
})
</script>
{% endblock %}