Show
Ignore:
Timestamp:
11/16/06 16:50:02 (4 years ago)
Author:
lazaridis_com
Message:

merged trac:source:trunk#4300

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • infra/trac-dev/templates/query.html

    r119 r128  
    3232      <h1>$title ${num_matches(len(tickets))}</h1> 
    3333 
    34       <form id="query" method="post" action="${href.query}"> 
     34      <form id="query" method="post" action="${href.query()}"> 
     35        <input py:if="'id' in query.constraints" type="hidden" name="id" value="${query.constraints['id']}" /> 
    3536        <fieldset id="filters"> 
    3637          <legend>Filters</legend> 
     
    3940              <tr style="height: 1px"><td colspan="4"></td></tr> 
    4041            </tbody> 
    41             <py:for each="field_name, field in fields.iteritems()"> 
    42               <py:for each="constraint_name, constraint in constraints.iteritems()"> 
     42            <py:for each="field_name, field in fields.items()"> 
     43              <py:for each="constraint_name, constraint in constraints.items()"> 
    4344                <tbody py:if="field_name == constraint_name" 
    4445                  py:with="multiline = field.type in ('select', 'text')"> 
     
    6263 
    6364                      <td class="filter" colspan="${field.type in ('radio', 'checkbox') and 2 or None}" 
    64                         py:choose="field.type"> 
     65                          py:choose="field.type"> 
    6566 
    6667                        <py:when test="'select'"> 
     
    7273                          </select> 
    7374                        </py:when> 
    74  
    7575 
    7676                        <py:when test="'radio'"> 
     
    9999                      </td> 
    100100                      <td class="actions" 
    101                         py:with="rm_idx = multiline and idx or len(constraint['values'])-1"> 
    102                         <input type="submit" name="rm_filter_${field_name}${ 
    103                           field.type != 'radio' and '_%d' % rm_idx or ''}" value="-" /> 
    104                       </td> 
     101                          py:with="rm_idx = multiline and idx or len(constraint['values']) - 1"><input 
     102                          type="submit" name="rm_filter_${field_name}${field.type != 'radio' and '_%d' % rm_idx or ''}" 
     103                          value="-" /></td> 
    105104                    </tr> 
    106105                  </py:for> 
     
    115114                  <select name="add_filter" id="add_filter"> 
    116115                    <option></option> 
    117                     <option py:for="field_name, field in fields.iteritems()" 
     116                    <option py:for="field_name, field in fields.items()" 
    118117                            value="$field_name" 
    119118                            disabled="${(field.type == 'radio' and 
     
    134133          <select name="group" id="group"> 
    135134            <option></option> 
    136             <option py:for="field_name, field in fields.iteritems()" 
     135            <option py:for="field_name, field in fields.items()" 
    137136                    py:if="field.type in ('select', 'radio') or field_name == 'owner'" 
    138137                    selected="${field_name == query.group or None}"