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

<fmt:setLocale value="RU"/>

<ul class="nav nav-tabs mx-5">
  <li class="nav-item">
    <a class="nav-link" href="#" onclick="showBlock( 'statusRoot', 'status', statusQuery );">Текущий</a>
  </li>
  <li class="nav-item">
    <a class="nav-link active" href="#">История</a>
  </li>
</ul>

<div class="tile tileTabs">
	<c:if test="${not empty statuses}">
	<c:forEach var="item" varStatus="status" items="${statuses}">
	<div class="d-flex flex-row my-3">
		<div class="fs-5 text-nowrap" style="width: 13em;"><fmt:formatDate type="DATE" dateStyle="SHORT" value="${item.dateFrom}"/> - <fmt:formatDate type="DATE" dateStyle="SHORT" value="${item.dateTo}"/></div>
		<div class="d-flex flex-column">
			<div class="fs-5 fw-bold">${statusMap[item.status]}</div>
			<div class="fs-6 fst-italic">${item.comment}</div>
		</div>
	</div>
	<c:if test="${not status.last}"><div class="line"></div></c:if>
	</c:forEach>
	</c:if>
</div>
