Changeset 852 for trunk


Ignore:
Timestamp:
03/09/11 13:30:49 (8 years ago)
Author:
gav
Message:

Refactor show task tabHeader into a template.

Location:
trunk/grails-app/views/taskDetailed
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/show.gsp

    r826 r852  
    2727 
    2828            <div class="tabHeader"> 
    29                 <h1> 
    30                     Task #${taskInstance.id} 
    31  
    32                     <g:if test="${taskInstance.approved}" > 
    33                         <img  src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" /> 
    34                     </g:if> 
    35                     <g:if test="${taskRecurringScheduleInstance?.enabled}" > 
    36                         <img  src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" /> 
    37                     </g:if> 
    38                     <g:if test="${taskInstance.taskStatus.id == 2}" > 
    39                         <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> 
    40                     </g:if> 
    41                     <g:if test="${taskInstance.attentionFlag}" > 
    42                         <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" /> 
    43                     </g:if> 
    44                     <g:if test="${taskInstance.taskStatus.id == 3}" > 
    45                         <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> 
    46                     </g:if> 
    47                 </h1> 
    48                 <g:if test="${taskInstance.primaryAsset}" > 
    49                     ${fieldValue(bean:taskInstance, field:'primaryAsset')}: 
    50                 </g:if> 
    51                 ${fieldValue(bean:taskInstance, field:'description')} 
    52                 <g:if test="${taskInstance.safetyRequirement}" > 
    53                     <img  src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> 
    54                     Safety 
    55                 </g:if> 
    56                 <g:if test="${taskInstance.regulatoryRequirement}" > 
    57                     <img  src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> 
    58                     Regulatory 
    59                 </g:if> 
    60                 <g:if test="${taskInstance.mandatoryRequirement}" > 
    61                     <img  src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> 
    62                     Mandatory 
    63                 </g:if> 
     29                <g:render template="showTabHeader" /> 
    6430            </div> 
    6531 
Note: See TracChangeset for help on using the changeset viewer.