Changeset 510

Show
Ignore:
Timestamp:
10/24/08 12:19:38 (2 months ago)
Author:
lazaridis_com
Message:

enabled new comment, disabled by error

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • infra/tracx/tracx/templates/ticket.html

    r509 r510  
    184184  </fieldset>   
    185185 
     186<!-- COMMENT --> 
     187  <form py:if="not version and version != 0 and 
     188                   ('TICKET_APPEND' in perm(ticket.resource) or 
     189                    'TICKET_CHGPROP' in perm(ticket.resource) or 
     190                    ('TICKET_CREATE' in perm(ticket.resource) and not ticket.id))" 
     191            action="${ticket.exists and href.ticket(ticket.id) or href.newticket()}" method="post" id="query"> 
     192    <a py:if="ticket.exists" id="edit" onfocus="$('#comment').get(0).focus()"></a> 
     193    <div py:if="authname == 'anonymous'" class="field"> 
     194      <fieldset> 
     195      <legend>${ticket.exists and 'Author' or 'Reporter'}</legend> 
     196      <table> 
     197        <tr> 
     198          <th> <label for="author">Your email or username:</label> 
     199            <br /> 
     200          </th> 
     201          <td><input type="text" id="author" name="author" size="40" value="$author_id" /> 
     202            <br /> 
     203          </td> 
     204        </tr> 
     205      </table> 
     206      </fieldset> 
     207    </div> 
     208         
    186209    <div py:if="ticket.exists" > 
    187210      <fieldset id="comment"  > 
     
    197220      </fieldset> 
    198221    </div> 
     222         
     223    <div class="buttons"> 
     224      <input py:if="not ticket.exists" type="hidden" name="field_status" value="new" /> 
     225      <py:if test="ticket.exists"> 
     226        <input type="hidden" name="ts" value="${timestamp}" /> 
     227        <input type="hidden" name="replyto" value="${replyto}" /> 
     228        <input type="hidden" name="cnum" value="${cnum}" /> 
     229      </py:if> 
     230    </div> 
     231         
     232  </form> 
     233 
    199234     
    200235  <py:if test="ticket.exists"> 
     
    246281  </py:if> 
    247282   
    248   <form py:if="not version and version != 0 and 
    249                    ('TICKET_APPEND' in perm(ticket.resource) or 
    250                     'TICKET_CHGPROP' in perm(ticket.resource) or 
    251                     ('TICKET_CREATE' in perm(ticket.resource) and not ticket.id))" 
    252             action="${ticket.exists and href.ticket(ticket.id) or href.newticket()}" method="post" id="query"> 
    253     <a py:if="ticket.exists" id="edit" onfocus="$('#comment').get(0).focus()"></a> 
    254     <div py:if="authname == 'anonymous'" class="field"> 
    255       <fieldset> 
    256       <legend>${ticket.exists and 'Author' or 'Reporter'}</legend> 
    257       <table> 
    258         <tr> 
    259           <th> <label for="author">Your email or username:</label> 
    260             <br /> 
    261           </th> 
    262           <td><input type="text" id="author" name="author" size="40" value="$author_id" /> 
    263             <br /> 
    264           </td> 
    265         </tr> 
    266       </table> 
    267       </fieldset> 
    268     </div> 
    269          
    270  
    271          
    272     <div class="buttons"> 
    273       <input py:if="not ticket.exists" type="hidden" name="field_status" value="new" /> 
    274       <py:if test="ticket.exists"> 
    275         <input type="hidden" name="ts" value="${timestamp}" /> 
    276         <input type="hidden" name="replyto" value="${replyto}" /> 
    277         <input type="hidden" name="cnum" value="${cnum}" /> 
    278       </py:if> 
    279     </div> 
    280          
    281   </form> 
     283 
    282284   
    283285  <py:if test="not version and version != 0 and ticket.exists">