passman/templates/views/partials/forms/edit_credential/files.html

34 lines
1 KiB
HTML
Raw Normal View History

2016-09-14 05:03:12 +08:00
<div class="row file_tab">
<div class="col-xs-12 col-md-6">
<input type="file" file-select success="fileLoaded" error="fileLoadError" progress="fileSelectProgress">
<span ng-if="fileprogress.file_percent > 0">
<div progress-bar="fileprogress.file_percent"></div>
</span>
</div>
</div>
<div class="row files" ng-if="storedCredential.files.length > 0">
<div class="col-xs-12 table">
<table>
2016-09-14 21:09:55 +08:00
<thead use-theme>
2016-09-14 05:03:12 +08:00
<tr>
<th class="field_label">Filename</th>
<th class="field_value">Upload date</th>
2016-09-15 00:57:38 +08:00
<th class="field_secret">Size</th>
2016-09-14 05:03:12 +08:00
<th class="field_actions">Actions</th>
</tr>
</thead>
<tr ng-repeat="file in storedCredential.files">
<td>
<a href="#" editable-text="file.filename">{{ file.filename || "empty" }}</a>
</td>
<td>
{{file.created * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
2016-09-14 05:03:12 +08:00
</td>
<td>{{file.size | bytes}}</td>
2016-09-14 05:03:12 +08:00
<td class="field_actions">
<i class="fa fa-trash" ng-click="deleteFile(file)"></i>
</td>
</tr>
</table>
</div>
</div>