<form <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'form-modal'), array('method', 'post'), array('action', (Yii::app()->createUrl('report/createByService')))), '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 #{$serviceID} - Confirmation", array('{work-period-ID}' => "$serviceID")),ENT_QUOTES,'UTF-8'); ?></h3>
  </div>
  <div class="modal-body">
    <p>
      <?php echo htmlspecialchars(t("Do you want to proceed with report generation for run with ID #{serviceID}?", array('{serviceID}' => $serviceID)),ENT_QUOTES,'UTF-8'); ?>
    </p>
    <p>
      <?php echo htmlspecialchars(t("A new code will be applied to each event belonging to this run."),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', 'serviceID'), array('value', $serviceID)), 'html5', 'UTF-8'); ?> />
    <button class="btn btn-danger" type="submit">
      <?php echo htmlspecialchars(t('Generate'),ENT_QUOTES,'UTF-8'); ?>
    </button>
  </div>
</form>
