Ignore:
Timestamp:
Feb 9, 2010, 1:36:22 AM (14 years ago)
Author:
gav
Message:

Add comment attribute to Section and limit description to 75 char.
Update detailed views to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/sectionDetailed/edit.gsp

    r308 r331  
    3434                                </td>
    3535                                <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')}"/>
    3737                                </td>
    3838                            </tr>
     
    4343                                </td>
    4444                                <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>
    4655                                </td>
    4756                            </tr>
Note: See TracChangeset for help on using the changeset viewer.