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

Legend:

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

    r118 r122  
    4747                            <tr class="prop">
    4848                                <td valign="top" class="name">
    49                                     <label for="lifeplan">Lifeplan:</label>
    50                                 </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'lifeplan','errors')}">
    52                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetTypeInstance?.lifeplan?.id}" ></g:select>
    53                                 </td>
    54                             </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    5849                                    <label for="name">Name:</label>
    5950                                </td>
    6051                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}">
    6152                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/>
    62                                 </td>
    63                             </tr>
    64                        
    65                             <tr class="prop">
    66                                 <td valign="top" class="name">
    67                                     <label for="systemSection">System Section:</label>
    68                                 </td>
    69                                 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'systemSection','errors')}">
    70                                     <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetTypeInstance?.systemSection?.id}" ></g:select>
    7153                                </td>
    7254                            </tr>
  • trunk/grails-app/views/assetType/edit.gsp

    r118 r122  
    4545                            <tr class="prop">
    4646                                <td valign="top" class="name">
     47                                    <label for="assetExtendedAttributes">Asset Extended Attributes:</label>
     48                                </td>
     49                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assetExtendedAttributes','errors')}">
     50                                   
     51<ul>
     52<g:each var="a" in="${assetTypeInstance?.assetExtendedAttributes?}">
     53    <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     54</g:each>
     55</ul>
     56<g:link controller="assetExtendedAttribute" params="['assetType.id':assetTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link>
     57
     58                                </td>
     59                            </tr>
     60                       
     61                            <tr class="prop">
     62                                <td valign="top" class="name">
    4763                                    <label for="assets">Assets:</label>
    4864                                </td>
     
    7995                            <tr class="prop">
    8096                                <td valign="top" class="name">
    81                                     <label for="lifeplan">Lifeplan:</label>
     97                                    <label for="maintenanceActions">Maintenance Actions:</label>
    8298                                </td>
    83                                 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'lifeplan','errors')}">
    84                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetTypeInstance?.lifeplan?.id}" ></g:select>
     99                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'maintenanceActions','errors')}">
     100                                   
     101<ul>
     102<g:each var="m" in="${assetTypeInstance?.maintenanceActions?}">
     103    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     104</g:each>
     105</ul>
     106<g:link controller="maintenanceAction" params="['assetType.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link>
     107
    85108                                </td>
    86109                            </tr>
     
    92115                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}">
    93116                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/>
    94                                 </td>
    95                             </tr>
    96                        
    97                             <tr class="prop">
    98                                 <td valign="top" class="name">
    99                                     <label for="systemSection">System Section:</label>
    100                                 </td>
    101                                 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'systemSection','errors')}">
    102                                     <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetTypeInstance?.systemSection?.id}" ></g:select>
    103117                                </td>
    104118                            </tr>
  • trunk/grails-app/views/assetType/list.gsp

    r118 r122  
    2828                                <g:sortableColumn property="isActive" title="Is Active" />
    2929                       
    30                                 <th>Lifeplan</th>
    31                            
    3230                                <g:sortableColumn property="name" title="Name" />
    3331                       
    34                                 <th>System Section</th>
    35                            
    3632                        </tr>
    3733                    </thead>
     
    4642                            <td>${fieldValue(bean:assetTypeInstance, field:'isActive')}</td>
    4743                       
    48                             <td>${fieldValue(bean:assetTypeInstance, field:'lifeplan')}</td>
    49                        
    5044                            <td>${fieldValue(bean:assetTypeInstance, field:'name')}</td>
    51                        
    52                             <td>${fieldValue(bean:assetTypeInstance, field:'systemSection')}</td>
    5345                       
    5446                        </tr>
  • trunk/grails-app/views/assetType/show.gsp

    r118 r122  
    4444                   
    4545                        <tr class="prop">
     46                            <td valign="top" class="name">Asset Extended Attributes:</td>
     47                           
     48                            <td  valign="top" style="text-align:left;" class="value">
     49                                <ul>
     50                                <g:each var="a" in="${assetTypeInstance.assetExtendedAttributes}">
     51                                    <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     52                                </g:each>
     53                                </ul>
     54                            </td>
     55                           
     56                        </tr>
     57                   
     58                        <tr class="prop">
    4659                            <td valign="top" class="name">Assets:</td>
    4760                           
     
    7184                   
    7285                        <tr class="prop">
    73                             <td valign="top" class="name">Lifeplan:</td>
     86                            <td valign="top" class="name">Maintenance Actions:</td>
    7487                           
    75                             <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${assetTypeInstance?.lifeplan?.id}">${assetTypeInstance?.lifeplan?.encodeAsHTML()}</g:link></td>
     88                            <td  valign="top" style="text-align:left;" class="value">
     89                                <ul>
     90                                <g:each var="m" in="${assetTypeInstance.maintenanceActions}">
     91                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     92                                </g:each>
     93                                </ul>
     94                            </td>
    7695                           
    7796                        </tr>
     
    81100                           
    82101                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td>
    83                            
    84                         </tr>
    85                    
    86                         <tr class="prop">
    87                             <td valign="top" class="name">System Section:</td>
    88                            
    89                             <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetTypeInstance?.systemSection?.id}">${assetTypeInstance?.systemSection?.encodeAsHTML()}</g:link></td>
    90102                           
    91103                        </tr>
Note: See TracChangeset for help on using the changeset viewer.