templates/history/index.tpl
author Markus Bröker <broeker.markus@googlemail.com>
Thu, 12 Nov 2015 22:01:14 +0100
changeset 4 d9298ea00d20
parent 0 templates/history/historie.tpl@4869aea77e21
permissions -rw-r--r--
Templates nutzen die neue MVC-Struktur

<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>