Reorganised eventhistory view script, still far from being perfect

This commit is contained in:
Thomas Gelf 2014-03-04 13:29:02 +00:00
parent 635cdcbbc5
commit 5c5268651c

View File

@ -1,33 +1,18 @@
<div class="row">
<div class="pull-left">
<h1>History</h1>
</div>
<div class="pull-right">
<div class="controls">
<?= $this->tabs->render($this); ?>
</div>
</div>
<?php if (!empty($history)): ?>
<div data-icinga-component="app/mainDetailGrid" data-icinga-grid-selection-type="single">
<div class="container pull-left">
<div class="row">
<div class="col-md-5">
<?= $this->filterBox->render($this); ?>
</div>
<div class="col-md-7">
<?= $this->sortControl->render($this); ?>
</div>
</div>
<div class="row">
<?= $this->selectionToolbar('single'); ?>
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
</div>
<div class="row">
<?= $this->selectionToolbar('single'); ?>
</div>
</div>
<table class="table table-condensed pull-left">
<div class="content">
<?php if (empty($history)): ?>
No entries found
</div>
<?php return; endif ?>
<table class="action">
<tbody>
<?php foreach ($history as $event): ?>
<?php
@ -91,8 +76,8 @@
break;
}
?>
<tr>
<td <?= !empty($class) ? 'class="' . $class . '"' : '' ?>">
<tr class="state">
<td style="width: 6em;" <?= !empty($class) ? 'class="' . $class . '"' : '' ?>">
<?= date('d.m. H:i', $event->timestamp); ?>
</td>
<td>
@ -125,9 +110,5 @@
</tbody>
</table>
<div class="container pull-left">
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
</div>
</div>
<?php endif; ?>