Changeset 534


Ignore:
Timestamp:
10/10/08 12:19:45 (5 years ago)
Author:
aculapov
Message:
  • reorganized the html to display the relations better
Location:
trunk/plugins/tickettypedsystem/ticketsystem/templates
Files:
2 edited

Legend:

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

    r528 r534  
    1212           id = 0; 
    1313           $('#add_existing').click(function() { 
    14                $('#relations').append("<label>"+(id + 1) + ": <input type=\"text\" id=\"rel"+id+"\" name=\"rel"+id+"\" /></label> <br />"); 
     14               $('#relations').append("<label>"+(id + 1) + ":&nbsp;&nbsp;<input type=\"text\" id=\"rel"+id+"\" name=\"rel"+id+"\" /></label> <br />"); 
    1515               id += 1; 
    1616               $('#subtickets').val(id); 
     
    2626        <py:match path="//div[@id='checklist-add']" once="true"> 
    2727            <tr id="relations-container" style="${ style and 'display:none;' or None}" > 
    28                 <th>Relations:</th> 
     28                <th style="vertical-align:top"><label> 
     29                    <a id="add_existing" href="#properties">Add a subticket</a> 
     30                </label></th> 
    2931                <td colspan="3"> 
    3032                    <div> 
     
    3335                        </div> 
    3436                        <input id="subtickets" name="subtickets" type="hidden" value="0" /> 
    35                         <a id="add_existing" href="#properties">Add a subticket</a> 
     37                         
    3638                    </div> 
    3739                </td> 
  • trunk/plugins/tickettypedsystem/ticketsystem/templates/view_ticket.html

    r423 r534  
    44 
    55    <py:match path="//div[@id='checklist-spot']" once="true"> 
    6          
    7             <tr id="view-subrelations-container"> 
    8                 <th>Sub tickets:</th> 
     6            <tr><td colspan="4">&nbsp;</td></tr> 
     7            <tr py:if="len(subtickets) > 0" id="view-subrelations-container"> 
     8                <th style="vertical-align:top" ><label>Sub tickets:</label></th> 
    99                <td colspan="3"> 
    1010                    <div py:for="ticket in subtickets" id="view-relations"> 
     
    1616                </td> 
    1717            </tr> 
    18             <tr id="view-relations-container"> 
    19                 <th>Parent ticket:</th> 
     18            <tr py:if="len(parents) > 0" id="view-relations-container"> 
     19                <th style="vertical-align:top"><label>Parent ticket:</label></th> 
    2020                <td colspan="3"> 
    2121                    <div py:for="ticket in parents" id="view-relations"> 
Note: See TracChangeset for help on using the changeset viewer.