<commit_before><%@ include file="/kr/WEB-INF/jsp/tldHeader.jsp"%>

<c:if test="${ documentTypeStruct.shouldDisplay }" >
    <c:set var="documentType" value="${documentTypeStruct.documentType}" />
    <c:if test="${documentType.currentInd == true && documentType.active == true}">
      <c:choose>
        <c:when test="${excludeDocId != documentType.documentTypeId}">
          <table class="datatable" cellspacing="0" cellpadding="0" align="center" style="text-align: left; margin-left: auto; margin-right: auto;">
            <tbody>
              <tr>
                <td class="tab-subhead" width="50%">
                  <h2>
                    <kul:inquiry keyValues="documentTypeId=${documentType.documentTypeId}" boClassName="org.kuali.rice.kew.doctype.bo.DocumentType" render="true">
                      <c:choose>
	                      <c:when test="${documentType.label != documentType.name}">
		                      <c:out value="${documentType.label} (${documentType.name})" />
		                  </c:when>
		                  <c:otherwise>
		                      <c:out value="${documentType.label}" />
		                  </c:otherwise>
	                  </c:choose>
                    </kul:inquiry>
                  </h2>
                </td>
                <td class="tab-subhead" width="50%">
                    <c:if test="${KualiForm.canInitiateDocumentTypeDocument}">
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
                        <c:param name="methodToCall" value="edit" />
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.doctype.bo.DocumentType"/>
                        <c:param name="documentTypeId" value="${documentType.documentTypeId}"/>
                        <c:param name="name" value="${documentType.name}"/>
                      </c:url>" target="_blank">Edit Document Type</a>
                    &nbsp;&nbsp;&nbsp;
                    </c:if>
                    <a href="<c:url value="DocumentConfigurationView.do">
                        <c:param name="methodToCall" value="start" />
                        <c:param name="documentTypeName" value="${documentType.name}"/>
                      </c:url>" target="_blank">View Document Configuration</a>
                    <br />
                </td>
              </tr>
            </tbody>
          </table>
          <table cellspacing="0" cellpadding="0" width="100%">
            <c:forEach items="${documentTypeStruct.flattenedNodes}" var="routeLevel">

              <c:if test="${routeLevel.routeMethodName != Constants.EXCEPTION_ROUTE_MODULE_NAME &&
                  routeLevel.routeMethodName != Constants.ADHOC_ROUTE_MODULE_NAME}">
                <c:if test="${routeLevel.flexRM}">
	                <tr nowrap="nowrap">
	                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left">
	                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
	                  </kul:htmlAttributeHeaderCell>
	                  <td class="datacell" width="50%">
	                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
	                        <c:param name="methodToCall" value="start" />
	                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
	                        <c:param name="ruleCreationValues.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
	                        <c:param name="ruleCreationValues.ruleTemplateName" value="${routeLevel.ruleTemplate.name}"/>
	                        <c:param name="ruleCreationValues.docTypeName" value="${documentType.name}"/>
	                      </c:url>" target="_blank">Add Rule</a>&nbsp;
	                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
	                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
	                        <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
	                        <c:param name="hideReturnLink" value="true"/>
	                        <c:param name="methodToCall" value="search"/>
	                        <c:param name="docFormKey" value="88888888"/>
	                        <c:param name="documentType.name" value="${documentType.name}"/>
	                        <c:param name="ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                      </c:url>" target="_blank">Search</a>
	                    <c:if test="${routeLevel.ruleTemplate.delegationTemplate != null}">
	                      &nbsp;
	                      <a href="<c:url value="RuleQuickLinks.do">
	                          <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleDelegation"/>
	                          <c:param name="returnLocation" value="DelegateRule.do"/>
	                          <c:param name="hideReturnLink" value="false"/>
	                          <c:param name="methodToCall" value="addDelegationRule"/>
	                          <c:param name="docFormKey" value="88888888"/>
	                          <c:param name="delegationRuleBaseValues.documentType.name" value="${documentType.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
	                        </c:url>" target="_blank">Add Delegation</a>&nbsp;
	                      <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
	                          <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleDelegation"/>
	                          <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
	                          <c:param name="hideReturnLink" value="true"/>
	                          <c:param name="methodToCall" value="search"/>
	                          <c:param name="docFormKey" value="88888888"/>
	                          <c:param name="delegationRuleBaseValues.documentType.name" value="${documentType.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                        </c:url>" target="_blank">Search Delegations</a>
	                    </c:if>
	                  </td>
	                </tr>
	              </c:if>
	              <c:if test="${!routeLevel.flexRM && routeLevel.roleNode}">
	              	<tr nowrap="nowrap">	              	
	                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left" colspan="2">
	                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
	                  </kul:htmlAttributeHeaderCell>
					</tr>  
	              </c:if>
              </c:if>
            </c:forEach>
          </table>
          <c:if test="${! empty documentTypeStruct.childrenDocumentTypes}">
            <div class="tab-container" style="border-left:1px solid #999999;border-bottom:1px solid #999999;">
              <c:forEach items="${documentTypeStruct.childrenDocumentTypes}" var="childDocumentTypeStruct">
                <c:set var="documentTypeStruct" value="${childDocumentTypeStruct}" scope="request"/>
                <c:import url="RuleQuickLinksDocumentTypeLinks.jsp" />
              </c:forEach>
            </div>
          </c:if>
        </c:when>
        <%-- have for the "excluded" document type - really the header one --%>
        <c:otherwise>
          <table cellspacing="0" cellpadding="0" width="100%">
          <c:forEach items="${documentTypeStruct.flattenedNodes}" var="routeLevel">
            <c:if test="${routeLevel.routeMethodName != Constants.EXCEPTION_ROUTE_MODULE_NAME &&
                routeLevel.routeMethodName != Constants.ADHOC_ROUTE_MODULE_NAME}">
              <c:if test="${routeLevel.flexRM}">
                <tr nowrap>
                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left">
                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
                  </kul:htmlAttributeHeaderCell>
                  <td class="datacell" width="50%">
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
                        <c:param name="methodToCall" value="start" />
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
                        <c:param name="ruleCreationValues.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
                        <c:param name="ruleCreationValues.ruleTemplateName" value="${routeLevel.ruleTemplate.name}"/>
                        <c:param name="ruleCreationValues.docTypeName" value="${documentType.name}"/>
                      </c:url>" target="_blank">Add Rule</a>&nbsp;
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
                        <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
                        <c:param name="hideReturnLink" value="true"/><commit_msg>Increased indent on rule quicklinks page to show hierarchy better.<commit_after><%@ include file="/kr/WEB-INF/jsp/tldHeader.jsp"%>

