anchor.diff:  </c:forEach>
   --%>
   </c:if>
  -<tags:createField property="visitId" component="${component}"/>
  +<c:if test="${componentView == 'edit'}">
  +	<c:set var="visitId">
  +		<tags:componentProperty component="${component}" property="visitId"/>
  +	</c:set>
  +	<c:if test="${not empty visitId}">
  +		<c:set var="visitLink">   
  +			<tags:eventActionButton buttonImage="view" component="visit" action="view" pageName="${component}" parameters="id,${visitId}" javascript="submitted=true;"/>
  +		</c:set>
  +	</c:if>
  +</c:if>	
  +<tags:createField property="visitId" component="${component}" link="${visitLink}"/>
   <c:if test="${componentView == 'edit'}">
   <tags:eventButton buttonText="Add Visit" component="visit" action="add"  pageName="${component}" javascript="submitted=true;"/>
   </c:if>
   </page:applyDecorator>
   
  +<%-- not showing scheduling window here as that is at the timepoint level --%>
   <page:applyDecorator name="component.entity.section">
  -  <page:param name="sectionId">status</page:param>
  -  <page:param name="sectionNameKey">${component}.status.section</page:param>
  -<tags:createField property="currStatus" component="${component}" entityType="protocol"/>
  -<tags:createField property="currReason" component="${component}" entityType="protocol"/>
  -<tags:createField property="currNote" component="${component}" entityType="protocol"/>
  -<tags:createField property="notes" component="${component}"/>
  +  <page:param name="sectionId">compStatusSection</page:param>
  +  <page:param name="sectionNameKey">${component}.compStatusSection.section</page:param>
  +<%-- show rolled up status as readonly --%>
  +<tags:createField property="compStatusOverride" component="${component}"/>
  +<tags:createField property="compStatus" component="${component}"/>
  +<tags:createField property="compStatusComputed" component="${component}"/>
   </page:applyDecorator>
  +
  +<tags:contentColumn columnClass="colLeft2Col5050">
  +<page:applyDecorator name="component.entity.section">
  +  <page:param name="sectionId">schedStatus</page:param>
  +  <page:param name="sectionNameKey">${component}.schedStatus.section</page:param>
  +<%-- if allow admin user to edit status here, how to prevent status calcs from overwriting user override of status? --%>
  +<tags:createField property="schedWinStatus" component="${component}"/>
  +<tags:createField property="schedWinReason" component="${component}"/>
  +<tags:createField property="schedWinNote" component="${component}"/>
  +</page:applyDecorator>
  +</tags:contentColumn>
  +
  +<tags:contentColumn columnClass="colRight2Col5050">
  +<page:applyDecorator name="component.entity.section">
  +  <page:param name="sectionId">collectStatus</page:param>
  +  <page:param name="sectionNameKey">${component}.collectStatus.section</page:param>
  +<%-- show rolled up status as readonly --%>
  +<tags:createField property="collectWinStatus" component="${component}"/>
  +</page:applyDecorator>
  +</tags:contentColumn>
   
   </page:applyDecorator>    
   
  
positive.code: </c:forEach>
  <c:forEach items="${protocolVisit.options}" var="option" varStatus="iterator">
  <tags:listRow>
  	<tags:listCell>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8226;&nbsp;${option.visitType}&nbsp;-&nbsp;${visitTypeProjName}&nbsp;(${option.effectiveEffDate}&nbsp;-&nbsp;-${option.effectiveExpDate})</tags:listCell>
  </tags:listRow>	  
  </c:forEach>
  <div>&nbsp;</div>
  
negative.code: 
  </c:if>
  
  
  <c:if test="${componentView != 'view'}">
  
  <ui:formGuide simulateEvents="true">
  	<ui:observeForNull elementIds="compStatusOverride" component="${component}"/>
  	<ui:disable elementIds="compStatus" component="${component}"/>
  </ui:formGuide>
  
  </c:if>
  
  </page:applyDecorator>    
  
  
  