Last active
June 6, 2018 10:12
-
-
Save sultaniman/9d85d6060453d6085970fc7a830f4e1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="upload"> | |
| <h2 class="upload__title"> | |
| Documents | |
| <span v-if="documents"> | |
| ({{documents.length}}) | |
| </span> | |
| </h2> | |
| <form enctype="multipart/form-data" novalidate class="upload__documents" id="document_upload"> | |
| <div class="row"> | |
| <div | |
| v-if="documents" | |
| v-for="document in documents" | |
| :key="document.uid" | |
| class="col-6 upload__documents__item"> | |
| <FileIcon | |
| :document="document" | |
| :label="document.original_name" | |
| :deleteAction="deleteDocument"> | |
| </FileIcon> | |
| </div> | |
| </div> | |
| <div class="upload__documents__choose"> | |
| <input | |
| type="file" | |
| multiple | |
| name="documents" | |
| :disabled="saving" | |
| @change="filesChange($event.target.name, $event.target.files)" | |
| :accept="acceptedFileTypes" | |
| class="upload__documents__choose__file"> | |
| <div :class="documentsClasses"> | |
| Select or drag and drop documents into this area. | |
| </div> | |
| </div> | |
| <Spin size="large" v-if="saving"></Spin> | |
| </form> | |
| </div> | |
| </template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment