unserver-unify
Version:
87 lines • 2.61 kB
HTML
<div class="modal-header">
<button class="close" ng-click="$dismiss()" type="button">
<span aria-hidden="true">
×
</span>
<span class="sr-only">
Close
</span>
</button>
<h3 class="modal-title" translate="">
Detail
</h3>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="form-group">
<label class="col-md-2 control-label">
{{ 'Content' | translate }}
</label>
<div class="col-md-10">
<div ng-bind-html="record.content">
</div>
<audio class="audio_aln" controls="" ng-if="record.audio" ng-src="{{ record.audiourl }}" style="width:90%">
</audio>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
{{ 'Attachment' | translate }}
</label>
<div class="col-md-10">
<table class="table table-striped table-hover white-bg" ng-if="record.file||record.files.length> 0">
<tr>
<th>
</th>
<th translate="" width="25%">
Type
</th>
<th translate="">
File
</th>
<th translate="">
Action
</th>
</tr>
<tbody>
<tr ng-if="record.file">
<td>
</td>
<td class="v-middle">
Other
</td>
<td class="v-middle">
{{ record.file }}
</td>
<td class="v-middle">
<a class="btn btn-xs" download="" href="{{ ctrl.audiourl }}{{ record.file }}">
Download
</a>
</td>
</tr>
<tr ng-repeat="item in record.files">
<td>
<i class="{{ ctrl.typeclassname[item.type] }}">
</i>
</td>
<td class="v-middle">
{{ item.type }}
</td>
<td class="v-middle">
{{ item.file }}
</td>
<td class="v-middle">
<a class="btn btn-info btn-xs" download="" href="{{ ctrl.audiourl }}{{ item.file }}">
Download
</a>
<a class="btn btn-xs btn-info" ng-click="preview(ctrl.audiourl+item.file)" translate="">
Show
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>