src/Products/NotificationsBundle/Resources/views/dashboard/messages/includes/_message_detail.html.twig line 1

Open in your IDE?
  1. {% set message = _args.message %}
  2. {% set id = _args.id|default(message.id) %}
  3. {% set locale = _args.locale|default(null) %}
  4. {% set preview = _args.preview|default(false) %}
  5. <div class="pt-3 mb-4">
  6.     <h6>Subject:</h6>
  7.     <span>{{ message.emailSubject }}</span>
  8. </div>
  9. <div class="pt-3 mb-4">
  10.     <h6>Details: </h6>
  11.     {% if not message.html %}
  12.         <div class="email__box border p-2 container-md">
  13.             {{ message.description|raw }}
  14.         </div>
  15.     {% endif %}
  16.     {% if preview %}
  17.         <div class="text-center text-bold mt-3">
  18.             <a class="btn btn-primary" href="#" title="Preview" data-toggle="modal"
  19.                data-target="#modal__email_preview{{ locale ? '_' ~ locale : '' }}">Preview</a>
  20.         </div>
  21.     {% endif %}
  22. </div>
  23. {% if message.urgent %}
  24.     {% if message.script is not empty %}
  25.         <div class="pt-3 mb-4">
  26.             <h6>Script:</h6>
  27.             <div class="email__box border p-2 container-md">
  28.                 {{ message.script }}
  29.             </div>
  30.         </div>
  31.     {% endif %}
  32.     {% if message.recording is not empty %}
  33.         <div class="pt-3 mb-4">
  34.             <h6>Playback:</h6>
  35.             <div>
  36.                 <audio controls="">
  37.                     <source src="{{ blobs(message.recording).recordingUrl(message.recording)|escape('html_attr') }}"
  38.                             type="audio/mpeg"/>
  39.                     Your browser does not support the audio element.
  40.                 </audio>
  41.             </div>
  42.         </div>
  43.     {% endif %}
  44. {% endif %}