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/create.gsp

    r308 r331  
    3131                                </td>
    3232                                <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')}"/>
    3434                                </td>
    3535                            </tr>
     
    4040                                </td>
    4141                                <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>
    4352                                </td>
    4453                            </tr>
Note: See TracChangeset for help on using the changeset viewer.