Changeset 329
- Timestamp:
- Feb 9, 2010, 1:17:54 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r286 r329 5 5 String name 6 6 String description = "" 7 String comment = "" 7 8 boolean isActive = true 8 9 … … 15 16 static constraints = { 16 17 name(maxSize:50, unique:true, blank:false) 17 description(maxSize:100) 18 description(maxSize:75) 19 comment(maxSize:500) 18 20 isActive() 19 21 section() -
trunk/grails-app/services/AssetService.groovy
r305 r329 42 42 result.assetInstance = new Asset(name: result.assetToCopy.name, 43 43 description: result.assetToCopy.description, 44 comment: result.assetToCopy.comment, 44 45 section: result.assetToCopy.section) 45 46 -
trunk/grails-app/views/assetDetailed/copy.gsp
r278 r329 56 56 </td> 57 57 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 58 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>58 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 59 59 </td> 60 60 </tr> … … 65 65 </td> 66 66 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 67 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 67 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 68 </td> 69 </tr> 70 71 <tr class="prop"> 72 <td valign="top" class="name"> 73 <label for="comment">Comment:</label> 74 </td> 75 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'comment','errors')}"> 76 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetInstance, field:'comment')}</textarea> 68 77 </td> 69 78 </tr> -
trunk/grails-app/views/assetDetailed/create.gsp
r271 r329 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>42 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 43 43 </td> 44 44 </tr> 45 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="comment">Comment:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'comment','errors')}"> 51 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetInstance, field:'comment')}</textarea> 52 </td> 53 </tr> 54 46 55 <tr class="prop"> 47 56 <td valign="top" class="name"> -
trunk/grails-app/views/assetDetailed/edit.gsp
r303 r329 33 33 </td> 34 34 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 35 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>35 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 36 36 </td> 37 37 </tr> … … 42 42 </td> 43 43 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 44 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>44 <input type="text" class="description" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 45 45 </td> 46 46 </tr> 47 47 48 <tr class="prop"> 49 <td valign="top" class="name"> 50 <label for="comment">Comment:</label> 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'comment','errors')}"> 53 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetInstance, field:'comment')}</textarea> 54 </td> 55 </tr> 56 48 57 <tr class="prop"> 49 58 <td valign="top" class="name"> -
trunk/grails-app/views/assetDetailed/show.gsp
r324 r329 40 40 41 41 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Comment:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td> 42 49 43 50 </tr>
Note: See TracChangeset
for help on using the changeset viewer.