
    <h1>
        Task #${taskInstance.id}

        <g:if test="${taskInstance.approved}" >
            <img  src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" />
        </g:if>
        <g:if test="${taskRecurringScheduleInstance?.enabled}" >
            <img  src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" />
        </g:if>
        <g:if test="${taskInstance.taskStatus.id == 2}" >
            <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" />
        </g:if>
        <g:if test="${taskInstance.attentionFlag}" >
            <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" />
        </g:if>
        <g:if test="${taskInstance.taskStatus.id == 3}" >
            <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" />
        </g:if>
    </h1>
    <g:if test="${taskInstance.primaryAsset}" >
        ${fieldValue(bean:taskInstance, field:'primaryAsset')}:
    </g:if>
    ${fieldValue(bean:taskInstance, field:'description')}
    <g:if test="${taskInstance.safetyRequirement}" >
        <img  src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" />
        Safety
    </g:if>
    <g:if test="${taskInstance.regulatoryRequirement}" >
        <img  src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" />
        Regulatory
    </g:if>
    <g:if test="${taskInstance.mandatoryRequirement}" >
        <img  src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" />
        Mandatory
    </g:if>