Changeset 2086
- Timestamp:
- Nov 7, 2011, 11:50:13 AM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/authentication/SecUser.groovy
r2081 r2086 59 59 executeUpdate( "DELETE FROM SessionAuthenticatedUser sau WHERE sau.secUser = :secUser", [ "secUser": this ] ); 60 60 } 61 62 /** 63 * return the text representation of this user 64 * @return 65 */ 66 def String toString() { 67 if (shibbolethUser) { 68 return displayName 69 } else { 70 return username 71 } 72 } 61 73 } -
trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy
r1825 r2086 370 370 attrs.description = ''; 371 371 } 372 372 373 def userList = [] 374 SecUser.findAll().each { 375 userList[ userList.size() ] = ['name':(it.shibbolethUser) ? it.displayName : it.username, 'id':it.id] 376 } 377 373 378 out << '<form id="' + attrs.name + '_form" onSubmit="return false;">'; 374 379 out << select( 375 380 name: attrs.get("name"), 376 381 value: '', 377 from: SecUser.list(),378 optionValue: ' username',382 from: userList, 383 optionValue: 'name', 379 384 optionKey: 'id', 380 385 style: 'width: 400px;'
Note: See TracChangeset
for help on using the changeset viewer.