Changeset 128 for infra/trac-dev/templates/query.html
- Timestamp:
- 11/16/06 16:50:02 (4 years ago)
- Files:
-
- 1 modified
-
infra/trac-dev/templates/query.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infra/trac-dev/templates/query.html
r119 r128 32 32 <h1>$title ${num_matches(len(tickets))}</h1> 33 33 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']}" /> 35 36 <fieldset id="filters"> 36 37 <legend>Filters</legend> … … 39 40 <tr style="height: 1px"><td colspan="4"></td></tr> 40 41 </tbody> 41 <py:for each="field_name, field in fields.ite ritems()">42 <py:for each="constraint_name, constraint in constraints.ite ritems()">42 <py:for each="field_name, field in fields.items()"> 43 <py:for each="constraint_name, constraint in constraints.items()"> 43 44 <tbody py:if="field_name == constraint_name" 44 45 py:with="multiline = field.type in ('select', 'text')"> … … 62 63 63 64 <td class="filter" colspan="${field.type in ('radio', 'checkbox') and 2 or None}" 64 py:choose="field.type">65 py:choose="field.type"> 65 66 66 67 <py:when test="'select'"> … … 72 73 </select> 73 74 </py:when> 74 75 75 76 76 <py:when test="'radio'"> … … 99 99 </td> 100 100 <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> 105 104 </tr> 106 105 </py:for> … … 115 114 <select name="add_filter" id="add_filter"> 116 115 <option></option> 117 <option py:for="field_name, field in fields.ite ritems()"116 <option py:for="field_name, field in fields.items()" 118 117 value="$field_name" 119 118 disabled="${(field.type == 'radio' and … … 134 133 <select name="group" id="group"> 135 134 <option></option> 136 <option py:for="field_name, field in fields.ite ritems()"135 <option py:for="field_name, field in fields.items()" 137 136 py:if="field.type in ('select', 'radio') or field_name == 'owner'" 138 137 selected="${field_name == query.group or None}"