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

<c:if test="${not empty customer_contracts}">
<div class="tile">
	<bg:blockTitle title="Связанные договоры"/>
	<c:forEach var="item" varStatus="status" items="${customer_contracts}">
		<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="line"></div></c:if>
	</c:forEach>
</div>
</c:if>