Jump to content

Ticket View


CavalloComm

Recommended Posts

I have made a new ticket status called "Closed-Locked" which means it's already been billed out, and the ticket should not be re-opened. I know they could still do it by responding to it in email, but at least as a help, does anyone know how to modify the ticket view template just a bit to take out the buttons that say "Close" and "Reply" when the ticket is in that status?

Link to comment
Share on other sites

Something like (untested) this:

 

{if $status neq 'closed-locked'}
   <input type="button" value="Reply" class="btn primary" onclick="jQuery('#replycont').slideToggle()" />
{/if} 

 

replacing

   <input type="button" value="Reply" class="btn primary" onclick="jQuery('#replycont').slideToggle()" /> 

 

at around line 56 in viewticket.tpl of your selected theme.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

After checking it out it I can see why it doesn't work. $status contains HTML formatting as well. Replace the line with the following:

 

{if $status|strip_tags|replace:' ':'' neq 'closed-locked'}

 

The forum code display is adding extra spaces. It should be:

 

{if $status|strip_tags|replace:' ':'' neq 'closed-locked'}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated