Ignore:
Timestamp:
May 4, 2009, 1:59:11 PM (15 years ago)
Author:
gav
Message:

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

Location:
trunk/grails-app/views/assetDetailed
Files:
1 edited
1 copied

Legend:

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

    r122 r124  
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
     31                                    <label for="name">Name:</label>
     32                                </td>
     33                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">
     34                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
     35                                </td>
     36                            </tr>
     37                       
     38                            <tr class="prop">
     39                                <td valign="top" class="name">
    3140                                    <label for="assetType">Asset Type:</label>
    3241                                </td>
    3342                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}">
    3443                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>
     44                                </td>
     45                            </tr>
     46
     47                            <tr class="prop">
     48                                <td valign="top" class="name">
     49                                    <label for="systemSection">System Section:</label>
     50                                </td>
     51                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
     52                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
    3553                                </td>
    3654                            </tr>
     
    5371                                </td>
    5472                            </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    58                                     <label for="name">Name:</label>
    59                                 </td>
    60                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">
    61                                     <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,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:assetInstance,field:'systemSection','errors')}">
    70                                     <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
    71                                 </td>
    72                             </tr>
    73                        
     73
    7474                        </tbody>
    7575                    </table>
Note: See TracChangeset for help on using the changeset viewer.