<h1><?php echo htmlspecialchars(t('Transit simulation'),ENT_QUOTES,'UTF-8'); ?></h1>
<form <?php echo MtHaml\Runtime::renderAttributes(array(array('method', 'get'), array('action', (url('plateAuthorization/CheckWhitelistPlate')))), 'html5', 'UTF-8'); ?>>
  <label for="input-plate">
    <?php echo htmlspecialchars(t('Plate'),ENT_QUOTES,'UTF-8'); ?>
  </label>
  <input id="input-plate" class="alphanumeric" name="plate" type="text" />
  <br />
  <label for="input-gate">
    <?php echo htmlspecialchars(t('Gate'),ENT_QUOTES,'UTF-8'); ?>
  </label>
  <select id="input-gate" name="gate" type="text">
    <?php foreach($gates as $gate => $gateDescr) { ?>
      <option <?php echo MtHaml\Runtime::renderAttributes(array(array('value', $gate)), 'html5', 'UTF-8'); ?>><?php echo htmlspecialchars("[$gate] $gateDescr",ENT_QUOTES,'UTF-8'); ?></option>
    <?php } ?>
  </select>
  <br />
  <label for="input-datetime">
    <?php echo htmlspecialchars(t('Date/Time'),ENT_QUOTES,'UTF-8'); ?>
  </label>
  <input id="input-datetime" name="time" type="datetime-local" />
  <br />
  <?php echo CHtml::dropDownList('nationality', '', array_merge(array('' => ''), CountryList::localized())); ?>
  <br />
  <input type="submit" />
</form>
