Changeset 623


Ignore:
Timestamp:
10/21/08 18:31:49 (5 years ago)
Author:
aculapov
Message:
  • modified the templates to work with trac ticket template
Location:
trunk/plugins/tickettypedsystem/ticketsystem/templates
Files:
1 added
2 edited

Legend:

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

    r534 r623  
    4040            </tr> 
    4141        </py:match> 
     42         
     43        <py:match path="//fieldset[@id='properties']/table" once="true"> 
     44                        <script type="text/javascript"> 
     45     
     46      
     47        //<![CDATA[ 
     48        $(document).ready(function() { 
     49           id = 0; 
     50           $('#add_existing').click(function() { 
     51               $('#relations').append("<label>"+(id + 1) + ":&nbsp;&nbsp;<input type=\"text\" id=\"rel"+id+"\" name=\"rel"+id+"\" /></label> <br />"); 
     52               id += 1; 
     53               $('#subtickets').val(id); 
     54           }) 
     55         }); 
     56          
     57          
     58    //]]> 
     59            </script> 
     60                ${select("*")} 
     61                <tr id="relations-container" > 
     62                    <th style="vertical-align:top"><label> 
     63                        <a id="add_existing" href="#properties">Add a subticket</a> 
     64                    </label></th> 
     65                    <td colspan="3"> 
     66                        <div> 
     67                            <div id="relations"> 
     68                                
     69                            </div> 
     70                            <input id="subtickets" name="subtickets" type="hidden" value="0" /> 
     71                             
     72                        </div> 
     73                    </td> 
     74                </tr> 
     75        </py:match> 
    4276</html> 
     77 
  • trunk/plugins/tickettypedsystem/ticketsystem/templates/view_ticket.html

    r602 r623  
    2323            ${render_ticket_list(ticket['parent_tickets'], 'Parent Tickets')} 
    2424    </py:match> 
     25     
     26    <py:match path="//table[@class='properties']" once="true"> 
     27        <table py:attrs="select('@*')"> 
     28            ${select("*|text()")} 
     29            <tr><td colspan="4">&nbsp;</td></tr> 
     30            ${render_ticket_list(ticket['sub_tickets'], 'Sub Tickets')} 
     31            ${render_ticket_list(ticket['parent_tickets'], 'Parent Tickets')} 
     32        </table> 
     33    </py:match> 
     34 
    2535</html> 
Note: See TracChangeset for help on using the changeset viewer.