Ignore:
Timestamp:
Mar 3, 2011, 11:17:40 PM (13 years ago)
Author:
gav
Message:

Update service, controller and view logic to hand Task and Entry highestSeverity.
Also remove associatedAssets from task search panes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/entryDetailed/_create.gsp

    r833 r838  
    1616            <table>
    1717                <tbody>
     18
     19                    <g:if test="${entryInstance?.entryType?.id == 1}">
     20                        <tr class="prop">
     21                            <td valign="top" class="name">
     22                                <label for="productionReference">Production:</label>
     23                            </td>
     24                            <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}">
     25                                <g:select optionKey="id"
     26                                                    from="${ProductionReference.findAllByIsActive(true)}"
     27                                                    name="productionReference.id"
     28                                                    value="${entryInstance.productionReference?.id}"
     29                                                    noSelection="['null':'--None--']">
     30                                </g:select>
     31                                <custom:helpBalloon code="entry.productionReference.fault" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
     32                            </td>
     33                        </tr>
     34                    </g:if>
     35
     36                    <g:if test="${entryInstance?.entryType?.id == 6}">
     37                        <tr class="prop">
     38                            <td valign="top" class="name">
     39                                <label for="highestSeverity">Condition Severity:</label>
     40                            </td>
     41                            <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'highestSeverity','errors')}">
     42                                <g:select optionKey="id"
     43                                                    from="${ConditionSeverity.findAllByIsActive(true)}"
     44                                                    name="highestSeverity.id"
     45                                                    value="${entryInstance.highestSeverity?.id}"
     46                                                    noSelection="['null':/${g.message(code:'default.please.select.text')}/]" >
     47                                </g:select>
     48                                <custom:helpBalloon code="entry.comment.pm.entry" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
     49                            </td>
     50                        </tr>
     51                    </g:if>
    1852
    1953                    <tr class="prop">
     
    4882                    </tr>
    4983
    50                     <g:if test="${entryInstance?.entryType?.id == 1}">
    51                         <tr class="prop">
    52                             <td valign="top" class="name">
    53                                 <label for="productionReference">Production:</label>
    54                             </td>
    55                             <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}">
    56                                 <g:select optionKey="id"
    57                                                     from="${ProductionReference.findAllByIsActive(true)}"
    58                                                     name="productionReference.id"
    59                                                     value="${entryInstance.productionReference?.id}"
    60                                                     noSelection="['null':'--None--']">
    61                                 </g:select>
    62                                 <custom:helpBalloon code="entry.productionReference.fault" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
    63                             </td>
    64                         </tr>
    65                     </g:if>
    66 
    6784                    <g:if test="${entryInstance?.entryType?.id != 2}">
    6885                        <tr class="prop">
Note: See TracChangeset for help on using the changeset viewer.