templates/history/historie.tpl
author Markus Bröker <broeker.markus@googlemail.com>
Thu, 12 Nov 2015 14:39:16 +0100
changeset 0 4869aea77e21
permissions -rw-r--r--
Bröker-Framework BFW-1

<h2 class="text-center">Historie des Tickets Nr. {$ticket->getId()}</h2>
<hr/>

<table border="1" style="width: 100%">
    <tr>
        <th>Aktion</th>
        <th>Status</th>
        <th>Benutzer</th>
        <th>Betreff</th>
        <th>Nachricht</th>
        <th>Gesperrt</th>
        <th>Letzter Zugriff</th>
    </tr>

    {foreach $histories as $history}
        {assign var="coloredRow" value=""}
        {if $history->getLocked() == 1}
            {assign var="coloredRow" value=" yellow-row"}
        {/if}

        {if $history->getStatus_Id() == $tStatus::GESCHLOSSEN}
            {assign var="coloredRow" value=" red-row"}
        {/if}
        <tr class="clickable{$coloredRow}" id="tid{$ticket->getId()}">
            <td>{$history->getActionName()}</td>
            <td>{$history->getStatusName()}</td>
            <td>{$history->getUsername()}</td>
            <td>{$history->getSubject()}</td>
            <td>{$history->getMessage()}</td>
            <td>{$history->getLocked()}</td>
            <td>{$history->getLast_Access()}</td>
        </tr>
    {/foreach}
</table>