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

<ul class="nav nav-tabs mx-5">
  <li class="nav-item"><a class="nav-link" href="#" onclick="showBlock( 'tariffRoot', 'tariff', tariffPlanQuery );">Тариф</a></li>
  <li class="nav-item"><a class="nav-link active" aria-current="page" href="#">История</a></li>
</ul>

<div class="tile tileTabs">
<bg:blockTitle title="История изменений"/>
<c:forEach var="item" varStatus="status" items="${tariffList}">
<div style="margin: 10px;">
	<c:set var="contractTariffPeriod" value="${item.period}"/>
	<div class="paramColor paramFont tariffPlanParam"><span><fmt:formatDate dateStyle="SHORT" value="${contractTariffPeriod.dateFrom}"/> - <fmt:formatDate dateStyle="SHORT" value="${contractTariffPeriod.dateTo}"/></span></div>
	<div class="fontSize2 text-left mt-1 m-2"><c:choose><c:when test="${tariffMap[item.tariffPlanId].useTitleInWeb}">${tariffMap[item.tariffPlanId].title}</c:when><c:otherwise>${tariffMap[item.tariffPlanId].titleWeb}</c:otherwise></c:choose></div>
</div>
<c:if test="${not status.last}"><div class="line"></div></c:if>
</c:forEach>
</div>