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

Last change on this file since 862 was 862, checked in by gav, 8 years ago

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

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