Ignore:
Timestamp:
Mar 5, 2010, 12:45:43 PM (14 years ago)
Author:
gav
Message:

Add ProductionReference.
Add ProductionManager and ProductionUser roles.
Update immediate callout help definitions, roll errors into one ul.
Add help definitions for resolved and unresolved.

Location:
trunk/grails-app/views/entryDetailed
Files:
3 edited

Legend:

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

    r230 r431  
    6060                                </td>
    6161                                <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}">
    62                                     <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${new Date()}" />
     62                                    <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${entryInstance.dateDone}" />
    6363                                    <g:helpBalloon code="entry.date.done" />
    6464                                </td>
    6565                            </tr>
     66
     67                            <g:if test="${entryInstance?.entryType?.id == 1}">
     68                                <tr class="prop">
     69                                    <td valign="top" class="name">
     70                                        <label for="productionReference">Production:</label>
     71                                    </td>
     72                                    <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}">
     73                                        <g:select optionKey="id"
     74                                                            from="${ProductionReference.findAllByIsActive(true)}"
     75                                                            name="productionReference.id"
     76                                                            value="${entryInstance.productionReference?.id}"
     77                                                            noSelection="['null':'--None--']">
     78                                        </g:select>
     79                                        <g:helpBalloon code="entry.productionReference.fault" />
     80                                    </td>
     81                                </tr>
     82                            </g:if>
    6683                       
    6784                            <tr class="prop">
  • trunk/grails-app/views/entryDetailed/edit.gsp

    r395 r431  
    5555                                </td>
    5656                            </tr>
     57
     58                            <g:if test="${entryInstance?.entryType?.id == 1}">
     59                                <tr class="prop">
     60                                    <td valign="top" class="name">
     61                                        <label for="productionReference">Production:</label>
     62                                    </td>
     63                                    <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}">
     64                                        <g:select optionKey="id"
     65                                                            from="${ProductionReference.findAllByIsActive(true)}"
     66                                                            name="productionReference.id"
     67                                                            value="${entryInstance.productionReference?.id}"
     68                                                            noSelection="['null':'--None--']">
     69                                        </g:select>
     70                                        <g:helpBalloon code="entry.productionReference.fault" />
     71                                    </td>
     72                                </tr>
     73                            </g:if>
    5774                       
    5875                            <tr class="prop">
  • trunk/grails-app/views/entryDetailed/show.gsp

    r147 r431  
    4949                           
    5050                        </tr>
     51
     52                        <g:if test="${entryInstance.productionReference}">
     53                            <tr class="prop">
     54                                <td valign="top" class="name">Production:</td>
     55
     56                                <td valign="top" class="value">
     57                                    ${fieldValue(bean:entryInstance, field:'productionReference')}
     58                                </td>
     59
     60                            </tr>
     61                        </g:if>
    5162                   
    5263                        <tr class="prop">
Note: See TracChangeset for help on using the changeset viewer.