<%@ page contentType="text/html; charset=UTF-8"%><%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<c:if test="${not empty contract_sublist}">
<div class="tile">
	<div class="flexRow" style="line-height: 2rem; margin-top: 10px;" >
		<div class="titleFont3">Договор № ${fn:toUpperCase(contract_general.title)}</div>
		<div><button class="btn btn-primary" onclick="showBlock( 'contractSwitchResult', 'changeContract', { ...contractsQuery, contractId: '${contract_general.id}' } ); return false;">Сменить договор</button></div>
	</div>
	<div class="line"></div>
	<div class="titleFont2" style="margin: 1rem 0rem;">Субдоговоры:</div>
	<div class="line2"></div>
	<c:forEach var="item" varStatus="status" items="${contract_sublist}">
		<div class="flexRow" style="line-height: 2rem; margin-top: 10px;" >
			<div class="titleFont2" style="margin-left: 10px">${item.title}</div>
			<div><button class="btn btn-primary" onclick="showBlock( 'contractSwitchResult', 'changeContract', { ...contractsQuery, contractId: '${item.id}' } ); return false;">Сменить договор</button></div>
		</div>
		<c:if test="${not status.last}"><div class="line2"></div></c:if>
	</c:forEach>
</div>
</c:if>