source: trunk/grails-app/views/taskDetailed/_showTaskControlButtons.gsp @ 966

Last change on this file since 966 was 864, checked in by gav, 14 years ago

Add task show tab header and control button update elements on entry save, part 2.

File size: 2.6 KB
Line 
1
2    <g:form controller="taskDetailed">
3        <input type="hidden" name="id" value="${taskInstance?.id}" />
4
5        <g:if test="${taskInstance.trash}" >
6            <span class="button">
7                <g:actionSubmit class="restore" onclick="return confirm('Are you sure?');" value="Restore"/>
8            </span>
9        </g:if>
10        <g:else>
11
12            <g:if test="${taskInstance.taskStatus.id != 3}" >
13
14                <g:if test="${taskInstance.attentionFlag}" >
15                    <span class="button"><g:actionSubmit class="flag" value="Clear" action="clearAttentionFlag"/></span>
16                </g:if>
17                <g:else>
18                    <span class="button"><g:actionSubmit class="flag" value="Unresolved" action="setAttentionFlag"/></span>
19                    <custom:helpBalloon code="task.status.unresolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
20
21                </g:else>
22
23                <span class="button">
24                    <g:if test="${taskInstance.attentionFlag}" >
25                        <g:actionSubmit class="complete"
26                                                value="Resolved"
27                                                onclick="return confirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');"
28                                                action="complete"/>
29                    </g:if>
30                    <g:else>
31                        <g:actionSubmit class="complete" value="Resolved" action="complete"/>
32                    </g:else>
33                </span>
34                <custom:helpBalloon code="task.status.resolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
35
36
37                <g:if test="${taskInstance.approved}" >
38                    <span class="button"><g:actionSubmit class="renegeApproval" value="Renege Approval" action="renegeApproval" /></span>
39                </g:if>
40                <g:else>
41                    <span class="button"><g:actionSubmit class="approve" value="Approve" /></span>
42                </g:else>
43
44                <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
45                <span class="button">
46                    <g:actionSubmit class="trash"
47                                                onclick="return confirm('${message(code:'task.trash.confirm')}');"
48                                                value="Trash" />
49                </span>
50
51            </g:if>
52            <g:else>
53                <span class="button"><g:actionSubmit class="reopen" value="Reopen" /></span>
54            </g:else>
55
56        </g:else>
57    </g:form>
Note: See TracBrowser for help on using the repository browser.