}
}
?>
"/> or <?php 
echo $user->getEmail();
?>
 (if left blank)
                    <p class="help-block">Your email address (above) will be made available to all members in case there's a problem with your project while it's being stored in the space.</p>
                </div>
            </div>
            <div class="form-group location-fields">
                <label for="location_id" class="col-sm-3 control-label">Location</label>
                <div class="col-sm-9">
                    <select class="form-control" id="location_id" name="location_id">
                        <option value="" disabled <?php 
if ((!$_POST || !$_POST['location_id']) && !$project->getLocationId()) {
    echo 'selected';
}
?>
></option>
                        <?php 
foreach ($locations as $location) {
    echo '<option value="' . $location->getId() . '" ';
    if ($_POST && $_POST['location_id'] == $location->getId()) {
        echo 'selected';
    } else {
        if ($project->getLocationId() == $location->getId()) {
            echo 'selected';
        }
    }
    echo '>' . $location->getName() . '</option>';