| | 186 | <!-- COMMENT --> |
| | 187 | <form py:if="not version and version != 0 and |
| | 188 | ('TICKET_APPEND' in perm(ticket.resource) or |
| | 189 | 'TICKET_CHGPROP' in perm(ticket.resource) or |
| | 190 | ('TICKET_CREATE' in perm(ticket.resource) and not ticket.id))" |
| | 191 | action="${ticket.exists and href.ticket(ticket.id) or href.newticket()}" method="post" id="query"> |
| | 192 | <a py:if="ticket.exists" id="edit" onfocus="$('#comment').get(0).focus()"></a> |
| | 193 | <div py:if="authname == 'anonymous'" class="field"> |
| | 194 | <fieldset> |
| | 195 | <legend>${ticket.exists and 'Author' or 'Reporter'}</legend> |
| | 196 | <table> |
| | 197 | <tr> |
| | 198 | <th> <label for="author">Your email or username:</label> |
| | 199 | <br /> |
| | 200 | </th> |
| | 201 | <td><input type="text" id="author" name="author" size="40" value="$author_id" /> |
| | 202 | <br /> |
| | 203 | </td> |
| | 204 | </tr> |
| | 205 | </table> |
| | 206 | </fieldset> |
| | 207 | </div> |
| | 208 | |
| 248 | | <form py:if="not version and version != 0 and |
| 249 | | ('TICKET_APPEND' in perm(ticket.resource) or |
| 250 | | 'TICKET_CHGPROP' in perm(ticket.resource) or |
| 251 | | ('TICKET_CREATE' in perm(ticket.resource) and not ticket.id))" |
| 252 | | action="${ticket.exists and href.ticket(ticket.id) or href.newticket()}" method="post" id="query"> |
| 253 | | <a py:if="ticket.exists" id="edit" onfocus="$('#comment').get(0).focus()"></a> |
| 254 | | <div py:if="authname == 'anonymous'" class="field"> |
| 255 | | <fieldset> |
| 256 | | <legend>${ticket.exists and 'Author' or 'Reporter'}</legend> |
| 257 | | <table> |
| 258 | | <tr> |
| 259 | | <th> <label for="author">Your email or username:</label> |
| 260 | | <br /> |
| 261 | | </th> |
| 262 | | <td><input type="text" id="author" name="author" size="40" value="$author_id" /> |
| 263 | | <br /> |
| 264 | | </td> |
| 265 | | </tr> |
| 266 | | </table> |
| 267 | | </fieldset> |
| 268 | | </div> |
| 269 | | |
| 270 | | |
| 271 | | |
| 272 | | <div class="buttons"> |
| 273 | | <input py:if="not ticket.exists" type="hidden" name="field_status" value="new" /> |
| 274 | | <py:if test="ticket.exists"> |
| 275 | | <input type="hidden" name="ts" value="${timestamp}" /> |
| 276 | | <input type="hidden" name="replyto" value="${replyto}" /> |
| 277 | | <input type="hidden" name="cnum" value="${cnum}" /> |
| 278 | | </py:if> |
| 279 | | </div> |
| 280 | | |
| 281 | | </form> |
| | 283 | |