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/componentItem
Files:
4 edited

Legend:

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

    r118 r122  
    3838                            <tr class="prop">
    3939                                <td valign="top" class="name">
    40                                     <label for="fmeaNumber">Fmea Number:</label>
    41                                 </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">
    43                                     <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />
    44                                 </td>
    45                             </tr>
    46                        
    47                             <tr class="prop">
    48                                 <td valign="top" class="name">
    4940                                    <label for="isActive">Is Active:</label>
    5041                                </td>
    5142                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'isActive','errors')}">
    5243                                    <g:checkBox name="isActive" value="${componentItemInstance?.isActive}" ></g:checkBox>
    53                                 </td>
    54                             </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    58                                     <label for="lifeplan">Lifeplan:</label>
    59                                 </td>
    60                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}">
    61                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select>
    6244                                </td>
    6345                            </tr>
  • trunk/grails-app/views/componentItem/edit.gsp

    r118 r122  
    4141                            <tr class="prop">
    4242                                <td valign="top" class="name">
    43                                     <label for="fmeaNumber">Fmea Number:</label>
    44                                 </td>
    45                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">
    46                                     <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />
    47                                 </td>
    48                             </tr>
    49                        
    50                             <tr class="prop">
    51                                 <td valign="top" class="name">
    5243                                    <label for="isActive">Is Active:</label>
    5344                                </td>
     
    5950                            <tr class="prop">
    6051                                <td valign="top" class="name">
    61                                     <label for="lifeplan">Lifeplan:</label>
     52                                    <label for="maintenanceActions">Maintenance Actions:</label>
    6253                                </td>
    63                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}">
    64                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select>
     54                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'maintenanceActions','errors')}">
     55                                   
     56<ul>
     57<g:each var="m" in="${componentItemInstance?.maintenanceActions?}">
     58    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     59</g:each>
     60</ul>
     61<g:link controller="maintenanceAction" params="['componentItem.id':componentItemInstance?.id]" action="create">Add MaintenanceAction</g:link>
     62
    6563                                </td>
    6664                            </tr>
  • trunk/grails-app/views/componentItem/list.gsp

    r118 r122  
    2626                                <g:sortableColumn property="description" title="Description" />
    2727                       
    28                                 <g:sortableColumn property="fmeaNumber" title="Fmea Number" />
    29                        
    3028                                <g:sortableColumn property="isActive" title="Is Active" />
    3129                       
    32                                 <th>Lifeplan</th>
    33                            
    3430                                <g:sortableColumn property="name" title="Name" />
    3531                       
     
    4440                            <td>${fieldValue(bean:componentItemInstance, field:'description')}</td>
    4541                       
    46                             <td>${fieldValue(bean:componentItemInstance, field:'fmeaNumber')}</td>
    47                        
    4842                            <td>${fieldValue(bean:componentItemInstance, field:'isActive')}</td>
    49                        
    50                             <td>${fieldValue(bean:componentItemInstance, field:'lifeplan')}</td>
    5143                       
    5244                            <td>${fieldValue(bean:componentItemInstance, field:'name')}</td>
  • trunk/grails-app/views/componentItem/show.gsp

    r118 r122  
    3838                   
    3939                        <tr class="prop">
    40                             <td valign="top" class="name">Fmea Number:</td>
    41                            
    42                             <td valign="top" class="value">${fieldValue(bean:componentItemInstance, field:'fmeaNumber')}</td>
    43                            
    44                         </tr>
    45                    
    46                         <tr class="prop">
    4740                            <td valign="top" class="name">Is Active:</td>
    4841                           
     
    5245                   
    5346                        <tr class="prop">
    54                             <td valign="top" class="name">Lifeplan:</td>
     47                            <td valign="top" class="name">Maintenance Actions:</td>
    5548                           
    56                             <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${componentItemInstance?.lifeplan?.id}">${componentItemInstance?.lifeplan?.encodeAsHTML()}</g:link></td>
     49                            <td  valign="top" style="text-align:left;" class="value">
     50                                <ul>
     51                                <g:each var="m" in="${componentItemInstance.maintenanceActions}">
     52                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     53                                </g:each>
     54                                </ul>
     55                            </td>
    5756                           
    5857                        </tr>
Note: See TracChangeset for help on using the changeset viewer.