<%@ include file="/common/taglibs.jsp" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<head>
    <title><fmt:message key="title.contacts"/></title>
    <meta name="menu" content="contacts"/>
    <meta name="current_user_id" content="${currentUser.id}"/>
    <script type="text/javascript"
            src="/scripts/solomon/import-success.js?<fmt:message key="webapp.version"/>"></script>
</head>

<div class="some-pane">
    <div class="working-pane">
        <div class="scroll-pane">
            <p>${importStatus}<br/>
                ${fn:length(successList)} Contacts Imported<br/>
                ${fn:length(failList)} Errors</p>

            <p><a href="/import/${rollbackID}">Undo this import</a><br/>
                Imports can also be rolled-back from the administration section</p>

            <div class="successIDList hide">
                <ul>
                    <c:forEach var="elem" items="${successIDList}">
                        <li><c:out value="${elem}"/></li>
                    </c:forEach>
                </ul>
            </div>

            <div class="left-col hide" style="float:left;margin:1em 5em 5em 1em;">
                <h2>Successful:</h2>
                <ul>
                    <c:forEach var="elem" items="${successList}">
                        <li><c:out value="${elem}"/></li>
                    </c:forEach>
                </ul>
            </div>

        </div>
    </div>
</div>