Changeset 332
- Timestamp:
- Feb 9, 2010, 1:41:59 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Site.groovy
r273 r332 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/siteDetailed/create.gsp
r268 r332 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/> 42 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:siteInstance,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:siteInstance,field:'comment','errors')}"> 51 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:siteInstance, field:'comment')}</textarea> 43 52 </td> 44 53 </tr> -
trunk/grails-app/views/siteDetailed/edit.gsp
r289 r332 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/>36 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/> 45 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:siteInstance,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:siteInstance,field:'comment','errors')}"> 54 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:siteInstance, field:'comment')}</textarea> 46 55 </td> 47 56 </tr> -
trunk/grails-app/views/siteDetailed/show.gsp
r289 r332 40 40 41 41 <td valign="top" class="value">${fieldValue(bean:siteInstance, 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:siteInstance, field:'comment')}</td> 42 49 43 50 </tr>
Note: See TracChangeset
for help on using the changeset viewer.