<form <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'form-modal'), array('method', 'post'), array('action', (Yii::app()->createUrl('report/create')))), 'html5', 'UTF-8'); ?>>
  <div class="modal-header">
    <button class="close" type="button" data-dismiss="modal" aria-hidden="true">
      &times;
    </button>
    <h3><?php echo htmlspecialchars(t("Run #{work-period-ID} - Confirmation", array('{work-period-ID}' => "$workPeriodID")),ENT_QUOTES,'UTF-8'); ?></h3>
  </div>
  <div class="modal-body">
    <?php if(!$workPeriodClosed) { ?>
      <div class="alert">
        <strong>
          <?php echo htmlspecialchars(t("Warning"),ENT_QUOTES,'UTF-8'); ?>
        </strong>
        <?php echo htmlspecialchars(t("System will automatically logout."),ENT_QUOTES,'UTF-8'); ?>
      </div>
    <?php } ?>
    <p>
      <?php echo htmlspecialchars(t("Do you want to proceed with report generation for session with ID #{workPeriodID}?", array('{workPeriodID}' => $workPeriodID)),ENT_QUOTES,'UTF-8'); ?>
    </p>
    <p>
      <?php echo htmlspecialchars(t("A new code will be applied to each event belonging to this session."),ENT_QUOTES,'UTF-8'); ?>
    </p>
  </div>
  <div class="modal-footer">
    <button class="btn" type="button" data-dismiss="modal" aria-hidden="true">Annulla</button>
    <input <?php echo MtHaml\Runtime::renderAttributes(array(array('type', 'hidden'), array('name', 'workPeriodID'), array('value', $workPeriodID)), 'html5', 'UTF-8'); ?> />
    <button class="btn btn-danger" type="submit">
      <?php echo htmlspecialchars(t('Generate'),ENT_QUOTES,'UTF-8'); ?>
    </button>
  </div>
</form>
