<%@ include file="/includes.jsp" %>
<form action="../calendar/changeEditors.form?${_csrf.parameterName}=${_csrf.token}" method="post">
	<table>
		<tr>
			<td>
				<tags:dialogBox title="Change editors">
					<table>
						<tr>
							<td>
								<webapp:namedList id="nl" domain="SYSTEM" name="All users"/>
								<select name="selected" multiple="multiple" size="10">
									<c:forEach var="pair" items="${nl.pairIterator }">
										<c:if test="${calendar.currentUser.username != pair.first }">
											<option value="${pair.first}">${pair.second }(${pair.first})</option>
										</c:if>
									</c:forEach>
								</select>
							</td>
						</tr>
						<tr>
							<td align="right">
								<input type="submit" value="Save"/>	
							</td>
						</tr>	
					</table>
				</tags:dialogBox>
			</td>
		</tr>
	</table>
</form>