2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
|
|
#node-add-container
|
|
|
|
|
#node-add-header
|
|
|
|
|
.node-add-title Upload Assets
|
|
|
|
|
|
|
|
|
|
#node-add-form
|
|
|
|
|
p.
|
|
|
|
|
This is the first step in the asset creation process. Once files are uploaded,
|
|
|
|
|
they are stored in a temp location until further actions are taken.
|
|
|
|
|
You can upload multiple assets simultaneously, but you can only edit one at a time.
|
|
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
|
|
// The file upload form used as target for the file upload widget
|
|
|
|
|
form#fileupload(action="{{url_for('files.upload')}}", method='POST', enctype='multipart/form-data')
|
|
|
|
|
|
|
|
|
|
// Redirect browsers with JavaScript disabled to the origin page
|
|
|
|
|
noscript
|
|
|
|
|
input(type='hidden', name='redirect', value="{{url_for('files.upload')}}")
|
|
|
|
|
|
|
|
|
|
// The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload
|
|
|
|
|
.row.fileupload-buttonbar
|
|
|
|
|
.col-lg-7
|
|
|
|
|
|
|
|
|
|
// The fileinput-button span is used to style the file input field as button
|
|
|
|
|
span.btn.btn-success.fileinput-button
|
|
|
|
|
i.pi-plus
|
|
|
|
|
span Add files...
|
|
|
|
|
input(type='file', name='file', multiple='')
|
|
|
|
|
|
2018-08-31 19:31:36 +02:00
|
|
|
|
button.btn.btn-outline-primary.start(type='submit')
|
2016-08-19 09:19:06 +02:00
|
|
|
|
i.pi-upload
|
2018-08-31 19:31:36 +02:00
|
|
|
|
span Start Upload
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
2018-08-31 19:31:36 +02:00
|
|
|
|
button.btn.btn-outline-warning.cancel(type='reset')
|
2016-08-19 09:19:06 +02:00
|
|
|
|
i.pi-cancel
|
2018-08-31 19:31:36 +02:00
|
|
|
|
span Cancel Upload
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
2018-08-31 19:31:36 +02:00
|
|
|
|
button.btn.btn-outline-danger.delete(type='button')
|
2016-08-19 09:19:06 +02:00
|
|
|
|
i.pi-trash
|
|
|
|
|
span Delete
|
|
|
|
|
|
|
|
|
|
input.toggle(type='checkbox')
|
|
|
|
|
// The global file processing state
|
|
|
|
|
span.fileupload-process
|
|
|
|
|
// The global progress state
|
|
|
|
|
.col-lg-5.fileupload-progress.fade
|
|
|
|
|
// The global progress bar
|
|
|
|
|
.progress.progress-striped.active(role='progressbar', aria-valuemin='0', aria-valuemax='100')
|
|
|
|
|
.progress-bar.progress-bar-success(style='width:0%;')
|
|
|
|
|
// The extended global progress state
|
|
|
|
|
.progress-extended
|
|
|
|
|
// The table listing the files available for upload/download
|
|
|
|
|
table.table(role='presentation')
|
|
|
|
|
tbody.files
|
|
|
|
|
br
|
|
|
|
|
|
|
|
|
|
h3 Notes
|
|
|
|
|
ul
|
|
|
|
|
li
|
|
|
|
|
| The maximum file size for this interface is
|
|
|
|
|
strong {{ config.MAX_CONTENT_LENGTH | filesizeformat }}
|
|
|
|
|
| .
|
|
|
|
|
li
|
|
|
|
|
| Only the following formats are allowed:
|
|
|
|
|
br
|
|
|
|
|
strong.text-uppercase
|
|
|
|
|
| {% for f in config.ALLOWED_EXTENSIONS %}
|
|
|
|
|
| {{f}}
|
|
|
|
|
| {% endfor %}
|