column changes lock/unlock as text

Moderator: crythias

Locked
marty210578
Znuny newbie
Posts: 22
Joined: 04 Apr 2011, 16:15
Znuny Version: OTRS 3.0.10
Real Name: Martijn

column changes lock/unlock as text

Post by marty210578 »

I would like to add a column that shows simple locked/unlocked as a text>
I tried to add the following code:

Code: Select all

<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
            <td class="W10pc">
                <a href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$Data{"TicketID"}" title="$QData{"Title"}" class="AsBlock MasterActionLink">$Data{"TicketNumber"}</a>
            </td>
            <td width="60%">
            <div title="$QData{"Title"}">$QData{"Title","70"}</div>
          </td>
          <td NOWRAP>$QData{"Queue"}</td> <!-- add if you want to see the Queue -->
          <td NOWRAP>$QData{"CustomerID","15"}</td> <!-- add if you want to see the Company -->
          <td NOWRAP>$QData{"Owner"}</td> <!-- add this line for the owner-->
          <td NOWRAP>$QData{"Locked::Selected"}<a href="#" id="Dashboard$QData{"Name"}Locked">$Text{"Locked Tickets"} ($QData{"Locked"})</a></td> <!-- add this line for the responsible -->
          <td NOWRAP>$QData{"Time"}</td>
         </tr>
<!-- dtl:block:ContentLargeTicketGenericRow -->
This doesn't show the text "locked" or "unlocked", it simply gives me a sort of lick with text "locked tickets" which is obvious. But how can i make this smart so that it analyzes the locked/unlocked status and shows this in the dashboard?
Tried all kind of codes and this is what i came up with untill know.

Could somebody assist and help me out here??
appreciate the help
OTRS Version OTRS 3.0.10
ITSM 3.05
Locked