Skip to content

Instantly share code, notes, and snippets.

@Elwell
Created May 9, 2014 15:18
Show Gist options
  • Save Elwell/15192759633f9a0f4924 to your computer and use it in GitHub Desktop.
Save Elwell/15192759633f9a0f4924 to your computer and use it in GitHub Desktop.
--- issue.item.html-orig 2011-03-20 00:24:03.049357938 +0800
+++ issue.item.html 2014-04-15 01:41:32.974950437 +0800
@@ -74,7 +74,16 @@
<tr>
<th i18n:translate="">Assigned To</th>
- <td tal:content="structure context/assignedto/menu">assignedto menu</td>
+ <td>
+ <select name="assignedto">
+ <option value="-1">- no selection -</option>
+ <tal:block tal:repeat="userdata python:db._db.user.filter_sql('select id,_realname from _user where _roles like \'%Resolver%\' order by _realname')">
+ <option tal:attributes="value python:userdata[0];
+ selected python:str(userdata[0]) == context.assignedto"
+ tal:content="python:userdata[1]"></option>
+ </tal:block>
+ </select>
+ </td>
<th i18n:translate="">Keywords</th>
<td>
<span tal:replace="structure context/keyword/field" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment