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

34 lines
982 B
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>
<th class="field_secret">Type</th>
<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}}
</td>
<td>{{file.mimetype}}</td>
<td class="field_actions">
<i class="fa fa-trash" ng-click="deleteFile(file)"></i>
</td>
</tr>
</table>
</div>
</div>