Skip to content

Instantly share code, notes, and snippets.

@vinchbr
Created January 19, 2017 23:40
Show Gist options
  • Save vinchbr/d7455ec6c20bbb7c3f3141e690b60190 to your computer and use it in GitHub Desktop.
Save vinchbr/d7455ec6c20bbb7c3f3141e690b60190 to your computer and use it in GitHub Desktop.
<div class="modal-body document-upload">
<input type="file" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" tabindex="-1" __afu_gen__="true" style="width: 0px; height: 0px; position: absolute; padding: 0px; margin: 0px; overflow: hidden; opacity: 0;"><button ng-show="!allowMultipleFiles" ng-file-select="" ng-model="myFiles" ng-change="addFiles()" ng-disabled="disableChooser" class="rf-button rf-button--primary upload-button ng-pristine ng-untouched ng-valid ng-hide" ng-accept="'*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx'" ng-model-rejected="rejFiles" data-test-handle="choose-single-documents-button" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" __refelem__="true" style="overflow: hidden;">
<i class="glyphicon glyphicon-folder-close"></i>Choose File
</button>
<input type="file" multiple="multiple" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" tabindex="-1" __afu_gen__="true" style="width: 0px; height: 0px; position: absolute; padding: 0px; margin: 0px; overflow: hidden; opacity: 0;"><button ng-show="allowMultipleFiles" ng-file-select="" ng-model="myFiles" ng-change="addFiles()" class="rf-button upload-button ng-pristine ng-untouched ng-valid" ng-multiple="true" ng-accept="'*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx'" ng-model-rejected="rejFiles" data-test-handle="choose-multiple-documents-button" multiple="multiple" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" __refelem__="true" style="overflow: hidden;">
<i class="glyphicon glyphicon-folder-close"></i>Choose Files
</button>
<!-- ngIf: mustSelectUniqueNames -->
<ul class="list-unstyled files-to-upload">
<!-- ngRepeat: file in fullFileList track by file.name -->
</ul>
<article class="modal-caption">
<p>Please upload any missing property or owner documents, final invoices, pulled permits, etc.</p>
<p>Each file cannot exceed 150MB.</p>
<p>Accepted File Types: .pdf, .jpg, .jpeg, .png, .doc, .docx</p>
</article>
<footer class="modal-footer align-right">
<!-- ngIf: successfullyUploadedFiles.length < 1 --><button class="rf-button rf-button--sibling-spaced btn-cancel ng-scope" rf-modal-close-button="" ng-if="successfullyUploadedFiles.length < 1">Cancel</button><!-- end ngIf: successfullyUploadedFiles.length < 1 -->
<!-- ngIf: successfullyUploadedFiles.length > 0 -->
<button class="rf-button rf-button--primary rf-button--sibling-spaced upload-all ng-binding" ng-click="upload()" ng-disabled="fullFileList.length === successfullyUploadedFiles.length" data-test-handle="upload-files-button" disabled="disabled">
<i class="ion-arrow-up-a font-18"></i>Upload Files
</button>
</footer>
<!-- ngIf: errorMessage -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment