<div id="alert-view">
  <div class="page-header">
    <div class="row clearfix">
      <div class="span8">
        <h2>
          <?php echo htmlspecialchars(t('Event detail'),ENT_QUOTES,'UTF-8'); ?>
        </h2>
      </div>
      <div class="span2 pull-right text-right">
        <a <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'btn'), array('href', (Yii::app()->createAbsoluteUrl('vehicleTrace/exportToPdf', array('id' => $event->ID)))), array('target', ('_blank'))), 'html5', 'UTF-8'); ?>>
          <?php echo htmlspecialchars(t('Export'),ENT_QUOTES,'UTF-8'); ?>
        </a>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="span4">
      <div id="videos">
        <?php if(Yii::app()->user->checkAccess('media_view_video')) { ?>
          <?php if(!empty($event->video_file_name)) { ?>
            <center>
              <?php $this->renderVideo($event->getVideoUrl(), 350); ?>
            </center>
          <?php } ?>
        <?php } ?>
      </div>
      <div id="etalage-container" data-behavior="MediaEtalage">
        <ul id="etalage">
          <?php foreach ($event->photosUrl as $url) { ?>
            <li>
              <img <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'etalage_source_image'), array('src', $url)), 'html5', 'UTF-8'); ?> />
            </li>
          <?php } ?>
        </ul>
      </div>
    </div>
    <div class="span8">
      <div id="event-data">
        <div class="row">
          <div class="span4">
            <fieldset>
              <?php $this->renderPartial('/alert/_vehicleTraceDetails', array('event' => $event)); ?>
            </fieldset>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
