- Timestamp:
- Feb 9, 2010, 1:47:44 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Department.groovy
r268 r333 3 3 String name 4 4 String description = "" 5 String comment = "" 5 6 boolean isActive = true 6 7 … … 13 14 static constraints = { 14 15 name(maxSize:50, unique:true, blank:false) 15 description(maxSize:100) 16 description(maxSize:75) 17 comment(maxSize:500) 16 18 isActive() 17 19 } -
trunk/grails-app/views/departmentDetailed/create.gsp
r268 r333 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 42 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 43 </td> 44 </tr> 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:departmentInstance,field:'comment','errors')}"> 51 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:departmentInstance, field:'comment')}</textarea> 43 52 </td> 44 53 </tr> -
trunk/grails-app/views/departmentDetailed/edit.gsp
r288 r333 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>36 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 45 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="comment">Comment:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'comment','errors')}"> 54 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:departmentInstance, field:'comment')}</textarea> 46 55 </td> 47 56 </tr> -
trunk/grails-app/views/departmentDetailed/show.gsp
r288 r333 40 40 41 41 <td valign="top" class="value">${fieldValue(bean:departmentInstance, 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:departmentInstance, field:'comment')}</td> 42 49 43 50 </tr>
Note: See TracChangeset
for help on using the changeset viewer.