<c:if test="${ documentTypeStruct.shouldDisplay }" >
    <c:set var="documentType" value="${documentTypeStruct.documentType}" />
    <c:if test="${documentType.currentInd == true && documentType.active == true}">
      <c:choose>
        <c:when test="${excludeDocId != documentType.documentTypeId}">
          <table class="datatable" cellspacing="0" cellpadding="0" align="center" style="text-align: left; margin-left: auto; margin-right: auto;">
            <tbody>
              <tr>
                <td class="tab-subhead" width="50%">
                  <h2>
                    <kul:inquiry keyValues="documentTypeId=${documentType.documentTypeId}" boClassName="org.kuali.rice.kew.doctype.bo.DocumentType" render="true">
                      <c:choose>
	                      <c:when test="${documentType.label != documentType.name}">
		                      <c:out value="${documentType.label} (${documentType.name})" />
		                  </c:when>
		                  <c:otherwise>
		                      <c:out value="${documentType.label}" />
		                  </c:otherwise>
	                  </c:choose>
                    </kul:inquiry>
                  </h2>
                </td>
                <td class="tab-subhead" width="50%">
                    <c:if test="${KualiForm.canInitiateDocumentTypeDocument}">
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
                        <c:param name="methodToCall" value="edit" />
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.doctype.bo.DocumentType"/>
                        <c:param name="documentTypeId" value="${documentType.documentTypeId}"/>
                        <c:param name="name" value="${documentType.name}"/>
                      </c:url>" target="_blank">Edit Document Type</a>
                    &nbsp;&nbsp;&nbsp;
                    </c:if>
                    <a href="<c:url value="DocumentConfigurationView.do">
                        <c:param name="methodToCall" value="start" />
                        <c:param name="documentTypeName" value="${documentType.name}"/>
                      </c:url>" target="_blank">View Document Configuration</a>
                    <br />
                </td>
              </tr>
            </tbody>
          </table>
          <table cellspacing="0" cellpadding="0" width="100%">
            <c:forEach items="${documentTypeStruct.flattenedNodes}" var="routeLevel">

              <c:if test="${routeLevel.routeMethodName != Constants.EXCEPTION_ROUTE_MODULE_NAME &&
                  routeLevel.routeMethodName != Constants.ADHOC_ROUTE_MODULE_NAME}">
                <c:if test="${routeLevel.flexRM}">
	                <tr nowrap="nowrap">
	                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left">
	                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
	                  </kul:htmlAttributeHeaderCell>
	                  <td class="datacell" width="50%">
	                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
	                        <c:param name="methodToCall" value="start" />
	                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
	                        <c:param name="ruleCreationValues.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
	                        <c:param name="ruleCreationValues.ruleTemplateName" value="${routeLevel.ruleTemplate.name}"/>
	                        <c:param name="ruleCreationValues.docTypeName" value="${documentType.name}"/>
	                      </c:url>" target="_blank">Add Rule</a>&nbsp;
	                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
	                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
	                        <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
	                        <c:param name="hideReturnLink" value="true"/>
	                        <c:param name="methodToCall" value="search"/>
	                        <c:param name="docFormKey" value="88888888"/>
	                        <c:param name="documentType.name" value="${documentType.name}"/>
	                        <c:param name="ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                      </c:url>" target="_blank">Search</a>
	                    <c:if test="${routeLevel.ruleTemplate.delegationTemplate != null}">
	                      &nbsp;
	                      <a href="<c:url value="RuleQuickLinks.do">
	                          <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleDelegation"/>
	                          <c:param name="returnLocation" value="DelegateRule.do"/>
	                          <c:param name="hideReturnLink" value="false"/>
	                          <c:param name="methodToCall" value="addDelegationRule"/>
	                          <c:param name="docFormKey" value="88888888"/>
	                          <c:param name="delegationRuleBaseValues.documentType.name" value="${documentType.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
	                        </c:url>" target="_blank">Add Delegation</a>&nbsp;
	                      <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
	                          <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleDelegation"/>
	                          <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
	                          <c:param name="hideReturnLink" value="true"/>
	                          <c:param name="methodToCall" value="search"/>
	                          <c:param name="docFormKey" value="88888888"/>
	                          <c:param name="delegationRuleBaseValues.documentType.name" value="${documentType.name}"/>
	                          <c:param name="delegationRuleBaseValues.ruleTemplate.name" value="${routeLevel.ruleTemplate.name}"/>
	                        </c:url>" target="_blank">Search Delegations</a>
	                    </c:if>
	                  </td>
	                </tr>
	              </c:if>
	              <c:if test="${!routeLevel.flexRM && routeLevel.roleNode}">
	              	<tr nowrap="nowrap">	              	
	                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left" colspan="2">
	                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
	                  </kul:htmlAttributeHeaderCell>
					</tr>  
	              </c:if>
              </c:if>
            </c:forEach>
          </table>
          <c:if test="${! empty documentTypeStruct.childrenDocumentTypes}">
            <div class="tab-container" style="border-left:1px solid #999999;border-bottom:1px solid #999999; padding-left: 3em;">
              <c:forEach items="${documentTypeStruct.childrenDocumentTypes}" var="childDocumentTypeStruct">
                <c:set var="documentTypeStruct" value="${childDocumentTypeStruct}" scope="request"/>
                <c:import url="RuleQuickLinksDocumentTypeLinks.jsp" />
              </c:forEach>
            </div>
          </c:if>
        </c:when>
        <%-- have for the "excluded" document type - really the header one --%>
        <c:otherwise>
          <table cellspacing="0" cellpadding="0" width="100%">
          <c:forEach items="${documentTypeStruct.flattenedNodes}" var="routeLevel">
            <c:if test="${routeLevel.routeMethodName != Constants.EXCEPTION_ROUTE_MODULE_NAME &&
                routeLevel.routeMethodName != Constants.ADHOC_ROUTE_MODULE_NAME}">
              <c:if test="${routeLevel.flexRM}">
                <tr nowrap>
                  <kul:htmlAttributeHeaderCell width="50%"  scope="col" align="left">
                    <c:out value="${routeLevel.routeNodeName}" />&nbsp;
                  </kul:htmlAttributeHeaderCell>
                  <td class="datacell" width="50%">
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.MAINTENANCE_ACTION}">
                        <c:param name="methodToCall" value="start" />
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
                        <c:param name="ruleCreationValues.ruleTemplateId" value="${routeLevel.ruleTemplate.ruleTemplateId}"/>
                        <c:param name="ruleCreationValues.ruleTemplateName" value="${routeLevel.ruleTemplate.name}"/>
                        <c:param name="ruleCreationValues.docTypeName" value="${documentType.name}"/>
                      </c:url>" target="_blank">Add Rule</a>&nbsp;
                    <a href="<c:url value="${ConfigProperties.kr.url}/${Constants.LOOKUP_ACTION}">
                        <c:param name="businessObjectClassName" value="org.kuali.rice.kew.rule.RuleBaseValues"/>
                        <c:param name="returnLocation" value="${ConfigProperties.application.url}/portal.do"/>
                        <c:param name="hideReturnLink" value="true"/>
{'fraction_non_alphanumeric': 0.14863593603010347, 'fraction_numerical': 0.0070555032925682035, 'mean_word_length': 1.9538437789441185, 'pattern_counts': {'":': 0, '<': 295, '<?xml version=': 0, '>': 293, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2564229', 'n_tokens_mistral': 5353, 'n_tokens_neox': 4972, 'n_words': 714}