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

    r178 r268  
    3131                                </td>
    3232                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">
    33                                     <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
    34                                 </td>
    35                             </tr>
    36                        
    37                             <tr class="prop">
    38                                 <td valign="top" class="name">
    39                                     <label for="assetType">Asset Type:</label>
    40                                 </td>
    41                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}">
    42                                     <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>
    43                                 </td>
    44                             </tr>
    45                        
    46                             <tr class="prop">
    47                                 <td valign="top" class="name">
    48                                     <label for="costCode">Cost Code:</label>
    49                                 </td>
    50                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}">
    51                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/>
     33                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
    5234                                </td>
    5335                            </tr>
     
    5840                                </td>
    5941                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}">
    60                                     <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
     42                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
    6143                                </td>
    6244                            </tr>
     
    7355                            <tr class="prop">
    7456                                <td valign="top" class="name">
    75                                     <label for="systemSection">System Section:</label>
     57                                    <label for="section">Section:</label>
    7658                                </td>
    77                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
    78                                     <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
     59                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}">
     60                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select>
    7961                                </td>
    8062                            </tr>
Note: See TracChangeset for help on using the changeset viewer.