Changeset 399
- Timestamp:
- Feb 22, 2010, 9:46:31 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Person.groovy
r397 r399 26 26 boolean isActive = true 27 27 28 String email29 boolean emailShow = true30 31 28 /** description */ 32 29 String description = '' … … 42 39 description() 43 40 department(nullable:true) 44 email()45 emailShow()46 41 isActive() 47 42 //Enforcing minSize on password does not work since "" gets encoded to a string. -
trunk/grails-app/services/CreateBulkDataService.groovy
r394 r399 114 114 lastName: lastName, 115 115 pass: passClearText, 116 password: passwordEncoded, 117 email: "bulkTest@example.com") 116 password: passwordEncoded) 118 117 saveAndTest(personInstance) 119 118 personInstance.addToAuthorities(authority2) -
trunk/grails-app/services/CreateDataService.groovy
r397 r399 237 237 assign login authorities or change the details of this person.''', 238 238 pass:passClearText, 239 password:passwordEncoded, 240 email:"system@example.com") 239 password:passwordEncoded) 241 240 saveAndTest(personInstance) 242 241 } … … 255 254 DO update the password and other details but keep the login name as 'admin'. ''', 256 255 pass:passClearText, 257 password:passwordEncoded, 258 email:"admin@example.com") 256 password:passwordEncoded) 259 257 saveAndTest(personInstance) 260 258 personInstance.addToAuthorities(Authority.get(1)) … … 278 276 lastName:"Manager", 279 277 pass:passClearText, 280 password:passwordEncoded, 281 email:"manager@example.com") 278 password:passwordEncoded) 282 279 saveAndTest(personInstance) 283 280 personInstance.addToAuthorities(Authority.get(2)) … … 290 287 lastName:"User", 291 288 pass:passClearText, 292 password:passwordEncoded, 293 email:"user@example.com") 289 password:passwordEncoded) 294 290 saveAndTest(personInstance) 295 291 personInstance.addToAuthorities(Authority.get(3)) … … 304 300 lastName:"SuperSparky", 305 301 pass:passClearText, 306 password:passwordEncoded, 307 email:"user@example.com") 302 password:passwordEncoded) 308 303 saveAndTest(personInstance) 309 304 personInstance.addToAuthorities(Authority.get(3)) … … 318 313 lastName:"SuperFitter", 319 314 pass:passClearText, 320 password:passwordEncoded, 321 email:"user@example.com") 315 password:passwordEncoded) 322 316 saveAndTest(personInstance) 323 317 personInstance.addToAuthorities(Authority.get(3)) … … 332 326 lastName:"Mann", 333 327 pass:passClearText, 334 password:passwordEncoded, 335 email:"user@example.com") 328 password:passwordEncoded) 336 329 saveAndTest(personInstance) 337 330 personInstance.addToAuthorities(Authority.get(3)) … … 344 337 lastName:"Manager", 345 338 pass:passClearText, 346 password:passwordEncoded, 347 email:"user@example.com") 339 password:passwordEncoded) 348 340 saveAndTest(personInstance) 349 341 personInstance.addToAuthorities(Authority.get(3)) -
trunk/grails-app/views/person/create.gsp
r295 r399 77 77 78 78 <tr class="prop"> 79 <td valign="top" class="name"><label for="email">Email:</label></td>80 <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}">81 <input type="text" id="email" name="email" value="${person.email?.encodeAsHTML()}"/>82 </td>83 </tr>84 85 <tr class="prop">86 <td valign="top" class="name"><label for="emailShow">Show Email:</label></td>87 <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}">88 <g:checkBox name="emailShow" value="${person.emailShow}"/>89 </td>90 </tr>91 92 <tr class="prop">93 79 <td valign="top" class="name"><label for="employeeID">employee ID:</label></td> 94 80 <td valign="top" class="value ${hasErrors(bean:person,field:'employeeID','errors')}"> -
trunk/grails-app/views/person/edit.gsp
r397 r399 84 84 85 85 <tr class="prop"> 86 <td valign="top" class="name"><label for="email">Email:</label></td>87 <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}">88 <input type="text" id="email" name="email" value="${person?.email?.encodeAsHTML()}"/>89 </td>90 </tr>91 92 <tr class="prop">93 <td valign="top" class="name"><label for="emailShow">Show Email:</label></td>94 <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}">95 <g:checkBox name="emailShow" value="${person.emailShow}"/>96 </td>97 </tr>98 99 <tr class="prop">100 86 <td valign="top" class="name"> 101 87 <label for="addresses">Addresses:</label> -
trunk/grails-app/views/person/list.gsp
r250 r399 70 70 action="list" 71 71 class="overlayPane" 72 excludeProperties="password, sessionTimeout , emailShow"72 excludeProperties="password, sessionTimeout" 73 73 associatedProperties="authorities.authority, personGroups.name" 74 74 filterPropertyValues="${['personGroups.name':[values:PersonGroup.list()], -
trunk/grails-app/views/person/show.gsp
r397 r399 47 47 <td valign="top" class="name">Description:</td> 48 48 <td valign="top" class="value">${person.description?.encodeAsHTML()}</td> 49 </tr>50 51 <tr class="prop">52 <td valign="top" class="name">Email:</td>53 <td valign="top" class="value">${person.email?.encodeAsHTML()}</td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">Show Email:</td>58 <td valign="top" class="value">${person.emailShow}</td>59 49 </tr> 60 50
Note: See TracChangeset
for help on using the changeset viewer.