Changeset 426


Ignore:
Timestamp:
09/05/08 08:42:18 (5 years ago)
Author:
aculapov
Message:
  • added the preview
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/tickettypedsystem/ticketsystem/templates/defect.html

    r423 r426  
    139139                 
    140140<form class="" action="${ticket.exists and href.ticket(ticket.id) or href.newticket()}" method="post" id="propertyform"> 
    141 <div id="container"> 
     141<div id="container" py:with="preview_mode = 'preview' in req.args"> 
    142142        <div id="header"><h1>Defect</h1></div> 
     143     
     144          <!-- Do not show the ticket preview when the user first comes to the "New Ticket" page. 
     145           Wait until they hit preview. --> 
     146      <fieldset id="preview" py:strip="not preview_mode"> 
     147        <py:if test="preview_mode"> 
     148          <legend>Preview (<a href="#ticket">skip</a>)</legend> 
     149 
     150          <!-- Preview of ticket changes --> 
     151          <div py:if="change_preview" id="ticketchange" class="ticketdraft"> 
     152            <h3 class="change" id="${'cnum' in change_preview and 'comment:%d' % change_preview.cnum or None}"> 
     153              <span class="threading" py:if="'replyto' in change_preview"> 
     154                in reply to: ${commentref('&darr;&nbsp;', change_preview.replyto)} 
     155              </span> 
     156              Changed by ${authorinfo(change_preview.author)} 
     157            </h3> 
     158            ${display_change(change_preview)} 
     159          </div> 
     160        </py:if> 
     161      </fieldset> 
     162      <!--! End of ticket box --> 
     163     
    143164        <div id="ticket" class="container_16"><!-- TICKET --> 
    144165 
Note: See TracChangeset for help on using the changeset viewer.