1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-09-21 11:11:22 -04:00
shimapan/public/views/upload-form.html

21 lines
1.1 KiB
HTML
Raw Normal View History

2017-10-11 10:15:19 -04:00
<div class="upload">
<form id="upload-form" ng-submit="submit()">
<button id="upload-btn" class="btn" ngf-select="uploadFiles($files, $invalidFiles)" ngf-max-size="128MB" multiple>Select or drop file(s)</button>
</form>
<ul id="upload-filelist">
<li ng-repeat="file in files">
<span class="list-name" ng-bind="file.name"></span>
<progress class="list-progress" max="100" value="{{file.progress}}" ng-hide="file.progress == 100"></progress>
<span class="list-url">
<a href="https://shimapan.rocks/v/{{file.result.name}}" ng-hide="file.progress < 100">https://shimapan.rocks/v/{{file.result.name}}</a>
<button class="list-url-clipboard-btn" ngclipboard data-clipboard-text="https://shimapan.rocks/v/{{file.result.name}}">
<img src="/img/glyphicons-512-copy.png"/>
</button>
</span>
</li>
<li ng-repeat="file in errorFiles">
<span class="list-name" ng-bind="file.name"></span>
<span class="list-err">Error: {{errToString(file.$error)}}</span>
</li>
</ul>
</div>