Changeset 15964 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 28 Jan 2020, 12:39:18 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r15946 r15964 153 153 154 154 def getUsers(self): 155 """Get a list of all users. 156 """ 157 for key, val in grok.getSite()['users'].items(): 158 url = self.url(val) 159 yield(dict(url=url, name=key, val=val)) 155 return getUtility(IKofaUtils).getUsers() 156 157 #def getUsers(self): 158 # """Get a list of all users. 159 # """ 160 # for key, val in grok.getSite()['users'].items(): 161 # url = self.url(val) 162 # yield(dict(url=url, name=key, val=val)) 160 163 161 164 def getUsersWithLocalRoles(self): … … 383 386 return roles() 384 387 388 #def getUsers(self): 389 # """Get a list of all users. 390 # """ 391 # for key, val in grok.getSite()['users'].items(): 392 # url = self.url(val) 393 # yield(dict(url=url, name=key, val=val)) 394 385 395 def getUsers(self): 386 """Get a list of all users. 387 """ 388 for key, val in grok.getSite()['users'].items(): 389 url = self.url(val) 390 yield(dict(url=url, name=key, val=val)) 396 return getUtility(IKofaUtils).getUsers() 391 397 392 398 def getUsersWithLocalRoles(self): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt
r14264 r15964 134 134 </div> <br /><br /> 135 135 <table class="form-table"> 136 <tr> <td> 136 <tr> 137 <td> 137 138 <select id="user" name="user" class="form-control"> 138 139 <option tal:repeat="user view/getUsers" 139 140 tal:attributes="value user/name"> 140 <span tal:replace="user/val/title">USERTITLE</span> 141 (<span tal:replace="user/val/name">USERNAME</span>) 141 <span tal:replace="user/val">USERSTRING</span> 142 142 </option> 143 </select> </td> <td> 143 </select> 144 </td> 145 <td> 144 146 <select id="local_role" name="local_role" class="form-control"> 145 147 <option tal:repeat="localrole view/getLocalRoles" … … 147 149 <span tal:replace="localrole/title">LOCALROLETITLE</span> 148 150 </option> 149 </select> </td> <td> 151 </select> 152 </td> 153 <td> 150 154 <div tal:condition="view/availableActions"> 151 155 <span tal:repeat="action view/actions" tal:omit-tag=""> … … 153 157 tal:replace="structure action/render"/> 154 158 </span> 155 </div> </td> 159 </div> 160 </td> 156 161 </tr> 157 162 </table> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt
r14264 r15964 117 117 <option tal:repeat="user view/getUsers" 118 118 tal:attributes="value user/name"> 119 <span tal:replace="user/val/title">USERTITLE</span> 120 (<span tal:replace="user/val/name">USERNAME</span>) 119 <span tal:replace="user/val">USERSTRING</span> 121 120 </option> 122 121 </select>
Note: See TracChangeset for help on using the changeset viewer.