|
43 | 43 | <tr> |
44 | 44 | <th class="required"><label for="title" i18n:translate="">Title:</label></th> |
45 | 45 | <td colspan="3" tal:condition="context/title/is_edit_ok" |
46 | | - tal:content="structure python:context.title.field(size=60)">title</td> |
| 46 | + tal:content="structure python:context.title.field(id='title', size=60)">title</td> |
47 | 47 | <td colspan="3" tal:condition="not:context/title/is_edit_ok"> |
48 | 48 | <span tal:content="structure context/title/plain"/> |
49 | 49 | <input type="hidden" name="title" tal:attributes="value context/title"> |
|
82 | 82 | </th> |
83 | 83 | <td tal:content="structure context/status/menu">status</td> |
84 | 84 | <th><label for="resolution" i18n:translate="">Resolution:</label></th> |
85 | | - <td tal:content="structure context/resolution/menu">resolution</td> |
| 85 | + <td tal:content="structure python:context.resolution.menu(html_kwargs={'id':'resolution'})">resolution</td> |
86 | 86 | </tr> |
87 | 87 |
|
88 | 88 | <tr tal:condition="context/id"> |
|
91 | 91 | tal:replace="structure python:db.issue.classhelp('id,title', filter='status=0,1', property='dependencies')" /> |
92 | 92 | </th> |
93 | 93 | <td> |
94 | | - <span tal:replace="structure python:context.dependencies.field(showid=1,size=20)" /> |
| 94 | + <span tal:replace="structure python:context.dependencies.field(id='dependencies',showid=1,size=20)" /> |
95 | 95 | <span tal:condition="context/dependencies" tal:repeat="d python:context.dependencies.sorted('creation')"> |
96 | 96 | <br/>View: <a tal:attributes="href string:issue${d/id}" tal:content="d/id"></a> |
97 | 97 | </span> |
|
102 | 102 | tal:replace="structure python:db.issue.classhelp('id,title', filter='status=0,1', property='superseder')" /> |
103 | 103 | </th> |
104 | 104 | <td> |
105 | | - <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" /> |
| 105 | + <span tal:replace="structure python:context.superseder.field(id='superseder', showid=1, size=20)" /> |
106 | 106 | <span tal:condition="context/superseder"> |
107 | 107 | <!-- <br><span i18n:translate="">View</span>: |
108 | 108 | <a tal:repeat="sup context/superseder" |
|
117 | 117 | <tr> |
118 | 118 | <th><label for="assignee" i18n:translate="">Assigned To</label>:</th> |
119 | 119 | <td tal:condition="context/status/is_edit_ok"> |
120 | | - <select name="assignee"> |
| 120 | + <select id="assignee" name="assignee"> |
121 | 121 | <option value="-1">nobody</option> |
122 | 122 | <tal:block tal:repeat="userdata python:db._db.user.filter_sql('select id,_username from _user where _roles like \'%Developer%\' order by _username')"> |
123 | 123 | <option tal:attributes="value python:userdata[0]; |
|
134 | 134 | tal:replace="structure python:db.user.classhelp('username,realname,address', property='nosy')" /> |
135 | 135 | </th> |
136 | 136 | <td> |
137 | | - <span tal:replace="structure context/nosy/field" /> |
| 137 | + <span tal:replace="structure python:context.nosy.field(id='nosy')" /> |
138 | 138 | </td> |
139 | 139 | </tr> |
140 | 140 | <tr> |
141 | 141 | <th> |
142 | 142 | <span tal:replace="structure python:db.priority.classhelp('id,name,description',label='Priority')" />: |
143 | 143 | </th> |
144 | 144 | <td tal:content="structure context/priority/menu">priority</td> |
145 | | - <th i18n:translate="">Keywords:</th> |
146 | | - <td tal:content="structure python:context['keywords'].menu(height=5)">keywords</td> |
| 145 | + <th><label for="keywords" i18n:translate="">Keywords</label>:</th> |
| 146 | + <td tal:content="structure python:context['keywords'].menu(height=5,html_kwargs={'id': 'keywords'})">keywords</td> |
147 | 147 |
|
148 | 148 |
|
149 | 149 | </tr> |
150 | 150 | <tr tal:condition="context/is_edit_ok"> |
151 | 151 | <th><label for="@note" i18n:translate="">Comment</label>:</th> |
152 | 152 | <td colspan="3"> |
153 | 153 | <textarea tal:content="request/form/@note/value | default" |
154 | | - name="@note" wrap="hard" rows="10" cols="72"></textarea> |
| 154 | + id="@note" name="@note" wrap="hard" rows="10" cols="72"></textarea> |
155 | 155 | </td> |
156 | 156 | </tr> |
157 | 157 |
|
158 | 158 | <tr tal:condition="context/is_edit_ok"> |
159 | 159 | <th><label for="file-1@content" i18n:translate="">File</label>:</th> |
160 | 160 | <td colspan=3> |
161 | 161 | <input type="hidden" name="@link@files" value="file-1"> |
162 | | - <input type="file" name="file-1@content" size="40"> |
| 162 | + <input type="file" id="file-1@content" name="file-1@content" size="40"> |
163 | 163 | </td> |
164 | 164 | </tr> |
165 | 165 | <tr tal:condition="context/is_edit_ok"> |
166 | 166 | <th><label for="file-1@description" i18n:translate="">File Description</label>:</th> |
167 | | - <td colspan=3><input type="edit" name="file-1@description" size="40"></td> |
| 167 | + <td colspan=3><input type="edit" id="file-1@description" name="file-1@description" size="40"></td> |
168 | 168 | </tr> |
169 | 169 | </table> |
170 | 170 | </fieldset> |
|
0 commit comments