?>
	<?php 
echo $project->outputLocation();
?>
</small></p>
</h3>
<?php 
if ($project->recentPost() && $user->getId() == $project->getUserId()) {
    ?>
	<div class="alert alert-success storage-request-notice">
		<p>Now you've made a storage request don't forget:</p>
		<div><a target="_blank" href="<?php 
    echo $project->getMailingListURL();
    ?>
" class="btn btn-success">Read the mailing list topic</a> this is where other members <?php 
    if (!$project->isShortTerm()) {
        ?>
 can choose to expediate your request (if its urgent) or unapprove it.<?php 
    } else {
        ?>
 can raise any concerns they have with your request.<?php 
    }
    ?>
</div>
		<div><a target="_blank" href="/storage/print/<?php 
    echo $project->getId();
    ?>
" class="btn btn-success">Print DO NOT HACK label</a> after it's been <strong>approved</strong> and attach it to your project. This is to let other members know your project is accounted for. You can print it at the kiosk on the ground floor outside the classroom.</div>
		<?php 
    if ($project->getState() == 'Pending Approval') {
        ?>
         $logDetails = "Request created";
         $project->setState('Pending Approval');
         $initial = true;
     } else {
         $auto = false;
         $logDetails = "Request updated";
         $initial = false;
     }
     $project->setUpdatedDate(date('Y-m-d'));
     $project->setUserId($user->getId());
     $project->store();
     $project->submitLog($logDetails, $user->getId());
     // post to Google Groups
     $projectUser = new User($project->getUserId());
     $message = '<strong>' . $project->getName() . "</strong><br>\n" . "https://london.hackspace.org.uk/storage/" . $project->getId() . "<br>\n" . "by <a href=\"https://london.hackspace.org.uk/members/member.php?id=" . $project->getUserId() . "\">" . htmlspecialchars($projectUser->getFullName()) . "</a><br>\n" . $project->outputDates() . "<br>\n" . $project->outputDuration() . ' ' . $project->outputLocation() . "<br>\n<br>\n" . nl2br(stripslashes($project->getDescription())) . "<br>\n<br>\n";
     if ($auto && !$project->isShortTerm()) {
         $message .= "<strong>***If no one replies to this topic the request will be automatically approved within " . $project->automaticApprovalDuration() . " days.***</strong>";
     }
     $project->submitMailingList($message, $initial);
     // is this a short term request? If so automatically approve it
     if ($project->isShortTerm()) {
         $project->setState('Approved');
         $project->store();
         // log the update
         $logmsg = 'Short term storage detected, status automatically changed to ' . $project->getState();
         $project->submitLog($logmsg, false);
         $project->submitMailingList($logmsg);
     }
     fURL::redirect("/storage/{$project->getId()}");
 } catch (fValidationException $e) {
     echo $e->printMessage();