Blame Artworks/Webenv/Trac/0.10.4/Modern/templates/ticket.cs

Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
 

Ticket Navigation

Alain Reguera Delgado 46de3c
 with:links = chrome.links ?>
Alain Reguera Delgado 46de3c
  if:len(links.prev) || len(links.up) || len(links.next) ?>
    Alain Reguera Delgado 46de3c
       if:len(links.prev) ?>
    Alain Reguera Delgado 46de3c
        
  • Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
           var:links.prev.0.title ?>">Previous Ticket
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
       if:len(links.up) ?>
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
                        if:!len(links.next) ?> last">
    Alain Reguera Delgado 46de3c
         
    Alain Reguera Delgado 46de3c
           var:links.up.0.title ?>">Back to Query
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
       if:len(links.next) ?>
    Alain Reguera Delgado 46de3c
        
  • Alain Reguera Delgado 46de3c
         
    Alain Reguera Delgado 46de3c
           var:links.next.0.title ?>">Next Ticket →
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
      /if ?>
    Alain Reguera Delgado 46de3c
     /with ?>
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
     

    Ticket # (

    Alain Reguera Delgado 46de3c
      var:ticket.status ?>
    Alain Reguera Delgado 46de3c
      if:ticket.type ?> 
    Alain Reguera Delgado 46de3c
      /if ?>
    Alain Reguera Delgado 46de3c
      if:ticket.resolution ?>: 
    Alain Reguera Delgado 46de3c
      /if ?>)
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
     
    Alain Reguera Delgado 46de3c
      

    Opened ago

    Alain Reguera Delgado 46de3c
      if:ticket.lastmod ?>
    Alain Reguera Delgado 46de3c
       

    Last modified ago

    Alain Reguera Delgado 46de3c
      
    Alain Reguera Delgado 46de3c
     
    Alain Reguera Delgado 46de3c
     

    Alain Reguera Delgado 46de3c
     
    Alain Reguera Delgado 46de3c
      
    Alain Reguera Delgado 46de3c
       Reported by:
    Alain Reguera Delgado 46de3c
       
    Alain Reguera Delgado 46de3c
       Assigned to:
    Alain Reguera Delgado 46de3c
       
    Alain Reguera Delgado 46de3c
         if:ticket.status == 'assigned' ?> (accepted)
    Alain Reguera Delgado 46de3c
      
    Alain Reguera Delgado 46de3c
      each:field = ticket.fields ?>
    Alain Reguera Delgado 46de3c
       if:!field.skip ?>
    Alain Reguera Delgado 46de3c
        set:num_fields = num_fields + 1 ?>
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
      /each ?>
    Alain Reguera Delgado 46de3c
      set:idx = 0 ?>
    Alain Reguera Delgado 46de3c
      each:field = ticket.fields ?>
    Alain Reguera Delgado 46de3c
       if:!field.skip ?>
    Alain Reguera Delgado 46de3c
        if:fullrow && idx % 2 ?>
    Alain Reguera Delgado 46de3c
        :
    Alain Reguera Delgado 46de3c
        <td<?cs if:fullrow ?> colspan="3" headers="h_
    Alain Reguera Delgado 46de3c
          var:name(field) ?>">
    Alain Reguera Delgado 46de3c
        if:idx % 2 || fullrow ?>
    Alain Reguera Delgado 46de3c
        elif:idx == num_fields - 1 ?>
    Alain Reguera Delgado 46de3c
        /if ?>
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
      /each ?>
    Alain Reguera Delgado 46de3c
     
    Alain Reguera Delgado 46de3c
     if:ticket.description ?>
    Alain Reguera Delgado 46de3c
      <form method="get" action="<?cs var:ticket.href ?>#comment" class="printableform">
    Alain Reguera Delgado 46de3c
       
    Alain Reguera Delgado 46de3c
        

    Alain Reguera Delgado 46de3c
         if:trac.acl.TICKET_APPEND ?>
    Alain Reguera Delgado 46de3c
         
    Alain Reguera Delgado 46de3c
          <input type="hidden" name="replyto" value="description" />
    Alain Reguera Delgado 46de3c
          <input type="submit" value="Reply" title="Reply, quoting this description" />
    Alain Reguera Delgado 46de3c
         
    Alain Reguera Delgado 46de3c
         /if ?>
    Alain Reguera Delgado 46de3c
         Description 
    Alain Reguera Delgado 46de3c
         if:ticket.description.lastmod ?>(Last modified by )
    Alain Reguera Delgado 46de3c
         /if ?>
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       
    Alain Reguera Delgado 46de3c
      </form>
    Alain Reguera Delgado 46de3c
     /if ?>
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    <small></small>
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c

    Change History

    Alain Reguera Delgado 46de3c
    Alain Reguera Delgado 46de3c
     each:change = ticket.changes ?>
    Alain Reguera Delgado 46de3c
     <form method="get" action="<?cs var:ticket.href ?>#comment" class="printableform">
    Alain Reguera Delgado 46de3c
     
    Alain Reguera Delgado 46de3c
      

    id="comment:">

    Alain Reguera Delgado 46de3c
       if:change.cnum ?>
    Alain Reguera Delgado 46de3c
        if:trac.acl.TICKET_APPEND ?>
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
         <input type="hidden" name="replyto" value="<?cs var:change.cnum ?>" />
    Alain Reguera Delgado 46de3c
         <input type="submit" value="Reply" title="Reply to comment <?cs var:change.cnum ?>" />
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
        /if ?>
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
         set:nreplies = len(ticket.replies[change.cnum]) ?>
    Alain Reguera Delgado 46de3c
         if:nreplies || change.replyto ?>(
    Alain Reguera Delgado 46de3c
          if:change.replyto ?>in reply to: 
    Alain Reguera Delgado 46de3c
           call:commentref('↑ ', change.replyto) ?>; 
    Alain Reguera Delgado 46de3c
          /if ?>
    Alain Reguera Delgado 46de3c
          if nreplies ?>
    Alain Reguera Delgado 46de3c
           call:plural('follow-up', nreplies) ?>: 
    Alain Reguera Delgado 46de3c
           each:reply = ticket.replies[change.cnum] ?>
    Alain Reguera Delgado 46de3c
            call:commentref('↓ ', reply) ?>
    Alain Reguera Delgado 46de3c
           /each ?>
    Alain Reguera Delgado 46de3c
          /if ?>)
    Alain Reguera Delgado 46de3c
        /if ?>
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
       var:change.date ?> changed by 
    Alain Reguera Delgado 46de3c
      
    Alain Reguera Delgado 46de3c
      if:len(change.fields) ?>
    Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
         each:field = change.fields ?>
      Alain Reguera Delgado 46de3c
          
    • Alain Reguera Delgado 46de3c
          if:name(field) == 'attachment' ?> added
      Alain Reguera Delgado 46de3c
          elif:field.old && field.new ?>changed from 
      Alain Reguera Delgado 46de3c
           var:field.old ?> to 
      Alain Reguera Delgado 46de3c
          elif:!field.old && field.new ?>set to 
      Alain Reguera Delgado 46de3c
          elif:field.old && !field.new ?>deleted
      Alain Reguera Delgado 46de3c
          else ?>changed
      Alain Reguera Delgado 46de3c
          /if ?>.
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
         /each ?>
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
       </form>
      Alain Reguera Delgado 46de3c
       /each ?>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
      /if ?>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
      <form action="<?cs var:ticket.href ?>#preview" method="post">
      Alain Reguera Delgado 46de3c
       

      Add/Change #

      Alain Reguera Delgado 46de3c
         var:ticket.id ?> ()
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
         <label for="author">Your email or username:</label>
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
           value="" />
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
        <fieldset class="iefix">
      Alain Reguera Delgado 46de3c
         <label for="comment">Comment (you may use 
      Alain Reguera Delgado 46de3c
           var:trac.href.wiki ?>/WikiFormatting">WikiFormatting here):</label>
      Alain Reguera Delgado 46de3c
         

      <textarea id="comment" name="comment" class="wikitext" rows="10" cols="78">

      Alain Reguera Delgado 46de3c
      </textarea>

      Alain Reguera Delgado 46de3c
        </fieldset>
      Alain Reguera Delgado 46de3c
        if ticket.comment_preview ?>
      Alain Reguera Delgado 46de3c
         <fieldset id="preview">
      Alain Reguera Delgado 46de3c
          <legend>Comment Preview</legend>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
         </fieldset>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
       <fieldset id="properties">
      Alain Reguera Delgado 46de3c
        <legend>Change Properties</legend>
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
         <label for="summary">Summary:</label>
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
           var:ticket.summary ?>" size="70" />
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
         if:len(ticket.fields.type.options) ?>
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
          <label for="type">Type:</label>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
           call:hdf_select(ticket.fields.type.options, 'type', ticket.type, 0) ?>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
         /if ?>
      Alain Reguera Delgado 46de3c
         if:trac.acl.TICKET_ADMIN ?>
      Alain Reguera Delgado 46de3c
          <label for="description">Description:</label>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
           <textarea id="description" name="description" class="wikitext" rows="10" cols="68">
      Alain Reguera Delgado 46de3c
      </textarea>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
          <label for="reporter">Reporter:</label>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
            var:ticket.reporter ?>" id="reporter" name="reporter" size="70" />
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
         /if ?>
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
        each:field = ticket.fields ?>
      Alain Reguera Delgado 46de3c
         if:!field.skip ?>
      Alain Reguera Delgado 46de3c
          set:num_fields = num_fields + 1 ?>
      Alain Reguera Delgado 46de3c
         /if ?>
      Alain Reguera Delgado 46de3c
        /each ?>
      Alain Reguera Delgado 46de3c
         each:field = ticket.fields ?>
      Alain Reguera Delgado 46de3c
          if:!field.skip ?>
      Alain Reguera Delgado 46de3c
           if:fullrow && idx % 2 ?>
      Alain Reguera Delgado 46de3c
           
      Alain Reguera Delgado 46de3c
             if:field.type != 'radio' ?><label for="<?cs var:name(field) ?>">
      Alain Reguera Delgado 46de3c
             /if ?>:
      Alain Reguera Delgado 46de3c
             if:field.type != 'radio' ?></label>
      Alain Reguera Delgado 46de3c
           <td<?cs if:fullrow ?> colspan="3">
      Alain Reguera Delgado 46de3c
            if:field.type == 'text' ?>
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" name="
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" value="" />
      Alain Reguera Delgado 46de3c
            elif:field.type == 'select' ?>
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" name="
      Alain Reguera Delgado 46de3c
              var:name(field) ?>">
      Alain Reguera Delgado 46de3c
              if:field.optional ?><option></option>
      Alain Reguera Delgado 46de3c
              each:option = field.options ?>
      Alain Reguera Delgado 46de3c
               if:option == ticket[name(field)] ?> selected="selected">
      Alain Reguera Delgado 46de3c
               var:option ?></option>
      Alain Reguera Delgado 46de3c
              /each ?></select>
      Alain Reguera Delgado 46de3c
            elif:field.type == 'checkbox' ?>
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" />
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" name="
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" value="1"
      Alain Reguera Delgado 46de3c
              if:ticket[name(field)] ?> checked="checked" />
      Alain Reguera Delgado 46de3c
            elif:field.type == 'textarea' ?>
      Alain Reguera Delgado 46de3c
              var:name(field) ?>" name="
      Alain Reguera Delgado 46de3c
              var:name(field) ?>"
      Alain Reguera Delgado 46de3c
              if:field.height ?> rows=""
      Alain Reguera Delgado 46de3c
              if:field.width ?> cols="">
      Alain Reguera Delgado 46de3c
      </textarea>
      Alain Reguera Delgado 46de3c
            elif:field.type == 'radio' ?>
      Alain Reguera Delgado 46de3c
             each:option = field.options ?><label>
      Alain Reguera Delgado 46de3c
               var:name(field) ?>" name="
      Alain Reguera Delgado 46de3c
               var:name(field) ?>" value=""
      Alain Reguera Delgado 46de3c
               if:ticket[name(field)] == option ?> checked="checked" /> 
      Alain Reguera Delgado 46de3c
               var:option ?></label> 
      Alain Reguera Delgado 46de3c
              /each ?>
      Alain Reguera Delgado 46de3c
            /if ?>
      Alain Reguera Delgado 46de3c
           if:idx % 2 || fullrow ?>
      Alain Reguera Delgado 46de3c
            if:idx < num_fields - 1 ?>
      Alain Reguera Delgado 46de3c
            /if ?>
      Alain Reguera Delgado 46de3c
           elif:idx == num_fields - 1 ?>
      Alain Reguera Delgado 46de3c
           /if ?>
      Alain Reguera Delgado 46de3c
          /if ?>
      Alain Reguera Delgado 46de3c
         /each ?>
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
       </fieldset>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
               ticket.actions.resolve || ticket.actions.reassign ?>
      Alain Reguera Delgado 46de3c
       <fieldset id="action">
      Alain Reguera Delgado 46de3c
        <legend>Action</legend>
      Alain Reguera Delgado 46de3c
        if:!ticket.action ?>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        def:action_radio(id) ?>
      Alain Reguera Delgado 46de3c
         
      Alain Reguera Delgado 46de3c
           var:id ?>" checked="checked"
      Alain Reguera Delgado 46de3c
           /if ?> />
      Alain Reguera Delgado 46de3c
        /def ?>
      Alain Reguera Delgado 46de3c
        
      Alain Reguera Delgado 46de3c
         <label for="leave">leave as </label>
      Alain Reguera Delgado 46de3c
        if:ticket.actions.accept ?>
      Alain Reguera Delgado 46de3c
         call:action_radio('accept') ?>
      Alain Reguera Delgado 46de3c
         <label for="accept">accept ticket</label>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        if:ticket.actions.reopen ?>
      Alain Reguera Delgado 46de3c
         call:action_radio('reopen') ?>
      Alain Reguera Delgado 46de3c
         <label for="reopen">reopen ticket</label>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        if:ticket.actions.resolve ?>
      Alain Reguera Delgado 46de3c
         call:action_radio('resolve') ?>
      Alain Reguera Delgado 46de3c
         <label for="resolve">resolve</label>
      Alain Reguera Delgado 46de3c
         if:len(ticket.fields.resolution.options) ?>
      Alain Reguera Delgado 46de3c
          <label for="resolve_resolution">as:</label>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
                               ticket.resolve_resolution, 0) ?>
      Alain Reguera Delgado 46de3c
         /if ?>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        if:ticket.actions.reassign ?>
      Alain Reguera Delgado 46de3c
         call:action_radio('reassign') ?>
      Alain Reguera Delgado 46de3c
         <label for="reassign">reassign</label>
      Alain Reguera Delgado 46de3c
         <label>to:
      Alain Reguera Delgado 46de3c
         if:len(ticket.fields.owner.options) ?>
      Alain Reguera Delgado 46de3c
          call:hdf_select(ticket.fields.owner.options, "reassign_owner",
      Alain Reguera Delgado 46de3c
                          ticket.reassign_owner, 1) ?>
      Alain Reguera Delgado 46de3c
         else ?>
      Alain Reguera Delgado 46de3c
          
      Alain Reguera Delgado 46de3c
            var:ticket.reassign_owner ?>" />
      Alain Reguera Delgado 46de3c
         /if ?></label>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
        if ticket.actions.resolve || ticket.actions.reassign ?>
      Alain Reguera Delgado 46de3c
         <script type="text/javascript">
      Alain Reguera Delgado 46de3c
          each:action = ticket.actions ?>
      Alain Reguera Delgado 46de3c
           var  = document.getElementById("");
      Alain Reguera Delgado 46de3c
          /each ?>
      Alain Reguera Delgado 46de3c
           var updateActionFields = function() {
      Alain Reguera Delgado 46de3c
              enableControl('resolve_resolution', resolve.checked);
      Alain Reguera Delgado 46de3c
              enableControl('reassign_owner', reassign.checked);
      Alain Reguera Delgado 46de3c
           };
      Alain Reguera Delgado 46de3c
           addEvent(window, 'load', updateActionFields);
      Alain Reguera Delgado 46de3c
           each:action = ticket.actions ?>
      Alain Reguera Delgado 46de3c
            addEvent(, 'click', updateActionFields);
      Alain Reguera Delgado 46de3c
           /each ?>
      Alain Reguera Delgado 46de3c
         </script>
      Alain Reguera Delgado 46de3c
        /if ?>
      Alain Reguera Delgado 46de3c
       </fieldset>
      Alain Reguera Delgado 46de3c
       else ?>
      Alain Reguera Delgado 46de3c
        <input type="hidden" name="action" value="leave" />
      Alain Reguera Delgado 46de3c
       /if ?>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
         var:htdocs_location ?>js/wikitoolbar.js"></script>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
        <input type="hidden" name="ts" value="<?cs var:ticket.ts ?>" />
      Alain Reguera Delgado 46de3c
        <input type="hidden" name="replyto" value="<?cs var:ticket.replyto ?>" />
      Alain Reguera Delgado 46de3c
        <input type="hidden" name="cnum" value="<?cs var:ticket.cnum ?>" />
      Alain Reguera Delgado 46de3c
        <input type="submit" name="preview" value="Preview" accesskey="r" /> 
      Alain Reguera Delgado 46de3c
        <input type="submit" value="Submit changes" />
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
      </form>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c
       
      Alain Reguera Delgado 46de3c
       <script type="text/javascript">
      Alain Reguera Delgado 46de3c
        addHeadingLinks(document.getElementById("searchable"), "Permalink to $id");
      Alain Reguera Delgado 46de3c
       </script>
      Alain Reguera Delgado 46de3c
      Alain Reguera Delgado 46de3c