Ignore:
Timestamp:
Jan 14, 2010, 10:51:03 PM (14 years ago)
Author:
gav
Message:

Refactor classes for asset tree refinement.
Regenerate views and controllers to suite.

File:
1 edited

Legend:

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

    r178 r268  
    3434                                </td>
    3535                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
    36                                     <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
     36                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
    3737                                </td>
    3838                            </tr>
     
    4343                                </td>
    4444                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}">
    45                                     <input type="text" 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="costCode">Cost Code:</label>
    52                                 </td>
    53                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}">
    54                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>
     45                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
    5546                                </td>
    5647                            </tr>
     
    6758                            <tr class="prop">
    6859                                <td valign="top" class="name">
    69                                     <label for="persons">Persons:</label>
     60                                    <label for="departmentExtendedAttributes">Department Extended Attributes:</label>
    7061                                </td>
    71                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}">
     62                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}">
    7263                                   
    7364<ul>
    74 <g:each var="p" in="${departmentInstance?.persons?}">
    75     <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
     65<g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}">
     66    <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
    7667</g:each>
    7768</ul>
    78 <g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>
     69<g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link>
    7970
    8071                                </td>
     
    8374                            <tr class="prop">
    8475                                <td valign="top" class="name">
    85                                     <label for="systemSections">System Sections:</label>
     76                                    <label for="sections">Sections:</label>
    8677                                </td>
    87                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'systemSections','errors')}">
     78                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}">
    8879                                   
    8980<ul>
    90 <g:each var="s" in="${departmentInstance?.systemSections?}">
    91     <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     81<g:each var="s" in="${departmentInstance?.sections?}">
     82    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    9283</g:each>
    9384</ul>
    94 <g:link controller="systemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>
     85<g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link>
    9586
    9687                                </td>
Note: See TracChangeset for help on using the changeset viewer.