source: trunk/grails-app/views/taskDetailed/_showTabHeader.gsp @ 901

Last change on this file since 901 was 852, checked in by gav, 14 years ago

Refactor show task tabHeader into a template.

File size: 1.8 KB
RevLine 
[852]1
2    <h1>
3        Task #${taskInstance.id}
4
5        <g:if test="${taskInstance.approved}" >
6            <img  src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" />
7        </g:if>
8        <g:if test="${taskRecurringScheduleInstance?.enabled}" >
9            <img  src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" />
10        </g:if>
11        <g:if test="${taskInstance.taskStatus.id == 2}" >
12            <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" />
13        </g:if>
14        <g:if test="${taskInstance.attentionFlag}" >
15            <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" />
16        </g:if>
17        <g:if test="${taskInstance.taskStatus.id == 3}" >
18            <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" />
19        </g:if>
20    </h1>
21    <g:if test="${taskInstance.primaryAsset}" >
22        ${fieldValue(bean:taskInstance, field:'primaryAsset')}:
23    </g:if>
24    ${fieldValue(bean:taskInstance, field:'description')}
25    <g:if test="${taskInstance.safetyRequirement}" >
26        <img  src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" />
27        Safety
28    </g:if>
29    <g:if test="${taskInstance.regulatoryRequirement}" >
30        <img  src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" />
31        Regulatory
32    </g:if>
33    <g:if test="${taskInstance.mandatoryRequirement}" >
34        <img  src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" />
35        Mandatory
36    </g:if>
Note: See TracBrowser for help on using the repository browser.