Changeset 422
- Timestamp:
- Mar 2, 2010, 4:34:12 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/InventoryItem.groovy
r416 r422 8 8 String name 9 9 String description = "" 10 String comment = "" 10 11 String manufacturersPartNumber 11 12 BigDecimal estimatedUnitPriceAmount … … 35 36 picture(nullable:true) 36 37 name(unique:true, blank:false, maxSize:50) 37 description() 38 description(maxSize:255) 39 comment(maxSize:500) 38 40 unitsInStock(min:0) 39 41 unitOfMeasure() -
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r410 r422 31 31 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 32 32 </td> 33 </tr> 34 33 </tr> 34 35 35 <tr class="prop"> 36 36 <td valign="top" class="name"> … … 38 38 </td> 39 39 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 40 <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 40 <textarea rows="5" cols="40" name="description">${fieldValue(bean:inventoryItemInstance, field:'description')}</textarea> 41 </td> 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name"> 46 <label for="comment">Comment:</label> 47 </td> 48 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'comment','errors')}"> 49 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemInstance, field:'comment')}</textarea> 41 50 </td> 42 51 </tr> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r410 r422 57 57 <label for="description">Description:</label> 58 58 </td> 59 <td valign="top"> 60 <input class="description ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}" 61 type="text" id="description" name="description" 62 value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 59 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 60 <textarea rows="5" cols="40" name="description">${fieldValue(bean:inventoryItemInstance, field:'description')}</textarea> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="comment">Comment:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'comment','errors')}"> 69 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemInstance, field:'comment')}</textarea> 63 70 </td> 64 71 </tr> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r405 r422 28 28 </g:hasErrors> 29 29 30 <div class="tabHeader"> 31 <h1 class="taskHeader"> 32 ${inventoryItemInstance.name} 33 </h1> 34 ${fieldValue(bean:inventoryItemInstance, field:'description')} 35 </div> 36 37 <br/> 38 30 39 <richui:tabView id="tabView"> 31 40 … … 105 114 106 115 <tr class="prop"> 107 <td valign="top" class="name">Name:</td> 108 109 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'name')}</td> 110 </tr> 111 112 <tr class="prop"> 113 <td valign="top" class="name">Description:</td> 114 115 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 116 <td valign="top" class="name">Comment:</td> 117 118 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'comment')}</td> 116 119 </tr> 117 120
Note: See TracChangeset
for help on using the changeset viewer.