<?php $gateGroup = new GateGroupPresenter($gateGroup); ?>
<script type="text/javascript">
  updateGateCssClass("<?php echo htmlspecialchars($gateGroup->ID,ENT_QUOTES,'UTF-8'); ?>", "<?php echo htmlspecialchars($gateGroup->getStatusClass(),ENT_QUOTES,'UTF-8'); ?>")
</script>
<?php $gates = $gateGroup->gates; ?>
<?php foreach($gates as $gate) { ?>
  <?php $gate = new GatePresenter($gate); ?>
  <?php $this->renderPartial('gates/_gateBox', array('gate' => $gate, 'gateGroup' => $gateGroup, 'viewMode' => $viewMode)); ?>
<?php } ?>
