Adding ability for user accounts to be associated with individuals. NIHVIVO-121
This commit is contained in:
parent
5eb474a891
commit
1af92dc350
4 changed files with 91 additions and 20 deletions
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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">
|
||||
|
||||
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
||||
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary"/>
|
||||
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.beans.User"/>
|
||||
|
||||
<div class="editingForm">
|
||||
|
||||
|
@ -10,10 +10,10 @@
|
|||
|
||||
<div align="center">
|
||||
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
|
||||
<tr valign="bottom" align="center">
|
||||
<td>
|
||||
<tr align="center">
|
||||
<td valign="bottom">
|
||||
<form action="listUsers" method="get">
|
||||
<input type="hidden" name="home" value="${portalBean.portalId}" />
|
||||
<input type="hidden" name="home" value="${portalBean.portalId}" />
|
||||
<input type="submit" class="form-button" value="See All User Accounts"/>
|
||||
</form>
|
||||
</td>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<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"/>
|
||||
<input type="hidden" name="controller" value="User"/>
|
||||
<input type="hidden" name="controller" value="User"/>
|
||||
</form>
|
||||
<form action="editForm" method="get">
|
||||
<input name="home" type="hidden" value="${portalBean.portalId}" />
|
||||
|
@ -36,14 +36,50 @@
|
|||
<td valign="bottom">
|
||||
<form action="editForm" method="get">
|
||||
<input name="home" type="hidden" value="${portalBean.portalId}" />
|
||||
<input type="hidden" name="controller" value="User"/>
|
||||
<input type="hidden" name="controller" value="User"/>
|
||||
<input type="submit" class="form-button" value="Add New User Account"/>
|
||||
</form>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<c:if test="true"> <!-- test="${requestScope.user.roleURI == 1 }"> -->
|
||||
|
||||
<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>
|
||||
</jsp:root>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue