<html>
    <head>
        <title>[% $user->gettext('Adressat:') %] [% $Title %] (#[% $TicketID %])</title>
    </head>
    <body>
        
        <table border="0">
            <tr>
                <td colspan="3">[% $user->gettext('Adressat:') %] [% $Title %] (#[% $TicketID %])</td>
            </tr>
            <tr><td colspan="3"><hr /></td></tr>
            <tr><td colspan="3"><br /></td></tr>
            <tr>
                <td>[% if $hmcompany|strpos:"AVAG HOLDING" !== false %][% $user->gettext('Zuletzt ge&auml;ndert am') %][% else %][% $user->gettext('Letzte Änderung') %][% /if %]</td>
                <td colspan="2">:</td>
            </tr>
            <tr><td colspan="3">[% $LastEvent %]</td></tr>
            <tr><td colspan="3"><br /></td></tr>
            <tr>
                <td>[% $user->gettext('Beschreibung') %]</td>
                <td colspan="2">:</td>
            </tr>
            <tr><td colspan="3">[% $Description %]</td></tr>
            <tr><td colspan="3"><br /></td></tr>
            <tr>
                <td valign="top">[% $user->gettext('Kontakt') %]</td>
                <td valign="top">:</td>
                <td>
                    [% if $ContactCompany|trim != "" %][% $ContactCompany %]<br/>[% /if %]
                    [% if $ContactName|trim != "" %][% $ContactName %]<br/>[% /if %]
                    [% if $ContactZip|trim != "" || $ContactCity|trim != ""%][% $ContactZip %] [% $ContactCity %]<br/>[% /if %]
                    [% if $ContactMail|trim != "" %]<a href="mailto:[% $ContactMail %]">[% $ContactMail %]</a><br/>[% /if %]
                    [% if $Tools->FCS_Count($ContactStructure) %]
                        ([% foreach from=$ContactStructure item=structure name=contactstructure %][% if $smarty.foreach.contactstructure.iteration > 1 %], [% /if %][% $structure %][% /foreach %])
                    [% /if %]
                </td>
            </tr>
            <tr><td colspan="3"><br /></td></tr>
            <tr>
                <td>[% $user->gettext('Erstellt am') %]</td>
                <td>:</td>
                <td>[% $CreateDate|strtotime|date_format:"%d.%m.%Y %H:%M" %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Erstellt von') %]</td>
                <td>:</td>
                <td>[% $CreateBy %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Aktualisiert am') %]</td>
                <td>:</td>
                <td>[% $UpdateDate|strtotime|date_format:"%d.%m.%Y %H:%M" %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Aktualisiert von') %]</td>
                <td>:</td>
                <td>[% $UpdateBy %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Fälligkeitstermin') %]</td>
                <td>:</td>
                <td>[% $DesireDate|strtotime|date_format:"%d.%m.%Y %H:%M" %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Priorität') %]</td>
                <td>:</td>
                <td>[% $Priority %]</td>
            </tr>
            <tr>
                <td>[% $user->gettext('Status') %]</td>
                <td>:</td>
                <td>[% $Status %]</td>
            </tr>
            [% if $Category1 != '' %]
                <tr>
                    <td>[% $user->gettext('Kategorie 1') %]</td>
                    <td>:</td>
                    <td>[% $Category1 %]</td>
                </tr>
            [% /if %]
            [% if $Category2 != '' %]
                <tr>
                    <td>[% $user->gettext('Kategorie 2') %]</td>
                    <td>:</td>
                    <td>[% $Category2 %]</td>
                </tr>
            [% /if %]
            [% if $TicketURL != '' %]
                <tr>
                    <td>[% $user->gettext('Link') %]</td>
                    <td>:</td>
                    <td><a href="[% $TicketURL %]" target="_blank">[% $TicketURL %]</a></td>
                </tr>
            [% /if %]
            [% if $TicketReference != '' %]
                <tr>
                    <td>[% $user->gettext('Referenzticket') %]</td>
                    <td>:</td>
                    <td><a href="[% $TicketReference %]" target="_blank">[% $TicketReference %]</a></td>
                </tr>
            [% /if %]
        </table>

    </body>
</html> 