<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<ul class="members-list">
    <c:forEach var="member" items="${members}">
        <li class="member">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <span>${member.firstName} ${member.lastName}</span>

                    <c:if test="${pageContext.request.userPrincipal.name != member.email}">
                        <span class="delete-member glyphicon glyphicon-trash"></span>
                    </c:if>

                    <input type="hidden" name="email" class="email" value="${member.email}" />
                </div>

                <table class="table member-info">
                    <tr>
                        <td>Project role</td>
                        <td>${member.role}</td>
                    </tr>

                    <tr>
                        <td>Joined date</td>
                        <td>${member.joinedDate}</td>
                    </tr>
                </table>
            </div>
        </li>
    </c:forEach>
</ul>