2018-11-22 23:13:20 +08:00

60 lines
2.4 KiB
Handlebars

<a {{action 'show'}}>
{{!-- <i class="fa fa-search" aria-hidden="true"></i> --}}
{{model.name}}
</a>
{{#if show}}
{{#modal-dialog title=model.name
no-cancel=true
submit-text='OK'
submit=(action 'close')
on-close=(action 'close')
close-to-parent=false}}
<div class="widget-main">
<div class="space-12"></div>
<p style="overflow-x: auto;">
<pre class="application-content">{{content}}</pre>
</p>
<hr />
<p style="white-space: pre-wrap;">{{model.note}}</p>
<hr />
{{#with (customer-application-images model.images model.imageTitles) as |images|}}
{{#each images as |image index|}}
<div class="row">
<div class="col-xs-12 center">
{{#if image.title}}
<h5 class="grey" style="margin-bottom: 4px; white-space: pre-wrap;">{{image.title}}</h5>
{{/if}}
{{image-previews
class="col-xs-12"
image-height=null
image-style=(if (is-screen '<md')
'border-radius: 2%; border: 1px solid #DCDCDC; max-width: 90%;'
'border-radius: 2%; border: 1px solid #DCDCDC; max-width: 94%;')
previews=images
index=index}}
</div>
</div>
<div class="space-12"></div>
{{/each}}
{{/with}}
<hr />
{{#with (customer-application-images model.attachments model.attachmentTitles) as |attachments|}}
{{#if attachments.length}}
<div class="row">
{{#each attachments as |attachment index|}}
<div class="col-xs-12">
<a href="{{attachment.image}}" title="{{attachment.title}}" target="_blank">
<i class="ace-icon fa fa-paperclip bigger-120 grey"></i>
{{if attachment.title attachment.title 'Attachment'}}
</a>
<div class="space-2"></div>
</div>
{{/each}}
</div>
{{/if}}
{{/with}}
</div>
{{/modal-dialog}}
{{/if}}