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.

Location:
trunk/grails-app/views/systemSection
Files:
4 edited

Legend:

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

    r118 r122  
    5454                            </tr>
    5555                       
     56                            <tr class="prop">
     57                                <td valign="top" class="name">
     58                                    <label for="site">Site:</label>
     59                                </td>
     60                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
     61                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
     62                                </td>
     63                            </tr>
     64                       
    5665                        </tbody>
    5766                    </table>
  • 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>
  • trunk/grails-app/views/systemSection/list.gsp

    r118 r122  
    3030                                <g:sortableColumn property="name" title="Name" />
    3131                       
     32                                <th>Site</th>
     33                           
    3234                        </tr>
    3335                    </thead>
     
    4446                            <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td>
    4547                       
     48                            <td>${fieldValue(bean:systemSectionInstance, field:'site')}</td>
     49                       
    4650                        </tr>
    4751                    </g:each>
  • trunk/grails-app/views/systemSection/show.gsp

    r118 r122  
    3131                   
    3232                        <tr class="prop">
    33                             <td valign="top" class="name">Asset Types:</td>
     33                            <td valign="top" class="name">Assets:</td>
    3434                           
    3535                            <td  valign="top" style="text-align:left;" class="value">
    3636                                <ul>
    37                                 <g:each var="a" in="${systemSectionInstance.assetTypes}">
    38                                     <li><g:link controller="assetType" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     37                                <g:each var="a" in="${systemSectionInstance.assets}">
     38                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    3939                                </g:each>
    4040                                </ul>
     
    5858                   
    5959                        <tr class="prop">
    60                             <td valign="top" class="name">Life Plans:</td>
     60                            <td valign="top" class="name">Maintenance Actions:</td>
    6161                           
    6262                            <td  valign="top" style="text-align:left;" class="value">
    6363                                <ul>
    64                                 <g:each var="l" in="${systemSectionInstance.lifePlans}">
    65                                     <li><g:link controller="lifePlan" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>
     64                                <g:each var="m" in="${systemSectionInstance.maintenanceActions}">
     65                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    6666                                </g:each>
    6767                                </ul>
     
    7474                           
    7575                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
     76                           
     77                        </tr>
     78                   
     79                        <tr class="prop">
     80                            <td valign="top" class="name">Site:</td>
     81                           
     82                            <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
    7683                           
    7784                        </tr>
Note: See TracChangeset for help on using the changeset viewer.