source: trunk/grails-app/views/entryDetailed/_create.gsp @ 826

Last change on this file since 826 was 826, checked in by gav, 13 years ago

AJAX PM Entry, first draft.

File size: 4.4 KB
RevLine 
[826]1
2    <g:form action="save" method="post" >
3        <g:hiddenField name="task.id" value="${entryInstance.task.id}" />
4        <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" />
5        <div class="dialog">
6            <table>
7                <tbody>
8
9                    <tr class="prop">
10                        <td valign="top" class="name">
11                            <label for="comment">${entryInstance?.entryType.encodeAsHTML()}:</label>
12                        </td>
13                        <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}">
14                            <textarea rows="5" cols="40" name="comment">${fieldValue(bean:entryInstance, field:'comment')}</textarea>
15                            <g:if test="${entryInstance?.entryType?.id == 1}">
16<%--                                  <g:helpBalloon code="entry.comment.fault" />  --%>
17                            </g:if>
18                            <g:elseif test="${entryInstance?.entryType?.id == 2}">
19<%--                                  <g:helpBalloon code="entry.comment.cause" />  --%>
20                            </g:elseif>
21                            <g:elseif test="${entryInstance?.entryType?.id == 3}">
22<%--                                  <g:helpBalloon code="entry.comment.work.done" />  --%>
23                            </g:elseif>
24                        </td>
25                    </tr>
26
27                    <tr class="prop">
28                        <td valign="top" class="name">
29                            <label for="dateDone">Date Done:</label>
30                        </td>
31                        <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}">
32                            <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${entryInstance.dateDone}" />
33<%--                              <g:helpBalloon code="entry.date.done" />  --%>
34                        </td>
35                    </tr>
36
37                    <g:if test="${entryInstance?.entryType?.id == 1}">
38                        <tr class="prop">
39                            <td valign="top" class="name">
40                                <label for="productionReference">Production:</label>
41                            </td>
42                            <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}">
43                                <g:select optionKey="id"
44                                                    from="${ProductionReference.findAllByIsActive(true)}"
45                                                    name="productionReference.id"
46                                                    value="${entryInstance.productionReference?.id}"
47                                                    noSelection="['null':'--None--']">
48                                </g:select>
49<%--                                  <g:helpBalloon code="entry.productionReference.fault" />  --%>
50                            </td>
51                        </tr>
52                    </g:if>
53
54                    <g:if test="${entryInstance?.entryType?.id != 2}">
55                        <tr class="prop">
56                            <td valign="top" class="name">
57                                <label for="durationHour">Duration:</label>
58                            </td>
59
60                            <td valign="top" class="value">
61                                <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}"
62                                    type="text" id="durationHour" name="durationHour"
63                                    value="${fieldValue(bean:entryInstance,field:'durationHour')}" />
64                                :
65                                <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}"
66                                    type="text" id="durationMinute" name="durationMinute"
67                                    value="${fieldValue(bean:entryInstance,field:'durationMinute')}" />
68<%--                                  <g:helpBalloon code="entry.duration" />  --%>
69                            </td>
70                        </tr>
71                    </g:if>
72
73                </tbody>
74            </table>
75        </div>
76        <div class="buttons">
77            <span class="button"><input class="save" type="submit" value="Create" /></span>
78        </div>
79    </g:form>
Note: See TracBrowser for help on using the repository browser.