Ignore:
Timestamp:
Jan 15, 2010, 11:37:52 AM (14 years ago)
Author:
gav
Message:

Regenerate asset views and detail views to suite.
Add CsvService, import and copy functions with appropriate messages and gsp's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/assetDetailed/create.gsp

    r161 r271  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Create Asset</title>   
     7        <title>Create Asset</title>
    88        <nav:resources override="true"/>
    99    </head>
     
    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')}"/>
     33                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
    3434                                </td>
    35                             </tr>
     35                            </tr> 
    3636                       
    3737                            <tr class="prop">
     
    4040                                </td>
    4141                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}">
    42                                     <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
    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')}"/>
    52                                 </td>
    53                             </tr>
    54                        
    55                             <tr class="prop">
    56                                 <td valign="top" class="name">
    57                                     <label for="assetType">Asset Type:</label>
    58                                 </td>
    59                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}">
    60                                     <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>
     42                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
    6143                                </td>
    6244                            </tr>
    63 
    64                             <tr class="prop">
    65                                 <td valign="top" class="name">
    66                                     <label for="systemSection">System Section:</label>
    67                                 </td>
    68                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
    69                                     <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
    70                                 </td>
    71                             </tr>
    72 
     45                       
    7346                            <tr class="prop">
    7447                                <td valign="top" class="name">
     
    7952                                </td>
    8053                            </tr>
    81 
     54                       
     55                            <tr class="prop">
     56                                <td valign="top" class="name">
     57                                    <label for="section">Section:</label>
     58                                </td>
     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>
     61                                </td>
     62                            </tr>
     63                       
    8264                        </tbody>
    8365                    </table>
Note: See TracChangeset for help on using the changeset viewer.