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