details.jsp 2.19 KB
Newer Older
1 2 3 4 5 6
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>

<html>
<head>
7
    <title><spring:message code="team.page.profile.title" arguments="${team.name}" argumentSeparator="||" /></title>
8 9
</head>
<body>
10 11 12
<h1>
    <c:out value="${team.name}" />
</h1>
13
<a href="<c:url value="/team/${team.uuid}/edit" />" class="close"><spring:message code="edit" /></a>
14 15 16
<security:authorize access="hasRole('ADMINISTRATOR') or hasPermission(#team, 'WRITE')">
    <a href="<c:url value="/acl/${team['class'].name}/${team.id}/permissions"><c:param name="back">/team/${team.uuid}</c:param></c:url>" class="btn btn-default"> <spring:message code="edit-acl" /></a>
</security:authorize>
Matija Obreza's avatar
Matija Obreza committed
17

18 19 20
<h4>
    <spring:message code="team.team-members" arguments="${teammembers.size()}" />
</h4>
21

22 23


24 25 26 27
<ul class="funny-list">
    <c:forEach items="${teammembers}" var="user" varStatus="status">
        <li class="${status.count % 2 == 0 ? 'even' : 'odd'}">
            <c:out value="${user.name}" />
28 29 30
            <security:authorize access="hasRole('ADMINISTRATOR')">
                <a href="<c:url value="/team/${team.uuid}/${user.uuid}/deleteMember"/> "><spring:message code="delete"/></a>
            </security:authorize>
31 32 33
        </li>
    </c:forEach>
</ul>
34 35 36
<security:authorize access="hasRole('ADMINISTRATOR') or hasPermission(#team, 'WRITE')">
    <form action="<c:url value="/team/${team.uuid}/addMember"/>" class="form-horizontal">
        <div class="form-group">
37
            <label for="email" class="col-lg-2 control-label"><spring:message code="team.user.enter.email"/></label>
38 39 40 41 42 43 44
            <div class="col-lg-3"><input type="text" id="email" name="email" class="form-control"/></div>
            <div class="col-lg-3"><input type="submit" class="btn btn-green" value="<spring:message code="add"/>"/>
            </div>
        </div>
    </form>
</security:authorize>

45 46 47 48
	<!-- Errors? -->
	<gui:alert type="danger" display="${error ne null}">
		<spring:message code="user.not.found" />
	</gui:alert>
49

50
	<div class="audit-info">
Matija Obreza's avatar
Matija Obreza committed
51 52 53
		<c:if test="${team.lastModifiedBy ne null}"><spring:message code="audit.lastModifiedBy" arguments="${jspHelper.userFullName(team.lastModifiedBy)}" /></c:if>
		<fmt:formatDate value="${team.lastModifiedDate}" type="both" />
	</div>
54 55
</body>
</html>