passman/templates/views/partials/forms/edit_credential/files.html
brantje 8fab6a8725
Custom field types
Custom fields can have files. Order custom fields.
It's now possible to reorganise the custom fields by drag and drop.
Signed-off-by: brantje <brantje@gmail.com>
2016-10-24 19:56:04 +02:00

35 lines
No EOL
1.1 KiB
HTML

<div class="row file_tab">
<div class="col-xs-12 col-md-6">
<input class="inputfile" id="file" type="file" file-select success="fileLoaded" error="fileLoadError" progress="fileSelectProgress">
<label for="file"><i class="fa fa-upload" aria-hidden="true"></i> Choose a file</label>
<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>
<thead use-theme>
<tr>
<th class="field_label">Filename</th>
<th class="field_value">Upload date</th>
<th class="field_secret">Size</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 * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
</td>
<td>{{file.size | bytes}}</td>
<td class="field_actions">
<i class="fa fa-trash" ng-click="deleteFile(file)"></i>
</td>
</tr>
</table>
</div>
</div>