Ignore:
Timestamp:
May 1, 2009, 3:27:41 PM (15 years ago)
Author:
gav
Message:

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

File:
1 edited

Legend:

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

    r118 r122  
    3232                            <tr class="prop">
    3333                                <td valign="top" class="name">
    34                                     <label for="assetTypes">Asset Types:</label>
     34                                    <label for="assets">Assets:</label>
    3535                                </td>
    36                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assetTypes','errors')}">
     36                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}">
    3737                                   
    3838<ul>
    39 <g:each var="a" in="${systemSectionInstance?.assetTypes?}">
    40     <li><g:link controller="assetType" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     39<g:each var="a" in="${systemSectionInstance?.assets?}">
     40    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    4141</g:each>
    4242</ul>
    43 <g:link controller="assetType" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add AssetType</g:link>
     43<g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>
    4444
    4545                                </td>
     
    6666                            <tr class="prop">
    6767                                <td valign="top" class="name">
    68                                     <label for="lifePlans">Life Plans:</label>
     68                                    <label for="maintenanceActions">Maintenance Actions:</label>
    6969                                </td>
    70                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'lifePlans','errors')}">
    71                                     <g:select name="lifePlans"
    72 from="${LifePlan.list()}"
    73 size="5" multiple="yes" optionKey="id"
    74 value="${systemSectionInstance?.lifePlans}" />
     70                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}">
     71                                   
     72<ul>
     73<g:each var="m" in="${systemSectionInstance?.maintenanceActions?}">
     74    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     75</g:each>
     76</ul>
     77<g:link controller="maintenanceAction" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
    7578
    7679                                </td>
     
    8386                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
    8487                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
     88                                </td>
     89                            </tr>
     90                       
     91                            <tr class="prop">
     92                                <td valign="top" class="name">
     93                                    <label for="site">Site:</label>
     94                                </td>
     95                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
     96                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
    8597                                </td>
    8698                            </tr>
Note: See TracChangeset for help on using the changeset viewer.