<?php /*
foreach($this->_['entries'] as $entry){
?>

    <h2><a href="?view=entry&id=<?php echo $entry['id'] ?>"><?php echo $entry['title']; ?></a></h2>
    <p><?php echo $entry['content']; ?></p>

<?php
} */
?>

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h1 class="page-header"><?php echo $this->_['label']->getName(); ?></h1>

    <div class="row">
        <div role="tabpanel">
            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#mails" aria-controls="mails" role="tab" data-toggle="tab">Mails</a></li>
                <li role="presentation"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Dokumente</a></li>
                <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
                <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
                <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
                <li role="presentation"><a href="#calls" aria-controls="settings" role="tab" data-toggle="tab">Calls</a></li>
                <div class="pull-right">
                    <a id="new-document" href="ajax.php?action=getNewDocumentBox" type="button" class="btn btn-success">Neues Dokument</a>
                    <a href="ajax.php?action=getNewCallBox&labelID=<?php echo $this->_['label']->getId(); ?>" id="new-call" class="btn btn-primary" role="button">Neuer Anruf</a>
                </div>

            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="mails">
                    <?php echo $this->_['maillist']; ?>
                </div>
                <div role="tabpanel" class="tab-pane" id="home">
                    <?php echo $this->_['documentlist']; ?>
                </div>
                <div role="tabpanel" class="tab-pane" id="profile">PROFILE</div>
                <div role="tabpanel" class="tab-pane" id="messages">MESSAGE</div>
                <div role="tabpanel" class="tab-pane" id="settings">SETTINGS</div>
                <div role="tabpanel" class="tab-pane" id="calls">
                    <?php echo $this->_['calllist']; ?>
                </div>
            </div>

        </div>
    </div>
</div>
