<h4 class="text-center">[% $wf.Description %]</h4>
<table class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr class="fields">
            <td>
                [% $user->gettext('Pos') %]
            </td>
            <td>
                [% $user->gettext('Aktivit&auml;t') %]
            </td>
            <td>
                [% $user->gettext('Adressaten') %]
            </td>
            <td>
                [% $user->gettext('Voraussetzung <br />(Aktivität o. Datum)') %]
            </td>
            <td>
                [% $user->gettext('Dauer (in Tagen)') %]
            </td>
            <td>
                [% $user->gettext('Benachrichtigung') %]
            </td>
            <td title="[% $user->gettext('Kritischer Pfad')%]">
                [% $user->gettext('Kr.Pfad') %]
            </td>
        </tr>
    </thead>
    <tbody>
        [% foreach from=$wf.aGantt item=Activity key=pos %]
            <tr class="ActThread_[% $Activity.ThreadID2 %] Activity_[% $Activity.aid %]">
                <td>
                    [% $pos %]
                </td>
                <td>
                    [% $Activity.Descr %]
                    [% if $Activity.StartWFDID %]
                        <strong><br/>[% $user->gettext('Startet Workflow') %] [% $Activity.startWFDescr %]</strong>
                        [% /if %]
                </td>
                <td>
                    [% if $Activity.TargetType == 1 %]
                        [% $Activity.TargetUsers %]
                    [% elseif $Activity.TargetType == 2 %]
                        [% $Activity.TargetGroups %]
                    [% elseif $Activity.TargetType == 3 %]
                        [% $user->gettext('Initiator') %]
                    [% elseif $Activity.TargetType == 4 %]
                        [% $user->gettext('Aus vorhergehender Aktivität') %]
                    [% /if %]
                    [% if $Activity.Warning.ContactWarning %]
                        <img src="images/important.gif" alt="[% $user->gettext('Adressat fehlt') %]" title="[% $user->gettext('Adressat fehlt') %]" width="16" height="16" border="0">
                    [% /if %]
                </td>
                <td>
                    ([% $Activity.condition %])
                    <span id="DefActsFor_[% $Activity.aid %]">
                        [% foreach from=$Activity.O.DepActivitys item=DepAct %]
                            <br/><strong title='Aktivität'>[% $DepAct.Descr %]</strong>
                            [% if $DepAct.Field %]
                                - <span title='Feld'>[% $DepAct.Field %]:</span> <span title='Wert'>[% $DepAct.Value %]</span>      
                            [% /if %]

                        [% /foreach %]
                    </span>                                        

                    [% if $Activity.Warning.AktivityDateWarning %]
                        <img src="images/important.gif" alt="[% $user->gettext('Fälligkeitszeit vor FEZ') %]" title="[% $user->gettext('Fälligkeitszeit vor FEZ') %]" width="16" height="16" border="0">
                    [% /if %]
                </td>
                <td>
                    [% $Activity.Duration %](+[% $Activity.O->ActivityDate %])
                </td>
                <td>
                    [% if $Activity.NotificationType == 1 %]
                        [% $Activity.nuser_name %] ([% $Activity.nuser_username %])
                    [% else %]
                        [% $Activity.ngroup_name %]
                    [% /if %]
                </td>
                <td>
                    [% if $Activity.cp && $Activity.Puffer <= 0 %]
                        <span style="color:red;" title="[% $user->gettext('Kritischer Pfad - Gibt es in diesen Aktivitäten Verzögerungen, verzögert sich evtl. der ganze Workflow') %]"> [% $user->gettext('K') %] </span>
                    [% /if %]
                </td>

            </tr>
            [% if $Activity.StartWFDID %]
                <tr >
                    <td colspan="7" id="RowForWFDef_[% $Activity.StartWFDID %]"> 
                        <span onclick="showWFDef([% $Activity.StartWFDID %]);" class="btn btn-outline-secondary btn-block">[% $user->gettext('Aktivitäten von Workflow ') %]<strong>[% $Activity.startWFDescr %]</strong>[% $user->gettext('anzeigen') %]</span>
                    </td>
                </tr>
            [% /if %]    
        [% /foreach %]
    </tbody>
</table>