-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.html
More file actions
24 lines (22 loc) · 901 Bytes
/
upload.html
File metadata and controls
24 lines (22 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% from "govuk/components/button/macro.njk" import govukButton %}
{% from "govuk/components/file-upload/macro.njk" import govukFileUpload %}
{% macro show() %}
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Upload your data</h1>
<form method="POST" enctype="multipart/form-data">
<div>
{{ govukFileUpload({
id: "file-upload",
name: "file",
label: { text: "Upload an XLSX, ODS, or CSV file"},
attributes: { "accept":
".xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.csv,text/csv,application/vnd.oasis.opendocument.spreadsheet,.ods"},
errorMessage: false })
}}
</div>
<div class="govuk-button-group">
{{ govukButton({ text: "Upload" }) }}
</div>
</form>
</div>
{% endmacro %}