<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="pages">
  <c:forEach var="page" items="${pages}">
    <c:if test="${page.value eq '...'}">
      <span class="page-inactive">...</span>
    </c:if>
    <c:if test="${!(page.value eq '...') && page.isCurrent}">
      <a href="#" class="page-current" onclick="getHtmlByAjax('GET', 'entityList/?nameRenderer=${nameRendererList}&nameEntity=${param.nameEntity}&page=${page.value}${flyParams}');">${page.value}</a>
    </c:if>
    <c:if test="${!(page.value eq '...') && !page.isCurrent}">
      <a href="#" class="page" onclick="getHtmlByAjax('GET', 'entityList/?nameRenderer=${nameRendererList}&nameEntity=${param.nameEntity}&page=${page.value}${flyParams}');">${page.value}</a>
    </c:if>
  </c:forEach>
  <button onclick="window.open('chartOfAccounts/?nameRenderer=chartOfAccounts', '_blank');" class="btn btn-sm">
    ${srvI18n.getMsg("chartOfAccounts")}
  </button>
  <button onclick="getHtmlByAjax('GET', 'entity/?nameRenderer=editEntityJson&nameAction=createTransactional&nameEntity=${param.nameEntity}&page=${param.page}${flyParams}');" class="btn btn-sm">
    ${srvI18n.getMsg("New")}
  </button>
</div>
