if ($_POST && $_POST['location_id'] == $location->getId()) {
        echo 'selected';
    } else {
        if ($project->getLocationId() == $location->getId()) {
            echo 'selected';
        }
    }
    echo '>' . $location->getName() . '</option>';
}
?>
                    </select>
                    <input type="text" id="location" name="location" class="form-control" placeholder="Where abouts exactly?" value="<?php 
if ($_POST && $_POST['location']) {
    echo $_POST['location'];
} else {
    if ($project->getLocation()) {
        echo $project->getLocation();
    }
}
?>
"/>
                    <p class="alert alert-warning tip-loading-bay hide" role="alert"><span class="glyphicon glyphicon-star"></span> The loading bay must be kept clear at all times.</p>
                </div>
            </div>
            <div class="form-group">
                <label for="from_date" class="col-sm-3 control-label">Storage Dates</label>
                <div class="col-sm-9">
                    arrival <input type="date" placeholder="yyyy-mm-dd" value="<?php 
if ($_POST && $_POST['from_date']) {
    echo $_POST['from_date'];
} else {