if (isset($_GET['action'])) {
    switch ($_GET['action']) {
        case 'view':
            $action = $_GET['action'];
    }
}
?>

<div class="wrap">

	<?php 
if ($action == 'view') {
    ?>

		<?php 
    $entry = new \OutSpokane\ParadeEntry(isset($_GET['id']) ? $_GET['id'] : 0);
    ?>

		<?php 
    if ($entry->getCreatedAt() === NULL) {
        ?>

			<div class="alert alert-danger">
				Entry Not Found
			</div>

		<?php 
    } else {
        ?>

			<h1>
        ?>
"
			data-year="<?php 
        echo $this->getAttribute('year');
        ?>
"
			class="<?php 
        echo $this->getAttribute('form');
        ?>
">

			<div id="pride-form-step-1">

				<?php 
        \OutSpokane\Entry::drawDefaultFormFields();
        $parade = new \OutSpokane\ParadeEntry();
        $entry_types = $parade->getEntryTypeList();
        ?>

				<div class="row">
					<div class="col-md-3">
						<label>Entry Type(s)</label>
					</div>
					<div class="col-md-6">
						<?php 
        foreach ($entry_types as $entry_type) {
            ?>
							<label>
								<input type="checkbox" class="parade_entry_type" value="<?php 
            echo esc_html($entry_type);
            ?>