<div class="col-md-7">
    <form method="POST" action="<?php 
echo '/venues/' . $model['venueId'] . '/deletehall/' . $model['hallId'];
?>
">
        <?php 
\RedDevil\ViewHelpers\CSFRToken::create()->setAttribute('name', 'ValidationToken')->render();
?>
        <h4>Are you sure you want to delete the hall?</h4>
        <input type="submit" class="btn btn-danger" value="Delete"/>
        <a href="<?php 
echo '/venues/details/' . $model['venueId'];
?>
" class="btn btn-info">Cancel</a>
    </form>
</div>
/** @var \RedDevil\ViewModels\VenueRequestViewModel[] $model */
use RedDevil\ViewHelpers\CSFRToken;
use RedDevil\ViewHelpers\Form;
use RedDevil\ViewHelpers\SubmitButton;
use RedDevil\ViewHelpers\TextField;
?>

<div class="col-md-4">
    <h2>Send Venue Request</h2>
    <?php 
?>
    <div class="panel panel-default">
        <div class="panel-heading"><strong>Choose venue</strong></div>
        <ul class="list-group">
            <?php 
foreach ($model as $venue) {
    $form = new Form('add-venue-request-form', '/conferences/addvenuerequest');
    $form->setAttribute('method', 'post');
    $form->setNewLineAfter(false);
    $form->setAttribute('action', '/conferences/addvenuerequest');
    $form->addTextField(TextField::create()->setAttribute('id', 'conferenceId')->setAttribute('hidden', 'hidden')->setNewLineAfter(false)->setNewLineBefore(false)->setAttribute('name', 'conferenceId')->setAttribute('value', $venue->getConferenceId()));
    $form->addTextField(TextField::create()->setAttribute('id', 'venueId')->setAttribute('name', 'venueId')->setAttribute('hidden', 'hidden')->setNewLineAfter(false)->setNewLineBefore(false)->setAttribute('value', $venue->getVenueId()));
    $form->addSubmitButton(SubmitButton::create()->setAttribute('class', 'btn btn-link')->setNewLineAfter(false)->setNewLineBefore(false)->setAttribute('value', $venue->getVenueTitle()));
    $form->addCSRFToken(CSFRToken::create()->setNewLineAfter(false)->setNewLineBefore(false)->setAttribute('name', 'ValidationToken'));
    $form->render();
}
?>
        </ul>
    </div>
</div>
<?php

use RedDevil\ViewHelpers\ActionLink;
use RedDevil\ViewHelpers\CSFRToken;
use RedDevil\ViewHelpers\Form;
use RedDevil\ViewHelpers\SubmitButton;
use RedDevil\ViewHelpers\TextField;
?>
<div class="col-md-9">
    <h2>Add hall</h2>

    <?php 
$form = new Form('add-hall-form', '/venues/createhall');
$form->setAttribute('method', 'post');
$form->setAttribute('action', '/venues/createhall');
$form->addTextField(TextField::create()->setAttribute('id', 'id')->setAttribute('name', 'venueId')->setAttribute('value', $model)->setAttribute('hidden', 'hidden'));
$form->addTextField(TextField::create()->setAttribute('class', 'form-control')->setAttribute('id', 'title')->addLabel('Name', true)->setAttribute('name', 'title'));
$form->addTextField(TextField::create()->setAttribute('class', 'form-control')->setAttribute('id', 'capacity')->addLabel('Capacity', true)->setAttribute('name', 'capacity'));
$form->addSubmitButton(SubmitButton::create()->setAttribute('class', 'btn btn-default')->setNewLineAfter(false)->setAttribute('value', 'Create'));
$form->addActionLink(ActionLink::create()->setNewLineBefore(false)->setAttribute('id', 'cancel')->setAttribute('href', '/venues/own')->setData('Cancel')->setAttribute('class', 'btn btn btn-primary'));
$form->addCSRFToken(CSFRToken::create()->setAttribute('name', 'ValidationToken'));
$form->render();
?>
</div>
                            </span></a></li>
                    <li><a href="/messages/index">Messages <span class="badge">11</span></a></li>
                    <?php 
    if (HttpContext::getInstance()->getIdentity()->isInRole('admin')) {
        echo "<li><a href=\"/admin/manageRoles\">Admin </a></li>";
    }
    ?>
                </ul>

            <?php 
}
?>

            <form class="navbar-form navbar-left" role="search" action="/search/find" method="post">
                <?php 
\RedDevil\ViewHelpers\CSFRToken::create()->setAttribute('name', 'ValidationToken')->setNewLineAfter(false)->setNewLineBefore(false)->render();
?>
                <div class="form-group">
                    <input type="text" name="keyword" class="form-control" placeholder="Search">
                </div>
            </form>

            <ul class="nav navbar-nav navbar-right">
                <?php 
if (HttpContext::getInstance()->getIdentity()->isAuthorised()) {
    ?>
                    <li><a href="/account/changePassword">Hello, <?php 
    echo HttpContext::getInstance()->getIdentity()->getUsername();
    ?>
!</a></li>
                    <li><a href="/account/logout">Logout</a></li>