<html>
    <head>
        <title>[% $Title %]</title>
    </head>
    <body>
        <h2>Workflow '[%  $Activity->WFIDescr %]': Die Aktivität '[%  $Activity->Description %]' wurde abgeschlossen.</h2>
        <div style="border:1px;border-color:black;">
            <table width="100%" class="listview formview" cellspacing="0" border="0" >
                <thead>
                    <tr>
                        <th colspan="5" style="background: gray;color: #fff;font-weight: 400;padding: 8px 10px;text-align: left;">
                            <strong>
                                Aktivität <strong>[%  $Activity->Description %]</strong> abgeschlossen.
                            </strong>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext('Workflow') %] :</td>
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[%  $Activity->WFIDescr %] </td>
                    </tr>
                    <tr >
                        <td style="background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(255, 255, 255, 1) 1%, rgba(238, 238, 238, 1) 100%) repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext('Aktivität') %] :</td>
                        <td style="background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(255, 255, 255, 1) 1%, rgba(238, 238, 238, 1) 100%) repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[%  $Activity->Description %]</td>
                    </tr>
                    <tr >
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext('Initiator') %] :</td>
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $WFI.Username %] ([% $WFI.Name %])</td>
                    </tr>
                    <tr >
                        <td style="    background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(255, 255, 255, 1) 1%, rgba(238, 238, 238, 1) 100%) repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext('Startdatum') %] :</td>
                        <td style="    background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(255, 255, 255, 1) 1%, rgba(238, 238, 238, 1) 100%) repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $WFI.StartDate  %]</td>
                    </tr>
                    <tr >
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext('Status') %] :</td>
                        <td style="background: #fff none repeat scroll 0 0;border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">[% $user->gettext($WFI.Status) %]</td>
                    </tr>
                </tbody>
            </table>

            <hr/>
            <h3>Aktivitäten des Workflows</h3>
            <table width="100%" cellspacing="1" border="1" >
                <thead>
                    <tr>
                        <th colspan="5" style="background: gray;color: #fff;font-weight: 400;padding: 8px 10px;text-align: left;">
                            <strong>
                                [% $user->gettext('Aktivitäten') %]
                            </strong>
                        </th>
                    </tr>
                    <tr class="fields" style="background-color: grey; border-color: #85909A;border-style: solid;border-width: 0 0 1px 1px;color: #000;padding: 5px 10px; font-size: 1.2em;">
                        <td>[% $user->gettext('Bezeichnung') %]</td>
                        <td>[% $user->gettext('Erstellt am') %]</td>
                        <td>[% $user->gettext('Letzte Bearbeitung') %]</td>
                        <td>[% $user->gettext('Adressat') %]</td>
                        <td>[% $user->gettext('Status') %]</td>
                    </tr>
                </thead>
                <tbody>
                    [% foreach from=$WFI.aGantt item=activity %]
                        [% if $activity.StatusID != 10 && $activity.StatusID != 15 && $activity.StatusID != 14 %]                        
                            [% cycle values="lightgrey,whitesmoke" assign="BG_color" %]

                            <tr  style="background: [% $BG_color %];  border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">
                                <td valign="top" style="white-space:normal;" rowspan="2">[% $activity.Descr %]</td>
                                <td valign="top" nowrap="nowrap">&nbsp;[% $activity.StartDate|date_format:"%d.%m.%Y %H:%M" %]&nbsp;</td>
                                <td valign="top" nowrap="nowrap">&nbsp;[% $activity.EndDate|date_format:"%d.%m.%Y %H:%M" %]&nbsp;</td>
                                [% if $activity.O->TargetType == 1 %]
                                    <td valign="top" nowrap="nowrap">&nbsp;[% $activity.tuser_username %] ([% $activity.tuser_name %])&nbsp;</td>
                                [% elseif $activity.O->TargetType == 2 %]
                                    <td valign="top" nowrap="nowrap">&nbsp;Gruppe: [% $activity.tgroup_name %] </td>
                                [% elseif $activity.O->TargetType == 3 %]
                                    <td valign="top" nowrap="nowrap">Initiator: &nbsp;[% $activity.tuser_username %] ([% $activity.tuser_name %])&nbsp;</td>
                                [% elseif $activity.O->TargetType == 4 %]
                                    <td valign="top" nowrap="nowrap">
                                        <strong>Aus vorhergehnder Aktivität</strong>
                                        [% if $activity.O->TargetUserID %]
                                            <br/>[% $activity.tuser_username %] ([% $activity.tuser_name %])&nbsp;
                                        [% /if %]
                                        [% if $activity.O->TargetGroupID %]
                                            <br/>Gruppe: [% $activity.tgroup_name %]
                                        [% /if %]
                                    </td>
                                [% /if %]
                                <td valign="top" nowrap="nowrap">&nbsp;[% $user->gettext($activity.Status) %]&nbsp;</td>
                            </tr>
                            <tr  style="background: [% $BG_color %];  border-color: #d0d7e0;border-image: none;border-style: solid;border-width: 0 0 1px 1px;">
                                <td>[% $user->gettext('Formulardaten') %]</td>
                                <td  colspan="3">
                                    &nbsp;
                                    [% if $activity.O->TaskType == 2 %]
                                        [% $activity.O->FormClass->showFormContent() %]
                                    [% else %]
                                        [% $activity.O->TaskText %]
                                    [% /if %]
                                    &nbsp;
                                </td>
                            </tr>
                        [% /if %]                        
                    [% /foreach %]
                </tbody>
            </table>
        </div>
    </body>
</html>