{% set message = _args.message %}
{% set id = _args.id|default(message.id) %}
{% set locale = _args.locale|default(null) %}
{% set preview = _args.preview|default(false) %}
<div class="pt-3 mb-4">
<h6>Subject:</h6>
<span>{{ message.emailSubject }}</span>
</div>
<div class="pt-3 mb-4">
<h6>Details: </h6>
{% if not message.html %}
<div class="email__box border p-2 container-md">
{{ message.description|raw }}
</div>
{% endif %}
{% if preview %}
<div class="text-center text-bold mt-3">
<a class="btn btn-primary" href="#" title="Preview" data-toggle="modal"
data-target="#modal__email_preview{{ locale ? '_' ~ locale : '' }}">Preview</a>
</div>
{% endif %}
</div>
{% if message.urgent %}
{% if message.script is not empty %}
<div class="pt-3 mb-4">
<h6>Script:</h6>
<div class="email__box border p-2 container-md">
{{ message.script }}
</div>
</div>
{% endif %}
{% if message.recording is not empty %}
<div class="pt-3 mb-4">
<h6>Playback:</h6>
<div>
<audio controls="">
<source src="{{ blobs(message.recording).recordingUrl(message.recording)|escape('html_attr') }}"
type="audio/mpeg"/>
Your browser does not support the audio element.
</audio>
</div>
</div>
{% endif %}
{% endif %}