templates/tickets/index.tpl
changeset 4 d9298ea00d20
parent 0 4869aea77e21
equal deleted inserted replaced
3:396b6d2e0466 4:d9298ea00d20
       
     1 <h2 class="text-center">Ticketverwaltung</h2>
       
     2 <hr/>
       
     3 
       
     4 <div class="container-fluid">
       
     5     <div class="row">
       
     6         <div class="col-lg-12">
       
     7             {include file="tickets/ticketanlegen.tpl"}
       
     8         </div>
       
     9 
       
    10         <br class="clearfix"/>
       
    11     </div>
       
    12 </div>
       
    13 
       
    14 {if $tickets != null}
       
    15     <br class="clearfix"/>
       
    16     <div class="container-fluid">
       
    17         <div class="row">
       
    18             <div class="col-lg-12">
       
    19                 <table class="achtel">
       
    20                     <tr>
       
    21                         <th>Nummer</th>
       
    22                         <th>Besitzer</th>
       
    23                         <th>Betreff</th>
       
    24                         <th>Nachricht</th>
       
    25                         <th>Status</th>
       
    26                         <th>Aktion1</th>
       
    27                         <th>Aktion2</th>
       
    28                         <th>Aktion3</th>
       
    29                     </tr>
       
    30                 </table>
       
    31             </div>
       
    32         </div>
       
    33 
       
    34         <div class="row">
       
    35             {foreach $tickets as $ticket}
       
    36                 <div class="col-lg-12">
       
    37                     <form action="/tickets/" method="post">
       
    38                         <table class="achtel">
       
    39                             {assign var="coloredRow" value=""}
       
    40                             {if $ticket->getLocked()}
       
    41                                 {assign var="coloredRow" value="yellow-row"}
       
    42                             {/if}
       
    43 
       
    44                             {if $ticket->getStatus_Id() == $tStatus::GESCHLOSSEN}
       
    45                                 {assign var="coloredRow" value="red-row"}
       
    46                             {/if}
       
    47 
       
    48                             <tr class="{$coloredRow}">
       
    49                                 <td><input readonly='readonly' type="text" name="tid" value="{$ticket->getId()}"/></td>
       
    50                                 <td><input readonly='readonly' type="text" name="username" value="{$tUser->getFormattedUsername($ticket->getUser_Id())}"/></td>
       
    51                                 <td><input readonly='readonly' type="text" name="subject" value="{$ticket->getSubject()}"/></td>
       
    52                                 <td><input readonly='readonly' type="text" name="message" value="{strip_tags(html_entity_decode($ticket->getMessage()))}"/></td>
       
    53                                 <td><input readonly='readonly' type="text" name="status" value="{$tStatus->getFormattedStatus($ticket->getStatus_Id())}"/></td>
       
    54 
       
    55                                 {if $group_id != $tGroup::GUEST}
       
    56                                     {if $group_id == $tGroup::SUPPORTER && $ticket->getLocked() == 0}
       
    57                                         <td><input type="submit" name="laden" value="annehmen"/></td>
       
    58                                     {else}
       
    59                                         <td><input type="submit" name="laden" value="laden"/></td>
       
    60                                     {/if}
       
    61                                 {else}
       
    62                                     <td>Bearbeiten ist gesperrt</td>
       
    63                                 {/if}
       
    64 
       
    65                                 {if $group_id == $tGroup::MANAGER || $group_id == $tGroup::ADMIN}
       
    66                                     <td><input type="submit" name="loeschen" value="löschen"/></td>
       
    67                                 {else}
       
    68                                     <td>Löschen ist gesperrt</td>
       
    69                                 {/if}
       
    70                                 <td><input type="submit" name="historie" value="Historie"/></td>
       
    71                             </tr>
       
    72                         </table>
       
    73                     </form>
       
    74                 </div>
       
    75             {/foreach}
       
    76         </div>
       
    77     </div>
       
    78 {/if}