2010-01-29 22:13:57 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2010-03-24 20:26:26 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
2010-03-16 16:51:18 +00:00
|
|
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:edLnk="http://vitro.mannlib.cornell.edu/vitro/tags/PropertyEditLink" version="2.0">
|
2010-01-29 22:13:57 +00:00
|
|
|
|
2010-03-16 16:51:18 +00:00
|
|
|
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary"/>
|
|
|
|
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.beans.User"/>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<div class="editingForm">
|
|
|
|
|
|
|
|
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
|
2010-03-16 16:51:18 +00:00
|
|
|
<tr align="center">
|
|
|
|
<td valign="bottom">
|
2010-01-29 22:13:57 +00:00
|
|
|
<form action="listUsers" method="get">
|
2010-03-16 16:51:18 +00:00
|
|
|
<input type="hidden" name="home" value="${portalBean.portalId}" />
|
2010-01-29 22:13:57 +00:00
|
|
|
<input type="submit" class="form-button" value="See All User Accounts"/>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
<td valign="bottom" align="center">
|
|
|
|
<form action="editForm" method="get">
|
|
|
|
<input name="home" type="hidden" value="${portalBean.portalId}" />
|
|
|
|
<input name="uri" type = "hidden" value="${user.URI}" />
|
|
|
|
<input type="submit" class="form-button" value="Edit User Account"/>
|
2010-03-16 16:51:18 +00:00
|
|
|
<input type="hidden" name="controller" value="User"/>
|
2010-01-29 22:13:57 +00:00
|
|
|
</form>
|
|
|
|
<form action="editForm" method="get">
|
|
|
|
<input name="home" type="hidden" value="${portalBean.portalId}" />
|
|
|
|
<input name="uri" type = "hidden" value="${user.URI}" />
|
|
|
|
<input name="Md5password" type="hidden" value=""/>
|
|
|
|
<input name="OldPassword" type="hidden" value=""/>
|
|
|
|
<input type="submit" class="form-button" value="Reset Password"/>
|
|
|
|
<input type="hidden" name="controller" value="User"/>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
<td valign="bottom">
|
|
|
|
<form action="editForm" method="get">
|
|
|
|
<input name="home" type="hidden" value="${portalBean.portalId}" />
|
2010-03-16 16:51:18 +00:00
|
|
|
<input type="hidden" name="controller" value="User"/>
|
2010-01-29 22:13:57 +00:00
|
|
|
<input type="submit" class="form-button" value="Add New User Account"/>
|
|
|
|
</form>
|
2010-03-16 16:51:18 +00:00
|
|
|
</td>
|
2010-01-29 22:13:57 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2010-03-16 16:51:18 +00:00
|
|
|
<c:if test="true"> <!-- test="${requestScope.user.roleURI == 1 }"> -->
|
2010-01-29 22:13:57 +00:00
|
|
|
|
2010-03-16 16:51:18 +00:00
|
|
|
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
<tr align="center">
|
|
|
|
<td>
|
|
|
|
Add new individual that user may edit as
|
|
|
|
<c:url var="addUrl" value="/edit/editRequestDispatch.jsp">
|
|
|
|
<c:param name="subjectUri">${user.URI}</c:param>
|
|
|
|
<c:param name="editform">admin/mayEditAs.jsp</c:param>
|
|
|
|
</c:url>
|
|
|
|
<a href="${addUrl}">add</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<c:if test="${requestScope.mayEditAsStmts != null }">
|
|
|
|
<tr><td>User may edit as the following Individuals:</td></tr>
|
|
|
|
<c:forEach items="${requestScope.mayEditAsStmts }" var="stmt">
|
|
|
|
<tr>
|
|
|
|
<td>${stmt.objectURI}</td>
|
|
|
|
<c:url var="deleteUrl" value="/edit/editRequestDispatch.jsp">
|
|
|
|
<c:param name="subjectUri">${user.URI}</c:param>
|
|
|
|
<c:param name="predicateUri">${requestScope.predicateUri}</c:param>
|
|
|
|
<c:param name="objectUri">${stmt.objectURI}</c:param>
|
|
|
|
<c:param name="editform">admin/mayEditAs.jsp</c:param>
|
|
|
|
</c:url>
|
|
|
|
<td><a href="${deleteUrl}">delete</a></td>
|
|
|
|
</tr>
|
|
|
|
</c:forEach>
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
<c:if test="${requestScope.mayEditAsStmts == null }">
|
|
|
|
<tr><td>There are no Individuals in the system that the user may edit as.</td></tr>
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
</div>
|
|
|
|
</div>
|
2010-01-29 22:13:57 +00:00
|
|
|
</jsp:root>
|