Normalize line endings VIVO-101

This commit is contained in:
Brian Caruso 2013-07-18 15:19:53 -04:00
parent b097a4d754
commit 54f79f2ea7
587 changed files with 91501 additions and 91501 deletions

View file

@ -1,4 +1,4 @@
templates directory is for jsp files that are used
to format data. They are views, templates and such.
templates directory is for jsp files that are used
to format data. They are views, templates and such.
bdc34.

View file

@ -1,35 +1,35 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ page import="org.apache.commons.logging.Log" %>
<%@ page import="org.apache.commons.logging.LogFactory" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
<%@ page errorPage="/error.jsp"%>
<% /***********************************************
alphaIndex.jsp will just display the just the index, no entites.
request attributres:
'alpha' - set to currently displaying alpha, 'none' or 'all'
'controllerParam' - parameter for controller
'count' - count of entites in the index
'letters' - List of STrings, letters for index.
'servlet' - name of servlet to put in links.
put something like this in for debuggin: < % = MiscWebUtils.getReqInfo(request) % >
bdc34 2006-02-06
**********************************************/
<%@ page import="org.apache.commons.logging.Log" %>
<%@ page import="org.apache.commons.logging.LogFactory" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
<%@ page errorPage="/error.jsp"%>
<% /***********************************************
alphaIndex.jsp will just display the just the index, no entites.
request attributres:
'alpha' - set to currently displaying alpha, 'none' or 'all'
'controllerParam' - parameter for controller
'count' - count of entites in the index
'letters' - List of STrings, letters for index.
'servlet' - name of servlet to put in links.
put something like this in for debuggin: < % = MiscWebUtils.getReqInfo(request) % >
bdc34 2006-02-06
**********************************************/
%>
<c:if test="${ requestScope.showAlpha == 1 }">
<div class='alphaIndex'>
<c:if test="${ requestScope.showAlpha == 1 }">
<div class='alphaIndex'>
<c:forEach items='${requestScope.letters}' var='letter'>
<c:if test="${letter == requestScope.alpha}"> ${requestScope.alpha }&nbsp;</c:if>
<c:if test="${letter != requestScope.alpha}">
<c:url var="url" value=".${requestScope.servlet}">
<c:param name="alpha">${letter}</c:param>
</c:url>
</c:url>
<a href='<c:url value="${url}&amp;${requestScope.controllerParam}"/>'>${letter} </a>
</c:if>
</c:if>
</c:forEach>
<% if( request.getAttribute("alpha") != null && ! "all".equalsIgnoreCase((String)request.getAttribute("alpha"))) { %>
@ -39,6 +39,6 @@
</c:if>
<% }else{ %>
(${requestScope.count})
<% } %>
</div>
<% } %>
</div>
</c:if>

View file

@ -1,3 +1,3 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
${formHtml}
${formHtml}

View file

@ -1,114 +1,114 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ page isThreadSafe = "false" %>
<%@ page import="java.util.*,java.lang.String.*" %>
<% if (request.getAttribute("title") != null) { %>
<h2><%=request.getAttribute("title")%></h2>
<% } %>
<%
String headerStr = (String)request.getAttribute("header");
if ( headerStr == null || (!headerStr.equalsIgnoreCase("noheader")) ) { %>
<% } %>
<jsp:useBean id="results" class="java.util.ArrayList" scope="request" />
<%
int rows = 0;
String minEditRoleStr = (String)request.getAttribute("min_edit_role");
String firstValue = "null";
Integer columnCount = (Integer)request.getAttribute("columncount");
rows = columnCount.intValue();
String clickSortStr = (String)request.getAttribute("clicksort");
if ( rows > 0 && results.size() > rows ) { // avoid divide by zero error in next statement
String suppressStr = null;
int columns = results.size() / rows;
if ( ( suppressStr = (String)request.getAttribute("suppressquery")) == null ) { // only inserted into request if true %>
<p><i><b><%= columns - 1 %></b> results were retrieved in <b><%= rows %></b> rows for query "<%=request.getAttribute("querystring")%>".</i></p>
<% }
if ( clickSortStr != null && clickSortStr.equals("true")) {
if ( columns > 2 ) { %>
<p><i>Click on the row header to sort columns by that row.</i></p>
<% }
} %>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<% String[] resultsArray = new String[results.size()]; // see Core Java Vol. 1 p.216
results.toArray( resultsArray );
firstValue = resultsArray[ rows ];
request.setAttribute("firstvalue",firstValue);
//secondValue= resultsArray[ rows + 1 ];
String classString = "";
boolean[] postQHeaderCols = new boolean[ columns ];
for ( int eachcol=0; eachcol < columns; eachcol++ ) {
postQHeaderCols[ eachcol ] = false;
}
for ( int thisrow = 0; thisrow < rows; thisrow++ ) {
//int currentPostQCol = 0;
boolean dropRow = false;
for ( int thiscol = 0; thiscol < columns; thiscol++ ) {
String thisResult= resultsArray[ (rows * thiscol) + thisrow ];
if ( "+".equals(thisResult) ) { /* occurs all in first row, so postQHeaderCols should be correctly initialized */
classString = "postheaderright";
postQHeaderCols[ thiscol ] = true;
//++currentPostQCol;
thisResult="&nbsp;";
} else if ( thisResult != null && thisResult.indexOf("@@")== 0) {
classString="postheadercenter";
thisResult ="query values"; //leave as follows for diagnostics: thisResult.substring(2);
thisResult = thisResult.substring(2);
} else {
if ( postQHeaderCols[ thiscol ] == true )
classString = "postheaderright";
else if ( thiscol == 1 && thisrow < 1 ) // jc55 was thisrow<2
classString = "rowbold";
else
classString = "row";
if ( thisResult == null || "".equals(thisResult) )
thisResult="&nbsp;";
}
if ( thiscol == 0 ) { // 1st column of new row
if ( thisrow > 0 ) { // first must close prior row %>
</tr>
<% if ("XX".equals(thisResult) ) {
dropRow = true;
} %>
<tr valign="top" class="rowvert"> <!-- okay to start even a dropRow because it will get no <td> elements -->
<% } else { %>
<tr valign="top" class="header"> <!-- okay to start even a dropRow because it will get no <td> elements -->
<% }
if ( !dropRow ) { %>
<td width="15%" class="verticalfieldlabel">
<%=thisResult%>
<% }
} else { // 2nd or higher column
if ( !dropRow ) { %>
<td class="<%=classString%>" >
<% if ("XX".equals(thisResult) ) { %>
<%="&nbsp;"%>
<% } else { %>
<%=thisResult%>
<% }
}
}
if ( !dropRow ) { %>
</td>
<% }
}
} %>
</tr>
</table>
<%
} else {
System.out.println("No results reported when " + rows + " rows and a result array size of " + results.size()); %>
No results retrieved for query "<%=request.getAttribute("querystring")%>".
<% Iterator errorIter = results.iterator();
while ( errorIter.hasNext()) {
String errorResult = (String)errorIter.next(); %>
<p>Error returned: <%= errorResult%></p>
<% }
} %>
<%@ page isThreadSafe = "false" %>
<%@ page import="java.util.*,java.lang.String.*" %>
<% if (request.getAttribute("title") != null) { %>
<h2><%=request.getAttribute("title")%></h2>
<% } %>
<%
String headerStr = (String)request.getAttribute("header");
if ( headerStr == null || (!headerStr.equalsIgnoreCase("noheader")) ) { %>
<% } %>
<jsp:useBean id="results" class="java.util.ArrayList" scope="request" />
<%
int rows = 0;
String minEditRoleStr = (String)request.getAttribute("min_edit_role");
String firstValue = "null";
Integer columnCount = (Integer)request.getAttribute("columncount");
rows = columnCount.intValue();
String clickSortStr = (String)request.getAttribute("clicksort");
if ( rows > 0 && results.size() > rows ) { // avoid divide by zero error in next statement
String suppressStr = null;
int columns = results.size() / rows;
if ( ( suppressStr = (String)request.getAttribute("suppressquery")) == null ) { // only inserted into request if true %>
<p><i><b><%= columns - 1 %></b> results were retrieved in <b><%= rows %></b> rows for query "<%=request.getAttribute("querystring")%>".</i></p>
<% }
if ( clickSortStr != null && clickSortStr.equals("true")) {
if ( columns > 2 ) { %>
<p><i>Click on the row header to sort columns by that row.</i></p>
<% }
} %>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<% String[] resultsArray = new String[results.size()]; // see Core Java Vol. 1 p.216
results.toArray( resultsArray );
firstValue = resultsArray[ rows ];
request.setAttribute("firstvalue",firstValue);
//secondValue= resultsArray[ rows + 1 ];
String classString = "";
boolean[] postQHeaderCols = new boolean[ columns ];
for ( int eachcol=0; eachcol < columns; eachcol++ ) {
postQHeaderCols[ eachcol ] = false;
}
for ( int thisrow = 0; thisrow < rows; thisrow++ ) {
//int currentPostQCol = 0;
boolean dropRow = false;
for ( int thiscol = 0; thiscol < columns; thiscol++ ) {
String thisResult= resultsArray[ (rows * thiscol) + thisrow ];
if ( "+".equals(thisResult) ) { /* occurs all in first row, so postQHeaderCols should be correctly initialized */
classString = "postheaderright";
postQHeaderCols[ thiscol ] = true;
//++currentPostQCol;
thisResult="&nbsp;";
} else if ( thisResult != null && thisResult.indexOf("@@")== 0) {
classString="postheadercenter";
thisResult ="query values"; //leave as follows for diagnostics: thisResult.substring(2);
thisResult = thisResult.substring(2);
} else {
if ( postQHeaderCols[ thiscol ] == true )
classString = "postheaderright";
else if ( thiscol == 1 && thisrow < 1 ) // jc55 was thisrow<2
classString = "rowbold";
else
classString = "row";
if ( thisResult == null || "".equals(thisResult) )
thisResult="&nbsp;";
}
if ( thiscol == 0 ) { // 1st column of new row
if ( thisrow > 0 ) { // first must close prior row %>
</tr>
<% if ("XX".equals(thisResult) ) {
dropRow = true;
} %>
<tr valign="top" class="rowvert"> <!-- okay to start even a dropRow because it will get no <td> elements -->
<% } else { %>
<tr valign="top" class="header"> <!-- okay to start even a dropRow because it will get no <td> elements -->
<% }
if ( !dropRow ) { %>
<td width="15%" class="verticalfieldlabel">
<%=thisResult%>
<% }
} else { // 2nd or higher column
if ( !dropRow ) { %>
<td class="<%=classString%>" >
<% if ("XX".equals(thisResult) ) { %>
<%="&nbsp;"%>
<% } else { %>
<%=thisResult%>
<% }
}
}
if ( !dropRow ) { %>
</td>
<% }
}
} %>
</tr>
</table>
<%
} else {
System.out.println("No results reported when " + rows + " rows and a result array size of " + results.size()); %>
No results retrieved for query "<%=request.getAttribute("querystring")%>".
<% Iterator errorIter = results.iterator();
while ( errorIter.hasNext()) {
String errorResult = (String)errorIter.next(); %>
<p>Error returned: <%= errorResult%></p>
<% }
} %>

View file

@ -1,7 +1,7 @@
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<script language="JavaScript" type="text/javascript">
function confirmDelete() {
var msg="Are you SURE you want to delete this record? If in doubt, CANCEL."
return confirm(msg);
}
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<script language="JavaScript" type="text/javascript">
function confirmDelete() {
var msg="Are you SURE you want to delete this record? If in doubt, CANCEL."
return confirm(msg);
}
</script>

View file

@ -1,74 +1,74 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="editingForm">
<c:set var="colspan">
<c:out value="${colspan}" default="3"/>
</c:set>
<c:set var="onSubmit">
<c:out value="${formOnSubmit}" default="return true;"/>
</c:set>
<c:set var="action">
<c:out value="${editAction}" default="doEdit"/>
</c:set>
<form id="editForm" name="editForm" action="${action}" method="post" onsubmit="${onSubmit}">
<input type="hidden" name="_epoKey" value="${epoKey}" />
<table cellpadding="4" cellspacing="2" style="background-color:#fff">
<tr><th colspan="${colspan}">
<div>
<h2>${title}</h2>
<c:choose>
<c:when test='${_action == "insert"}'>
<h3 class="blue">Creating New Record
</c:when>
<c:otherwise>
<h3 class="blue">Editing Existing Record
</c:otherwise>
</c:choose>
<span class="note">(<sup>*</sup> Required Fields)</span></h3>
</div><!--entryFormHead-->
</th></tr>
<c:if test="${!empty globalErrorMsg}">
<tr><td><span class="notice">${globalErrorMsg}</span></td></tr>
</c:if>
<jsp:include page="${formJsp}"/>
<tr class="editformcell">
<td colspan="${colspan}">
<c:choose>
<c:when test='${_action == "insert"}'>
<input id="primaryAction" type="submit" class="submit" name="_insert" value="Create New Record"/>
</c:when>
<c:otherwise>
<input id="primaryAction" type="submit" class="submit" name="_update" value="Submit Changes"/>
<c:if test="${ ! (_cancelButtonDisabled == 'disabled') }">
<input type="submit" class="delete" name="_delete" onclick="return confirmDelete();" value="Delete"/>
</c:if>
</c:otherwise>
</c:choose>
<input type="reset" class="delete" value="Reset"/>
<c:choose>
<c:when test="${!empty formOnCancel}">
<input type="submit" class="delete" name="_cancel" onclick="${formOnCancel}" value="Cancel"/>
</c:when>
<c:otherwise>
<input type="submit" class="delete" name="_cancel" value="Cancel"/>
</c:otherwise>
</c:choose>
</td>
</tr>
</table>
</form>
</div><!--editingform-->
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="editingForm">
<c:set var="colspan">
<c:out value="${colspan}" default="3"/>
</c:set>
<c:set var="onSubmit">
<c:out value="${formOnSubmit}" default="return true;"/>
</c:set>
<c:set var="action">
<c:out value="${editAction}" default="doEdit"/>
</c:set>
<form id="editForm" name="editForm" action="${action}" method="post" onsubmit="${onSubmit}">
<input type="hidden" name="_epoKey" value="${epoKey}" />
<table cellpadding="4" cellspacing="2" style="background-color:#fff">
<tr><th colspan="${colspan}">
<div>
<h2>${title}</h2>
<c:choose>
<c:when test='${_action == "insert"}'>
<h3 class="blue">Creating New Record
</c:when>
<c:otherwise>
<h3 class="blue">Editing Existing Record
</c:otherwise>
</c:choose>
<span class="note">(<sup>*</sup> Required Fields)</span></h3>
</div><!--entryFormHead-->
</th></tr>
<c:if test="${!empty globalErrorMsg}">
<tr><td><span class="notice">${globalErrorMsg}</span></td></tr>
</c:if>
<jsp:include page="${formJsp}"/>
<tr class="editformcell">
<td colspan="${colspan}">
<c:choose>
<c:when test='${_action == "insert"}'>
<input id="primaryAction" type="submit" class="submit" name="_insert" value="Create New Record"/>
</c:when>
<c:otherwise>
<input id="primaryAction" type="submit" class="submit" name="_update" value="Submit Changes"/>
<c:if test="${ ! (_cancelButtonDisabled == 'disabled') }">
<input type="submit" class="delete" name="_delete" onclick="return confirmDelete();" value="Delete"/>
</c:if>
</c:otherwise>
</c:choose>
<input type="reset" class="delete" value="Reset"/>
<c:choose>
<c:when test="${!empty formOnCancel}">
<input type="submit" class="delete" name="_cancel" onclick="${formOnCancel}" value="Cancel"/>
</c:when>
<c:otherwise>
<input type="submit" class="delete" name="_cancel" value="Cancel"/>
</c:otherwise>
</c:choose>
</td>
</tr>
</table>
</form>
</div><!--editingform-->

View file

@ -1,22 +1,22 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Superclass<sup>*</sup></b><br/>
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top">
<b>Subclass<sup>*</sup></b><br/>
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Superclass<sup>*</sup></b><br/>
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top">
<b>Subclass<sup>*</sup></b><br/>
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>

View file

@ -1,67 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:form="http://vitro.mannlib.cornell.edu/edit/tags"
version="2.0">
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.beans.VClass"/>
<?xml version="1.0" encoding="UTF-8"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:form="http://vitro.mannlib.cornell.edu/edit/tags"
version="2.0">
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.beans.VClass"/>
<jsp:directive.page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary"/>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<!--
/**
*
* @version 1.00
* @author Jon Corson-Rikert
*
* UPDATES:
* JCR 2005-11-06 : added code to show properties of parent class(es) as adapted from props_retry.jsp
* BJL 2007-07-XX : general overhaul to remove database tags and scriptlets
*/
-->
<div align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td valign="bottom">
<form action="listVClassWebapps" method="get">
<input type="submit" class="form-button" value="Show All Classes"/>
</form>
<form action="showClassHierarchy" method="get">
<input type="submit" class="form-button" value="Show Class Hierarchy"/>
</form>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<!--
/**
*
* @version 1.00
* @author Jon Corson-Rikert
*
* UPDATES:
* JCR 2005-11-06 : added code to show properties of parent class(es) as adapted from props_retry.jsp
* BJL 2007-07-XX : general overhaul to remove database tags and scriptlets
*/
-->
<div align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td valign="bottom">
<form action="listVClassWebapps" method="get">
<input type="submit" class="form-button" value="Show All Classes"/>
</form>
<form action="showClassHierarchy" method="get">
<input type="submit" class="form-button" value="Show Class Hierarchy"/>
</form>
<form action="showClassHierarchy" method="get">
<input type="hidden" name="vclassUri" value="${VClass.URI}"/>
<input type="submit" class="form-button" value="Show Hierarchy below This Class"/>
</form>
<form action="listIndividuals" method="get">
<input type="hidden" name="VClassURI" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Show All Individuals in This Class"/>
<form action="listIndividuals" method="get">
<input type="hidden" name="VClassURI" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Show All Individuals in This Class"/>
</form>
<form action="listIndividuals" method="get">
<input type="hidden" name="VClassURI" value="${VClass.URI}" />
<input type="hidden" name="assertedOnly" value="true"/>
<input type="submit" class="form-button" value="Show Individuals Asserted To Be in This Class"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="vclass_retry" method="get">
<input name="uri" type = "hidden" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Edit Class"/>
</form>
</td>
<td valign="bottom">
<form action="vclass_retry" method="get">
<input type="submit" class="form-button" value="Add New Class"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add New Individual in This Class"/>
<input type="hidden" name="controller" value="Entity"/>
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="vclass_retry" method="get">
<input name="uri" type = "hidden" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Edit Class"/>
</form>
</td>
<td valign="bottom">
<form action="vclass_retry" method="get">
<input type="submit" class="form-button" value="Add New Class"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add New Individual in This Class"/>
<input type="hidden" name="controller" value="Entity"/>
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Change URI"/>
@ -71,31 +71,31 @@
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Move Instances to Another Class"/>
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
<c:choose>
<c:when test="${VClass.namespace eq 'http://vitro.mannlib.cornell.edu/ns/bnode#'}">
<input type="hidden" name="VClassName" value="this anonymous class"/>
</c:when>
<c:otherwise>
<input type="hidden" name="VClassName" value="${VClass.localNameWithPrefix}"/>
</c:otherwise>
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
<c:choose>
<c:when test="${VClass.namespace eq 'http://vitro.mannlib.cornell.edu/ns/bnode#'}">
<input type="hidden" name="VClassName" value="this anonymous class"/>
</c:when>
<c:otherwise>
<input type="hidden" name="VClassName" value="${VClass.localNameWithPrefix}"/>
</c:otherwise>
</c:choose>
<input type="hidden" name="mode" value="moveInstances"/>
<input type="hidden" name="controller" value="Refactor"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _____________________________________________ superclasses __________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty superclasses}">
<form action="classes2ClassesOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="superclass" items="${superclasses}">
<c:url var="superclassURL" value="vclassEdit">
<c:param name="uri" value="${superclass.URI}"/>
</c:url>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _____________________________________________ superclasses __________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty superclasses}">
<form action="classes2ClassesOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="superclass" items="${superclasses}">
<c:url var="superclassURL" value="vclassEdit">
<c:param name="uri" value="${superclass.URI}"/>
</c:url>
<li><input type="checkbox" name="SuperclassURI" value="${superclass.URI}" class="form-item"/>
<c:choose>
<c:when test="${!superclass.anonymous}">
@ -105,35 +105,35 @@
${superclass.localNameWithPrefix}
</c:otherwise>
</c:choose>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SubclassURI" value="${VClass.URI}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="submit" class="form-button" value="Remove Checked Superclass Links"/>
</form>
</c:if>
</td>
<td>
<form action="editForm" method="get">
<input type="hidden" name="SubclassURI" value="${VClass.URI}"/>
<input type="hidden" name="controller" value="Classes2Classes"/>
<input type="submit" class="form-button" value="New Link to Superclass"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _______________________________________________ subclasses _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty subclasses}">
<form action="classes2ClassesOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="subclass" items="${subclasses}">
<c:url var="subclassURL" value="vclassEdit">
<c:param name="uri" value="${subclass.URI}"/>
</c:url>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SubclassURI" value="${VClass.URI}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="submit" class="form-button" value="Remove Checked Superclass Links"/>
</form>
</c:if>
</td>
<td>
<form action="editForm" method="get">
<input type="hidden" name="SubclassURI" value="${VClass.URI}"/>
<input type="hidden" name="controller" value="Classes2Classes"/>
<input type="submit" class="form-button" value="New Link to Superclass"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _______________________________________________ subclasses _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty subclasses}">
<form action="classes2ClassesOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="subclass" items="${subclasses}">
<c:url var="subclassURL" value="vclassEdit">
<c:param name="uri" value="${subclass.URI}"/>
</c:url>
<li><input type="checkbox" name="SubclassURI" value="${subclass.URI}" class="form-item"/>
<c:choose>
<c:when test="${!subclass.anonymous}">
@ -144,28 +144,28 @@
</c:otherwise>
</c:choose>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SuperclassURI" value="${VClass.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Subclass Links"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Classes2Classes"/>
<input type="hidden" name="SuperclassURI" value="${VClass.URI}"/>
<input type="submit" class="form-button" value="New Link to Subclass"/>
</form>
<form action="vclass_retry" method="get">
<input type="hidden" name="superclassUri" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Add New Subclass of This Class"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
</c:forEach>
</ul>
<input type="hidden" name="SuperclassURI" value="${VClass.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Subclass Links"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Classes2Classes"/>
<input type="hidden" name="SuperclassURI" value="${VClass.URI}"/>
<input type="submit" class="form-button" value="New Link to Subclass"/>
</form>
<form action="vclass_retry" method="get">
<input type="hidden" name="superclassUri" value="${VClass.URI}" />
<input type="submit" class="form-button" value="Add New Subclass of This Class"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _______________________________________________ equivalent classes _____________________________________________ -->
<tr valign="bottom" align="center">
@ -249,30 +249,30 @@
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- ___________________________________________ domain properties ___________________________________ -->
<tr valign="top" align="center">
<td>
<form action="listPropertyWebapps" method="get">
<input type="submit" class="form-button" value="Show All Object Properties Applicable to This Class"/>
<input type="hidden" name="vclassUri" value="${VClass.URI}"/>
<input type="hidden" name="propsForClass" value="true"/>
</form><br/>
<form action="listDatatypeProperties" method="get">
<input type="submit" class="form-button" value="Show All Data Properties Applicable to This Class"/>
<input type="hidden" name="vclassUri" value="${VClass.URI}"/>
<input type="hidden" name="propsForClass" value="true"/>
<!-- ___________________________________________ domain properties ___________________________________ -->
<tr valign="top" align="center">
<td>
<form action="listPropertyWebapps" method="get">
<input type="submit" class="form-button" value="Show All Object Properties Applicable to This Class"/>
<input type="hidden" name="vclassUri" value="${VClass.URI}"/>
<input type="hidden" name="propsForClass" value="true"/>
</form><br/>
</td>
<td></td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="domainClassUri" value="${VClass.URI}"/>
<input type="hidden" name="controller" value="Property"/>
<input type="submit" class="form-button" value="Define New Domain Property at This Class"/>
</form>
</td>
</tr>
<form action="listDatatypeProperties" method="get">
<input type="submit" class="form-button" value="Show All Data Properties Applicable to This Class"/>
<input type="hidden" name="vclassUri" value="${VClass.URI}"/>
<input type="hidden" name="propsForClass" value="true"/>
</form><br/>
</td>
<td></td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="domainClassUri" value="${VClass.URI}"/>
<input type="hidden" name="controller" value="Property"/>
<input type="submit" class="form-button" value="Define New Domain Property at This Class"/>
</form>
</td>
</tr>
<tr>
<td colspan="2">
<form action="editForm" method="get">
@ -286,15 +286,15 @@
<option value="cardinality">exact cardinality</option>
</select>
<input type="submit" class="form-button" value="Apply Restriction"/>
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
<p>Restrict:
<input type="radio" name="propertyType" value="object" checked="checked"/> object property
<input type="radio" name="propertyType" value="data"/> data property
<input type="hidden" name="VClassURI" value="${VClass.URI}"/>
<p>Restrict:
<input type="radio" name="propertyType" value="object" checked="checked"/> object property
<input type="radio" name="propertyType" value="data"/> data property
</p>
</form>
</td>
</tr>
</table>
</div>
</div>
</jsp:root>
</table>
</div>
</div>
</jsp:root>

View file

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $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"
xmlns:c ="http://java.sun.com/jsp/jstl/core"
xmlns:fn ="http://java.sun.com/jsp/jstl/functions">
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<!--
/**
*
* @version 0.8
* @author bjl23
*
*/
-->
<div align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="showDataPropertyHierarchy" method="get">
<input type="submit" class="form-button" value="Data Property Hierarchy"/>
</form>
<form action="listDatatypeProperties" method="get">
<input type="submit" class="form-button" value="All Data Properties"/>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:c ="http://java.sun.com/jsp/jstl/core"
xmlns:fn ="http://java.sun.com/jsp/jstl/functions">
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<!--
/**
*
* @version 0.8
* @author bjl23
*
*/
-->
<div align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="showDataPropertyHierarchy" method="get">
<input type="submit" class="form-button" value="Data Property Hierarchy"/>
</form>
<form action="listDatatypeProperties" method="get">
<input type="submit" class="form-button" value="All Data Properties"/>
</form>
<form action="listVClassWebapps" method="get">
<input type="hidden" name="showPropertyRestrictions" value="true"/>
@ -40,18 +40,18 @@
to <input type="text" name="endAt" value="50" size="3"/><br/>
<input type="submit" class="form-button" value="Show Examples of Statements Using This Property"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Dataprop"/>
<input type="hidden" name="uri" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Edit this Data Property"/>
</form>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Dataprop"/>
<input type="submit" class="form-button" value="Add New Data Property"/>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Dataprop"/>
<input type="hidden" name="uri" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Edit this Data Property"/>
</form>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Dataprop"/>
<input type="submit" class="form-button" value="Add New Data Property"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Change URI"/>
@ -65,113 +65,113 @@
<input type="hidden" name="mode" value="movePropertyStatements"/>
<input type="hidden" name="propertyType" value="DataProperty"/>
<input type="hidden" name="controller" value="Refactor"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _____________________________________________ superproperties __________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty superproperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="superproperty" items="${superproperties}">
<c:url var="superpropertyURL" value="datapropEdit">
<c:param name="uri" value="${superproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SuperpropertyURI" value="${superproperty.URI}" class="form-item"/>
<a href="${superpropertyURL}">${superproperty.localNameWithPrefix}</a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SubpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="submit" class="form-button" value="Remove Checked Superproperty Links"/>
</form>
</c:if>
</td>
<td>
<form action="editForm" method="get">
<input type="hidden" name="SubpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="superproperty"/>
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Superproperty"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _______________________________________________ subproperties _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty subproperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="subproperty" items="${subproperties}">
<c:url var="subpropertyURL" value="datapropEdit">
<c:param name="uri" value="${subproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SubpropertyURI" value="${subproperty.URI}" class="form-item"/>
<a href="${subpropertyURL}"> ${subproperty.localNameWithPrefix} </a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Subproperty Links"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="hidden" name="operation" value="remove"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="subproperty"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Subproperty"/>
</form>
</td>
</tr>
<!-- _______________________________________________ equivalent properties _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty equivalentProperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="eqproperty" items="${equivalentProperties}">
<c:url var="eqpropertyURL" value="datapropEdit">
<c:param name="uri" value="${eqproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SubpropertyURI" value="${eqproperty.URI}" class="form-item"/>
<a href="${eqpropertyURL}"> ${eqproperty.localNameWithPrefix} </a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Equivalent Property Links"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="opMode" value="equivalentProperty"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="equivalentProperty"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Equivalent Property"/>
</form>
</td>
</tr>
</table>
</div>
</div>
</jsp:root>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _____________________________________________ superproperties __________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty superproperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="superproperty" items="${superproperties}">
<c:url var="superpropertyURL" value="datapropEdit">
<c:param name="uri" value="${superproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SuperpropertyURI" value="${superproperty.URI}" class="form-item"/>
<a href="${superpropertyURL}">${superproperty.localNameWithPrefix}</a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SubpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="submit" class="form-button" value="Remove Checked Superproperty Links"/>
</form>
</c:if>
</td>
<td>
<form action="editForm" method="get">
<input type="hidden" name="SubpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="superproperty"/>
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Superproperty"/>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- _______________________________________________ subproperties _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty subproperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="subproperty" items="${subproperties}">
<c:url var="subpropertyURL" value="datapropEdit">
<c:param name="uri" value="${subproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SubpropertyURI" value="${subproperty.URI}" class="form-item"/>
<a href="${subpropertyURL}"> ${subproperty.localNameWithPrefix} </a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Subproperty Links"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="hidden" name="operation" value="remove"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="subproperty"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Subproperty"/>
</form>
</td>
</tr>
<!-- _______________________________________________ equivalent properties _____________________________________________ -->
<tr valign="bottom" align="center">
<td colspan="2" valign="bottom" align="left">
<c:if test="${!empty equivalentProperties}">
<form action="props2PropsOp" method="post">
<ul style="list-style-type:none;">
<c:forEach var="eqproperty" items="${equivalentProperties}">
<c:url var="eqpropertyURL" value="datapropEdit">
<c:param name="uri" value="${eqproperty.URI}"/>
</c:url>
<li><input type="checkbox" name="SubpropertyURI" value="${eqproperty.URI}" class="form-item"/>
<a href="${eqpropertyURL}"> ${eqproperty.localNameWithPrefix} </a>
</li>
</c:forEach>
</ul>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="submit" class="form-button" value="Remove Checked Equivalent Property Links"/>
<input type="hidden" name="_epoKey" value="${epoKey}"/>
<input type="hidden" name="operation" value="remove"/>
<input type="hidden" name="opMode" value="equivalentProperty"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="hidden" name="controller" value="Properties2Properties"/>
<input type="hidden" name="SuperpropertyURI" value="${datatypeProperty.URI}"/>
<input type="hidden" name="opMode" value="equivalentProperty"/>
<input type="hidden" name="propertyType" value="data"/>
<input type="submit" class="form-button" value="New Link to Equivalent Property"/>
</form>
</td>
</tr>
</table>
</div>
</div>
</jsp:root>

View file

@ -1,17 +1,17 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top" colspan="2">
<b>Name</b>
<input name="Name" value="<form:value name="Name"/>"/>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="2">
<b>URI</b>
<input size="90%" name="Uri" value="<form:value name="Uri"/>"/>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top" colspan="2">
<b>Name</b>
<input name="Name" value="<form:value name="Name"/>"/>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="2">
<b>URI</b>
<input size="90%" name="Uri" value="<form:value name="Uri"/>"/>
</td>
</tr>

View file

@ -1,33 +1,33 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<hr/>
<p/>
<div align=center>
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="fetch" method="post">
<input type="submit" class="form-button" value="See All Datatypes"/>
<input type="hidden" name="queryspec" value="private_datatypes"/>
<input type="hidden" name="header" value="titleonly"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="datatype_retry" method="get">
<input type="hidden" name="id" value="<%=request.getAttribute("firstvalue")%>"/>
<input type="submit" class="form-button" value="Edit This Datatype"/>
</form>
</td>
<td valign="bottom">
<form action="datatype_retry" method="get">
<input type="submit" class="form-button" value="Add New Datatype"/>
</form>
</td>
</tr>
</table>
</div>
</div>
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<hr/>
<p/>
<div align=center>
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="fetch" method="post">
<input type="submit" class="form-button" value="See All Datatypes"/>
<input type="hidden" name="queryspec" value="private_datatypes"/>
<input type="hidden" name="header" value="titleonly"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="datatype_retry" method="get">
<input type="hidden" name="id" value="<%=request.getAttribute("firstvalue")%>"/>
<input type="submit" class="form-button" value="Edit This Datatype"/>
</form>
</td>
<td valign="bottom">
<form action="datatype_retry" method="get">
<input type="submit" class="form-button" value="Add New Datatype"/>
</form>
</td>
</tr>
</table>
</div>
</div>

View file

@ -1,26 +1,26 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="disjointWith" name="opMode"/>
<input type="hidden" value="add" name="operation"/>
<tr class="editformcell">
<td valign="top">
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td><p><strong>disjoint with</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="disjointWith" name="opMode"/>
<input type="hidden" value="add" name="operation"/>
<tr class="editformcell">
<td valign="top">
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td><p><strong>disjoint with</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>

View file

@ -1,30 +1,30 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<tr class="editformcell" id="entityNameTr">
<td valign="bottom" id="entityNameTd" colspan="2">
<b>Individual Name *</b><br/>
<input style="width:80%;" type="text" name="Name" value="<form:value name="Name"/>" />
<c:set var="NameError"><form:error name="Name"/></c:set>
<c:if test="${!empty NameError}">
<span class="notice"><c:out value="${NameError}"/></span>
</c:if>
</td>
</tr>
<!-- begin datatype properties section -->
<tr class="editformcell" style="border-collapse:collapse;">
<td colspan="2">
<ul style="margin-left:0;padding-left:0;list-style-type:none">
<form:dynamicFields type="dataprops" usePage="entity_retry_dataprops.jsp"/>
</ul>
</td>
</tr>
<!-- end datatype properties section -->
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<tr class="editformcell" id="entityNameTr">
<td valign="bottom" id="entityNameTd" colspan="2">
<b>Individual Name *</b><br/>
<input style="width:80%;" type="text" name="Name" value="<form:value name="Name"/>" />
<c:set var="NameError"><form:error name="Name"/></c:set>
<c:if test="${!empty NameError}">
<span class="notice"><c:out value="${NameError}"/></span>
</c:if>
</td>
</tr>
<!-- begin datatype properties section -->
<tr class="editformcell" style="border-collapse:collapse;">
<td colspan="2">
<ul style="margin-left:0;padding-left:0;list-style-type:none">
<form:dynamicFields type="dataprops" usePage="entity_retry_dataprops.jsp"/>
</ul>
</td>
</tr>
<!-- end datatype properties section -->

View file

@ -1,42 +1,42 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<!-- this is a page set up to be parsed by the dynamicFields tag -->
<!-- the datapropsNN, $$, $foo, and @x symbols are special notations understood by this tag and are not part of JSP -->
<!-- @pre -->
<li style="padding-top:0.8em;padding-bottom:0.5em;" id="datapropsNNsuper">
<strong>$fieldName</strong><a id="datapropsNNaddLink" style="margin-left:0.5em;font-style:italic;font-weight:bold;" href="#" onClick="addLine(this, 'dataprops');return false;">add</a>
<span id="datapropsNNgenTaName" style="display:none;">$genTaName</span>
<ul id="datapropsNNul">
<li style="display:none;">This is a dummy li to make sure the ul has at least one child.</li>
<!-- @template -->
<li id="datapropsNN" style="margin-left:0em;margin-top:0.4em;margin-bottom:0.4em;">
<div id="datapropsNNcontent">
<span id="datapropsNNcontentValue">$$</span>
<a id="datapropsNNeditLink" href="#" style="margin-left:0.8em;font-style:italic" onClick="convertLiToTextarea(this, 'dataprops');return false;">edit</a>
<a id="datapropsNNdeleteLink" href="#" style="margin-left:0.8em;font-style:italic" onClick="deleteLine(this, 'dataprops');return false;">remove</a>
<a id="datapropsNNundeleteLink" href="#" style="display:none;margin-left:0.8em;font-style:italic" onClick="undeleteLine(this, 'dataprops');return false;">restore</a>
</div>
<div id="datapropsNNta" style="display:none;">
<div style="padding:0;margin:0;">
<textarea style="margin:0;padding:0;width:95%;height:16ex;" id="datapropsNNtata" name="$taName">$$</textarea>
</div>
<div style="padding:0;margin:0;">
<input id="datapropsNNokLink" style="margin:0;padding:0;" type="button" onClick="backToLi(this);return false;" value='OK'/>
<input id="datapropsNNcancelLink" style="margin:0;padding:0;" type="button" onClick="cancelBackToLi(this);return false;" value='cancel'/>
<input id="datapropsNNosLink" style="margin-left:5em;padding:0;" type="button" onClick="backToLi(this);submitPage();return false;" value='OK & save all changes'/>
</div>
</div>
</li>
<!-- @post -->
</ul>
</li>
<!-- this is a page set up to be parsed by the dynamicFields tag -->
<!-- the datapropsNN, $$, $foo, and @x symbols are special notations understood by this tag and are not part of JSP -->
<!-- @pre -->
<li style="padding-top:0.8em;padding-bottom:0.5em;" id="datapropsNNsuper">
<strong>$fieldName</strong><a id="datapropsNNaddLink" style="margin-left:0.5em;font-style:italic;font-weight:bold;" href="#" onClick="addLine(this, 'dataprops');return false;">add</a>
<span id="datapropsNNgenTaName" style="display:none;">$genTaName</span>
<ul id="datapropsNNul">
<li style="display:none;">This is a dummy li to make sure the ul has at least one child.</li>
<!-- @template -->
<li id="datapropsNN" style="margin-left:0em;margin-top:0.4em;margin-bottom:0.4em;">
<div id="datapropsNNcontent">
<span id="datapropsNNcontentValue">$$</span>
<a id="datapropsNNeditLink" href="#" style="margin-left:0.8em;font-style:italic" onClick="convertLiToTextarea(this, 'dataprops');return false;">edit</a>
<a id="datapropsNNdeleteLink" href="#" style="margin-left:0.8em;font-style:italic" onClick="deleteLine(this, 'dataprops');return false;">remove</a>
<a id="datapropsNNundeleteLink" href="#" style="display:none;margin-left:0.8em;font-style:italic" onClick="undeleteLine(this, 'dataprops');return false;">restore</a>
</div>
<div id="datapropsNNta" style="display:none;">
<div style="padding:0;margin:0;">
<textarea style="margin:0;padding:0;width:95%;height:16ex;" id="datapropsNNtata" name="$taName">$$</textarea>
</div>
<div style="padding:0;margin:0;">
<input id="datapropsNNokLink" style="margin:0;padding:0;" type="button" onClick="backToLi(this);return false;" value='OK'/>
<input id="datapropsNNcancelLink" style="margin:0;padding:0;" type="button" onClick="cancelBackToLi(this);return false;" value='cancel'/>
<input id="datapropsNNosLink" style="margin-left:5em;padding:0;" type="button" onClick="backToLi(this);submitPage();return false;" value='OK & save all changes'/>
</div>
</div>
</li>
<!-- @post -->
</ul>
</li>

View file

@ -1,32 +1,32 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<tr class="editformcell" id="entityNameTr">
<td valign="bottom" id="entityNameTd" colspan="1">
<b>Individual Name</b><br/>
<input type="text" name="field1Value" value="<form:value name="Name"/>" size="80" maxlength="255" />
<tr class="editformcell" id="entityNameTr">
<td valign="bottom" id="entityNameTd" colspan="1">
<b>Individual Name</b><br/>
<input type="text" name="field1Value" value="<form:value name="Name"/>" size="80" maxlength="255" />
<c:set var="NameError"><form:error name="Name"/></c:set>
<c:if test="${!empty NameError}">
<span class="notice"><c:out value="${NameError}"/></span>
</c:if>
</td>
<td valign="top" id="displayStatusTd" colspan="1">
<b>Display Status</b><br/>
<select name="StatusId" >
<form:option name="StatusId"/>
</select>
</td>
</tr>
<tr class='editformcell' id='GenericTypeTr'>
<td valign="top" id="genericTypeTd" colspan="2">
<b>Generic Type<br/>
<select id="VclassId" name="VClassId" onChange="update();">
<% // need to implement form:optgroup %>
<form:option name="VClassId"/>
</select>
</td>
</tr>
</c:if>
</td>
<td valign="top" id="displayStatusTd" colspan="1">
<b>Display Status</b><br/>
<select name="StatusId" >
<form:option name="StatusId"/>
</select>
</td>
</tr>
<tr class='editformcell' id='GenericTypeTr'>
<td valign="top" id="genericTypeTd" colspan="2">
<b>Generic Type<br/>
<select id="VclassId" name="VClassId" onChange="update();">
<% // need to implement form:optgroup %>
<form:option name="VClassId"/>
</select>
</td>
</tr>

View file

@ -1,19 +1,19 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Individual<sup>*</sup></b><br/>
<select name="_" disabled="disabled">
<form:option name="IndividualURI"/>
</select>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Dataprop"/><sup>*</sup></b><br/>
<textarea name="Data" rows="6" cols="64"><form:value name="Data"/></textarea>
<span class="warning"><form:error name="Data"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Individual<sup>*</sup></b><br/>
<select name="_" disabled="disabled">
<form:option name="IndividualURI"/>
</select>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Dataprop"/><sup>*</sup></b><br/>
<textarea name="Data" rows="6" cols="64"><form:value name="Data"/></textarea>
<span class="warning"><form:error name="Data"/></span>
</td>
</tr>

View file

@ -1,23 +1,23 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Subject Individual<sup>*</sup></b><br/>
<select disabled="disabled" name="SubjectEntURI">
<form:option name="SubjectEntURI"/>
</select>
<span class="warning"><form:error name="SubjectEntURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Prop"/><sup>*</sup></b><br/>
<b>Object Individual<sup>*</sup></b><br/>
<select name="ObjectEntURI">
<form:option name="ObjectEntURI"/>
</select>
<span class="warning"><form:error name="ObjectEntURI"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Subject Individual<sup>*</sup></b><br/>
<select disabled="disabled" name="SubjectEntURI">
<form:option name="SubjectEntURI"/>
</select>
<span class="warning"><form:error name="SubjectEntURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Prop"/><sup>*</sup></b><br/>
<b>Object Individual<sup>*</sup></b><br/>
<select name="ObjectEntURI">
<form:option name="ObjectEntURI"/>
</select>
<span class="warning"><form:error name="ObjectEntURI"/></span>
</td>
</tr>

View file

@ -1,22 +1,22 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Subject Individual<sup>*</sup></b><br/>
<select name="RangeId">
<form:option name="RangeId"/>
</select>
<span class="warning"><form:error name="RangeId"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Prop"/><sup>*</sup></b><br/>
<b>Subject Individual<sup>*</sup></b><br/>
<select name="DomainId">
<form:option name="DomainId"/>
</select> <span class="warning"><form:error name="DomainId"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<tr class="editformcell">
<td valign="top">
<b>Subject Individual<sup>*</sup></b><br/>
<select name="RangeId">
<form:option name="RangeId"/>
</select>
<span class="warning"><form:error name="RangeId"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b><form:value name="Prop"/><sup>*</sup></b><br/>
<b>Subject Individual<sup>*</sup></b><br/>
<select name="DomainId">
<form:option name="DomainId"/>
</select> <span class="warning"><form:error name="DomainId"/></span>
</td>
</tr>

View file

@ -1,12 +1,12 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<% /* For now, not using XML syntax because the output XHTML is not indented */ %>
<% /* <?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:form="http://vitro.mannlib.cornell.edu/edit/tags"
version="2.0"> */ %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% /* For now, not using XML syntax because the output XHTML is not indented */ %>
<% /* <?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:form="http://vitro.mannlib.cornell.edu/edit/tags"
version="2.0"> */ %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyHelper" %>
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission" %>
@ -16,19 +16,19 @@
request.setAttribute("isEditor", Boolean.TRUE);
}
%>
<div name="anybody" class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<c:set var='individual' value='${requestScope.entityWebapp}'/>
<c:if test="${isEditor}">
<div name="authorized" align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2" width="100%">
<tr valign="top" align="center">
<td>
<form action="entity" method="get">
<input type="submit" class="form-button" value="Display This Individual (public)"/>
<input type="hidden" name="uri" value="${individual.URI}"/>
<div name="anybody" class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<c:set var='individual' value='${requestScope.entityWebapp}'/>
<c:if test="${isEditor}">
<div name="authorized" align="center">
<table class="form-background" border="0" cellpadding="2" cellspacing="2" width="100%">
<tr valign="top" align="center">
<td>
<form action="entity" method="get">
<input type="submit" class="form-button" value="Display This Individual (public)"/>
<input type="hidden" name="uri" value="${individual.URI}"/>
</form>
<c:set var="query"
@ -70,47 +70,47 @@
<input type="hidden" name="resultFormat" value="RS_TEXT"/>
<input type="submit" class="form-button" value="Raw Statements with This Resource as Object"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input name="uri" type = "hidden" value="${individual.URI}" />
<input name="controller" type = "hidden" value="Entity" />
<input type="submit" class="form-button" value="Edit This Individual"/>
</form><br/>
<c:if test="${!empty individual.externalIds}">
<form action="editForm" method="get">
<select name="multiplexedParam" class="form-item">
<form:option name="externalIds"/>
</select><br/>
<input type="hidden" name="IndividualURI" value="${individual.URI}"/>
<input type="submit" class="form-button" value="Edit External Identifiers"/>
<input type="hidden" name="controller" value="ExternalId"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form name="newEntityForm" action="editForm" method="get">
<select id="VClassURI" name="VClassURI" class="form-item">
<form:option name="VClassURI"/>
</select><br/>
<input type="submit" class="form-button" value="Add New Individual of above Type"/>
<input type="hidden" name="controller" value="Entity"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add an External Identifier"/>
<input type="hidden" name="IndividualURI" value="${individual.URI}"/>
<input type="hidden" name="controller" value="ExternalId"/>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input name="uri" type = "hidden" value="${individual.URI}" />
<input name="controller" type = "hidden" value="Entity" />
<input type="submit" class="form-button" value="Edit This Individual"/>
</form><br/>
<c:if test="${!empty individual.externalIds}">
<form action="editForm" method="get">
<select name="multiplexedParam" class="form-item">
<form:option name="externalIds"/>
</select><br/>
<input type="hidden" name="IndividualURI" value="${individual.URI}"/>
<input type="submit" class="form-button" value="Edit External Identifiers"/>
<input type="hidden" name="controller" value="ExternalId"/>
</form>
</c:if>
</td>
<td valign="bottom">
<form name="newEntityForm" action="editForm" method="get">
<select id="VClassURI" name="VClassURI" class="form-item">
<form:option name="VClassURI"/>
</select><br/>
<input type="submit" class="form-button" value="Add New Individual of above Type"/>
<input type="hidden" name="controller" value="Entity"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add an External Identifier"/>
<input type="hidden" name="IndividualURI" value="${individual.URI}"/>
<input type="hidden" name="controller" value="ExternalId"/>
</form>
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Change URI"/>
<input type="hidden" name="oldURI" value="${individual.URI}"/>
<input type="hidden" name="mode" value="renameResource"/>
<input type="hidden" name="controller" value="Refactor"/>
</form>
</td>
</tr>
</form>
</td>
</tr>
<tr><td colspan="3"><hr/></td></tr>
<!-- TYPES -->
@ -123,9 +123,9 @@
<c:forEach var="type" items="${types}">
<c:url var="individualURL" value="entityEdit">
<c:param name="uri" value="${type.URI}"/>
</c:url>
<c:url var="typeURL" value="/vclassEdit">
<c:param name="uri" value="${type.URI}"/>
</c:url>
<c:url var="typeURL" value="/vclassEdit">
<c:param name="uri" value="${type.URI}"/>
</c:url>
<li><input type="checkbox" name="TypeURI" value="${type.URI}" class="form-item"/><a href="${typeURL}"> ${type.localNameWithPrefix} </a></li>
</c:forEach>
@ -148,76 +148,76 @@
</td>
</tr>
</table>
<c:if test="${dwrDisabled != true}">
<div id="entityUriForDwr" style="visibility:hidden;">${individual.URI}</div>
<div>
<table class="form-background" border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><td colspan="3" align="center"><h2>Object (individual-to-individual) Property Statements</h2></td></tr>
<tr><td><input id="newPropButton" class="form-button" type="button" value="add new statement" onclick="newProp();"/></td>
<td><input class="form-button" type="button" value="refresh list" onclick="update();"/></td>
</tr>
</table>
</div>
<div align="center">
<!-- ____________________ properties table using dwr ____________________ -->
<div id="propertyTableDiv">
<table class="form-background" border="1" width="100%" align="center">
<thead class="form-table-head">
<tr><th rowspan="1" colspan="1">Subject</th>
<th rowspan="1" colspan="1">Predicate</th>
<th rowspan="1" colspan="1">Object</th>
<th colspan="3" rowspan="1">actions</th>
</tr>
</thead>
<tbody id="propbody">
<tr><td>test</td><td>values</td><td>test</td><td>values</td></tr>
</tbody>
</table>
</div>
<!-- ____________________ End of properties table ______________________ -->
<!-- _____________________ Start of hidden area ____________________ -->
<!-- This is hidden and a copy gets put into the table when editing happens -->
<div id="propeditdiv" style="display:none" class ="form-editingRow">
<table width="100%">
<tr><td>Predicate:</td>
<td colspan="9">
<select id="propertyList" class="form-item"
onchange="fillRangeVClassList();">
<option value="">select property</option>
</select>
</td>
</tr>
<tr><td>Object Class:</td>
<td colspan="9">
<select id="vClassList" class="form-item" onchange="fillEntsList();">
<option value="">select type</option>
</select>
</td>
</tr>
<tr><td>Object Individual:</td>
<td colspan="9"><select id="entitiesList" class="form-item"><option>select individual</option></select></td>
</table>
<c:if test="${dwrDisabled != true}">
<div id="entityUriForDwr" style="visibility:hidden;">${individual.URI}</div>
<div>
<table class="form-background" border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><td colspan="3" align="center"><h2>Object (individual-to-individual) Property Statements</h2></td></tr>
<tr><td><input id="newPropButton" class="form-button" type="button" value="add new statement" onclick="newProp();"/></td>
<td><input class="form-button" type="button" value="refresh list" onclick="update();"/></td>
</tr>
</table>
</div>
<div align="center">
<!-- ____________________ properties table using dwr ____________________ -->
<div id="propertyTableDiv">
<table class="form-background" border="1" width="100%" align="center">
<thead class="form-table-head">
<tr><th rowspan="1" colspan="1">Subject</th>
<th rowspan="1" colspan="1">Predicate</th>
<th rowspan="1" colspan="1">Object</th>
<th colspan="3" rowspan="1">actions</th>
</tr>
</thead>
<tbody id="propbody">
<tr><td>test</td><td>values</td><td>test</td><td>values</td></tr>
</tbody>
</table>
</div>
<!-- ____________________ End of properties table ______________________ -->
<!-- _____________________ Start of hidden area ____________________ -->
<!-- This is hidden and a copy gets put into the table when editing happens -->
<div id="propeditdiv" style="display:none" class ="form-editingRow">
<table width="100%">
<tr><td>Predicate:</td>
<td colspan="9">
<select id="propertyList" class="form-item"
onchange="fillRangeVClassList();">
<option value="">select property</option>
</select>
</td>
</tr>
<tr><td>Object Class:</td>
<td colspan="9">
<select id="vClassList" class="form-item" onchange="fillEntsList();">
<option value="">select type</option>
</select>
</td>
</tr>
<tr><td>Object Individual:</td>
<td colspan="9"><select id="entitiesList" class="form-item"><option>select individual</option></select></td>
</tr>
<tr>
<td><input type="button" id="saveButt" class="form-button"
value="Save" onclick="writeProp()"/></td>
<td><input type="button" id="dismissButt" class="form-button" value="cancel"
onclick="update()"/></td>
</tr>
</table>
</div>
<div id="buildArea" style="display:none"></div>
</div><!-- END div "entityUriForDwr" -->
<!-- _________ End hidden area _________ -->
</c:if> <!-- end dwr section -->
</div><!-- END div "authorized" -->
</c:if><!-- end if (securityLevel less than MIN_EDIT_ROLE) -->
</div><!-- END div "anybody" -->
<tr>
<td><input type="button" id="saveButt" class="form-button"
value="Save" onclick="writeProp()"/></td>
<td><input type="button" id="dismissButt" class="form-button" value="cancel"
onclick="update()"/></td>
</tr>
</table>
</div>
<div id="buildArea" style="display:none"></div>
</div><!-- END div "entityUriForDwr" -->
<!-- _________ End hidden area _________ -->
</c:if> <!-- end dwr section -->
</div><!-- END div "authorized" -->
</c:if><!-- end if (securityLevel less than MIN_EDIT_ROLE) -->
</div><!-- END div "anybody" -->

View file

@ -1,37 +1,37 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%
request.setAttribute("dwrDisabled", new Boolean(false));
String context = request.getContextPath();
%>
<%
if (!(Boolean)request.getAttribute("dwrDisabled")) {
%>
<script type="text/javascript">
// relinquish jQuery's control of the $ variable to avoid conflicts with DWR
jQuery.noConflict();
</script>
<script type="text/javascript" xml:space="preserve">
var gEntityURI="${entity.URI}";
</script> <!-- There has got to be a better way to pass this to the js -->
<script type="text/javascript" src="<%=context%>/dwr/interface/PropertyDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/interface/EntityDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/interface/VClassDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/engine.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/util.js"></script>
<script type="text/javascript" src="<%=context%>/js/betterDateInput.js"></script>
<script type="text/javascript" src="<%=context%>/js/vitro.js"></script>
<script type="text/javascript" src="<%=context%>/dojo.js"></script>
<script type="text/javascript" src="<%=context%>/js/ents_edit.js"></script>
<script type="text/javascript" src="<%=context%>/js/detect.js"></script>
<script type="text/javascript" src="<%=context%>/js/toggle.js"></script>
<%
} %>
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%
request.setAttribute("dwrDisabled", new Boolean(false));
String context = request.getContextPath();
%>
<%
if (!(Boolean)request.getAttribute("dwrDisabled")) {
%>
<script type="text/javascript">
// relinquish jQuery's control of the $ variable to avoid conflicts with DWR
jQuery.noConflict();
</script>
<script type="text/javascript" xml:space="preserve">
var gEntityURI="${entity.URI}";
</script> <!-- There has got to be a better way to pass this to the js -->
<script type="text/javascript" src="<%=context%>/dwr/interface/PropertyDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/interface/EntityDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/interface/VClassDWR.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/engine.js"></script>
<script type="text/javascript" src="<%=context%>/dwr/util.js"></script>
<script type="text/javascript" src="<%=context%>/js/betterDateInput.js"></script>
<script type="text/javascript" src="<%=context%>/js/vitro.js"></script>
<script type="text/javascript" src="<%=context%>/dojo.js"></script>
<script type="text/javascript" src="<%=context%>/js/ents_edit.js"></script>
<script type="text/javascript" src="<%=context%>/js/detect.js"></script>
<script type="text/javascript" src="<%=context%>/js/toggle.js"></script>
<%
} %>

View file

@ -1,26 +1,26 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="equivalentClass" name="opMode"/>
<input type="hidden" value="add" name="operation"/>
<tr class="editformcell">
<td valign="top">
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td><p><strong>equivalent to</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="equivalentClass" name="opMode"/>
<input type="hidden" value="add" name="operation"/>
<tr class="editformcell">
<td valign="top">
<select name="SuperclassURI">
<form:option name="SuperclassURI"/>
</select>
<span class="warning"><form:error name="SuperclassURI"/></span>
</td>
</tr>
<tr class="editformcell">
<td><p><strong>equivalent to</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="SubclassURI" >
<form:option name="SubclassURI"/>
</select>
<span class="warning"><form:error name="SubclassURI"/></span>
</td>
</tr>

View file

@ -1,23 +1,23 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="add" name="operation"/>
<input type="hidden" value="${individual.URI}" name="individualURI"/>
<tr class="editformcell">
<td valign="top">
${individual.name}
</td>
</tr>
<tr class="editformcell">
<td><p><strong>has type</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="TypeURI" >
<form:option name="types"/>
</select>
<span class="warning"><form:error name="TypeURI"/></span>
</td>
</tr>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<input type="hidden" value="add" name="operation"/>
<input type="hidden" value="${individual.URI}" name="individualURI"/>
<tr class="editformcell">
<td valign="top">
${individual.name}
</td>
</tr>
<tr class="editformcell">
<td><p><strong>has type</strong></p></td>
</tr>
<tr class="editformcell">
<td valign="top">
<select name="TypeURI" >
<form:option name="types"/>
</select>
<span class="warning"><form:error name="TypeURI"/></span>
</td>
</tr>

View file

@ -1,36 +1,36 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<hr/>
<p/>
<div align=center>
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="fetch" method="get">
<input type="submit" class="form-button" value="See All Namespaces"/>
<input type="hidden" name="queryspec" value="private_namespaces"/>
<input type="hidden" name="header" value="titleonly"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Edit Namespace <%=request.getAttribute("firstvalue")%>"/>
<input name="id" type = "hidden" value="<%=request.getAttribute("firstvalue")%>" />
<input type="hidden" name="controller" value="Namespace"/>
</form>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add New Namespace"/>
<input type="hidden" name="controller" value="Namespace"/>
</form>
</td>
</tr>
</table>
</div>
</div>
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<div class="editingForm">
<jsp:include page="/templates/edit/fetch/vertical.jsp"/>
<hr/>
<p/>
<div align=center>
<table class="form-background" border="0" cellpadding="2" cellspacing="2">
<tr valign="bottom" align="center">
<td>
<form action="fetch" method="get">
<input type="submit" class="form-button" value="See All Namespaces"/>
<input type="hidden" name="queryspec" value="private_namespaces"/>
<input type="hidden" name="header" value="titleonly"/>
</form>
</td>
<td valign="bottom" align="center">
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Edit Namespace <%=request.getAttribute("firstvalue")%>"/>
<input name="id" type = "hidden" value="<%=request.getAttribute("firstvalue")%>" />
<input type="hidden" name="controller" value="Namespace"/>
</form>
</td>
<td valign="bottom">
<form action="editForm" method="get">
<input type="submit" class="form-button" value="Add New Namespace"/>
<input type="hidden" name="controller" value="Namespace"/>
</form>
</td>
</tr>
</table>
</div>
</div>

View file

@ -1,51 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://vitro.mannlib.cornell.edu/edit/tags" version="2.0">
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Email address*</b><br/>
<input type="text" name="Username" value="${formValue['Username']}" size="60" maxlength="120" />
<span class="warning"><form:error name="Username"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="1">
<b>First Name*</b><br/>
<input type="text" name="FirstName" value="${formValue['FirstName']}" size="30" maxlength="120"/>
<span class="warning"><form:error name="FirstName"/></span>
</td>
<td valign="bottom" colspan="1">
<b>Last Name*</b><br/>
<input type="text" name="LastName" value="${formValue['LastName']}" size="30" maxlength="120"/>
<span class="warning"><form:error name="LastName"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Role*</b><br/>
<select name="RoleURI">
<form:option name="Role"/>
</select>
<span class="warning"><form:error name="Role"/></span>
</td>
</tr>
<c:if test="${empty user.md5password}">
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Temporary Password* (6-12 characters; must be changed on first login)</b><br/>
<input type="password" name="Md5password" value="${formValue['Md5password']}" size="64" maxlength="128"/>
<span class="warning"><form:error name="Md5password"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Confirm password*</b><br/>
<input type="password" name="passwordConfirmation" value="${formValue['passwordConfirmation']}" size="64" maxlength="128"/>
<span class="warning"><form:error name="passwordConfirmation"/></span>
</td>
</tr>
</c:if>
</jsp:root>
<?xml version="1.0" encoding="UTF-8"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://vitro.mannlib.cornell.edu/edit/tags" version="2.0">
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Email address*</b><br/>
<input type="text" name="Username" value="${formValue['Username']}" size="60" maxlength="120" />
<span class="warning"><form:error name="Username"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="1">
<b>First Name*</b><br/>
<input type="text" name="FirstName" value="${formValue['FirstName']}" size="30" maxlength="120"/>
<span class="warning"><form:error name="FirstName"/></span>
</td>
<td valign="bottom" colspan="1">
<b>Last Name*</b><br/>
<input type="text" name="LastName" value="${formValue['LastName']}" size="30" maxlength="120"/>
<span class="warning"><form:error name="LastName"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Role*</b><br/>
<select name="RoleURI">
<form:option name="Role"/>
</select>
<span class="warning"><form:error name="Role"/></span>
</td>
</tr>
<c:if test="${empty user.md5password}">
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Temporary Password* (6-12 characters; must be changed on first login)</b><br/>
<input type="password" name="Md5password" value="${formValue['Md5password']}" size="64" maxlength="128"/>
<span class="warning"><form:error name="Md5password"/></span>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="2">
<b>Confirm password*</b><br/>
<input type="password" name="passwordConfirmation" value="${formValue['passwordConfirmation']}" size="64" maxlength="128"/>
<span class="warning"><form:error name="passwordConfirmation"/></span>
</td>
</tr>
</c:if>
</jsp:root>

View file

@ -1,87 +1,87 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%/* this odd thing points to something in web.xml */ %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page errorPage="/error.jsp"%>
<% /***********************************************
Display a list of entities for a tab.
request.attributes:
a List of Entity objects with the name "entities"
request.parameters:
None yet.
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output for debugging info.
bdc34 2006-01-27 created
**********************************************/
if (request.getAttribute("entities") == null){
String e="entityListForTabs.jsp expects that request attribute 'entities' be set to a List of Entity objects.";
throw new JspException(e);
}
%>
<c:set var="searchViewPrefix" value="/templates/search/"/>
<c:set var='entities' value='${requestScope.entities}' /><%/* just moving this into page scope for easy use */ %>
<c:set var='IMG_WIDTH' value='75'/>
<jsp:include page="/templates/alpha/alphaIndex.jsp"/>
<ul class='tabEntities entityListForTab'>
<c:forEach items='${entities}' var='ent'>
<c:url var="entHref" value="/entity">
<c:param name="uri" value="${ent.URI}"/>
</c:url>
<li>
<a href='<c:out value="${entHref}"/>'>${ent.name}</a>
<c:if test="${!empty ent.moniker}">
<span class="tab-moniker">
| <c:out value="${ent.moniker}"/>
</span>
</c:if>
<c:if test="${!empty ent.VClasses}">
<c:forEach items="${ent.VClasses}" var="type">
<c:if test="${!empty type.customSearchView}">
<c:set var="customSearchView" value="${type.customSearchView}"/>
</c:if>
</c:forEach>
</c:if>
<c:set var="anchorText" value="${ent.anchor}"/>
<c:if test="${(!empty customSearchView) && (!empty anchorText)}">
<c:set scope="request" var="individual" value="${ent}"/>
<c:if test="${!empty ent.url}">
<c:set scope="request" var="individualURL" value="${ent.url}"/>
</c:if>
<jsp:include page="${searchViewPrefix}${customSearchView}" flush="true"/>
<c:remove var="individual"/>
<c:remove var="individualURL"/>
<c:remove var="anchorText"/>
</c:if>
<c:if test="${!empty anchorText}">
<span class="tab-extLink"> |
<c:choose>
<c:when test="${!empty ent.url}">
<c:url var="entUrl" value="${ent.url}"/>
<a class="externalLink" href="<c:out value="${entUrl}"/>">${anchorText}</a>
</c:when>
<c:otherwise>
<span style="font-style: italic; text-size: 0.75em;">${anchorText}</span>
</c:otherwise>
</c:choose>
</span>
</c:if>
<c:forEach items='${ent.linksList}' var="entLink"><span class="tab-extLink"> | <c:url var="entLinkUrl" value="${entLink.url}"/><a class="externalLink" href="<c:out value="${entLinkUrl}"/>">${entLink.anchor}</a></span></c:forEach>
<c:choose>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%/* this odd thing points to something in web.xml */ %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page errorPage="/error.jsp"%>
<% /***********************************************
Display a list of entities for a tab.
request.attributes:
a List of Entity objects with the name "entities"
request.parameters:
None yet.
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output for debugging info.
bdc34 2006-01-27 created
**********************************************/
if (request.getAttribute("entities") == null){
String e="entityListForTabs.jsp expects that request attribute 'entities' be set to a List of Entity objects.";
throw new JspException(e);
}
%>
<c:set var="searchViewPrefix" value="/templates/search/"/>
<c:set var='entities' value='${requestScope.entities}' /><%/* just moving this into page scope for easy use */ %>
<c:set var='IMG_WIDTH' value='75'/>
<jsp:include page="/templates/alpha/alphaIndex.jsp"/>
<ul class='tabEntities entityListForTab'>
<c:forEach items='${entities}' var='ent'>
<c:url var="entHref" value="/entity">
<c:param name="uri" value="${ent.URI}"/>
</c:url>
<li>
<a href='<c:out value="${entHref}"/>'>${ent.name}</a>
<c:if test="${!empty ent.moniker}">
<span class="tab-moniker">
| <c:out value="${ent.moniker}"/>
</span>
</c:if>
<c:if test="${!empty ent.VClasses}">
<c:forEach items="${ent.VClasses}" var="type">
<c:if test="${!empty type.customSearchView}">
<c:set var="customSearchView" value="${type.customSearchView}"/>
</c:if>
</c:forEach>
</c:if>
<c:set var="anchorText" value="${ent.anchor}"/>
<c:if test="${(!empty customSearchView) && (!empty anchorText)}">
<c:set scope="request" var="individual" value="${ent}"/>
<c:if test="${!empty ent.url}">
<c:set scope="request" var="individualURL" value="${ent.url}"/>
</c:if>
<jsp:include page="${searchViewPrefix}${customSearchView}" flush="true"/>
<c:remove var="individual"/>
<c:remove var="individualURL"/>
<c:remove var="anchorText"/>
</c:if>
<c:if test="${!empty anchorText}">
<span class="tab-extLink"> |
<c:choose>
<c:when test="${!empty ent.url}">
<c:url var="entUrl" value="${ent.url}"/>
<a class="externalLink" href="<c:out value="${entUrl}"/>">${anchorText}</a>
</c:when>
<c:otherwise>
<span style="font-style: italic; text-size: 0.75em;">${anchorText}</span>
</c:otherwise>
</c:choose>
</span>
</c:if>
<c:forEach items='${ent.linksList}' var="entLink"><span class="tab-extLink"> | <c:url var="entLinkUrl" value="${entLink.url}"/><a class="externalLink" href="<c:out value="${entLinkUrl}"/>">${entLink.anchor}</a></span></c:forEach>
<c:choose>
<c:when test='${not empty ent.thumbUrl }'>
<c:url var="imageHref" value="entity">
<c:param name="uri" value="${ent.URI}"/>
</c:url>
<c:url var="imageHref" value="entity">
<c:param name="uri" value="${ent.URI}"/>
</c:url>
<div class="tab-image"><a class="image" href="<c:out value="${imageHref}"/>"><img width="${IMG_WIDTH}" src="${pageContext.request.contextPath}${ent.thumbUrl}" title="${ent.name}" alt="" /></a></div>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</li>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</li>
</c:forEach>
</ul>
@ -113,7 +113,7 @@ if( request.getAttribute("alpha") != null && ! "all".equalsIgnoreCase((String)re
</c:if>
</c:forEach>
</div>
</c:if>
</c:if>
<jsp:include page="/templates/entity/entityListPages.jsp"/>

View file

@ -1,3 +1,3 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<div class="error"><h4>No matching entity was found in the system.</h4> </div>
<div class="error"><h4>No matching entity was found in the system.</h4> </div>

View file

@ -1,18 +1,18 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isErrorPage="true" %>
<% if ( pageContext.getErrorData().getRequestURI().indexOf("/images/") < 0 ) {
request.setAttribute("bodyJsp", "/templates/error/error404content.jsp");
request.setAttribute("title", "Not Found");
<% if ( pageContext.getErrorData().getRequestURI().indexOf("/images/") < 0 ) {
request.setAttribute("bodyJsp", "/templates/error/error404content.jsp");
request.setAttribute("title", "Not Found");
%>
<jsp:forward page="/templates/page/basicPage.jsp">
<jsp:param name="uriStr" value="${pageContext.errorData.requestURI}"/>
<jsp:forward page="/templates/page/basicPage.jsp">
<jsp:param name="uriStr" value="${pageContext.errorData.requestURI}"/>
</jsp:forward>
<% } %>
<% } %>

View file

@ -1,21 +1,21 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
<div class="contents">
<h1>Page Not Found</h1>
<p class="warning">The page you requested is not available. It may have been deleted or moved to another location.</p>
<p>Try the search box above to locate the information you are looking for.</p>
<p>If you reached this page by following a link within this website, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us what link you clicked.</p>
<!-- _______________________________Exception__________________________________
404
Request URI: ${param.uriStr}
___________________________________________________________________________ -->
</div><!-- contents -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
<div class="contents">
<h1>Page Not Found</h1>
<p class="warning">The page you requested is not available. It may have been deleted or moved to another location.</p>
<p>Try the search box above to locate the information you are looking for.</p>
<p>If you reached this page by following a link within this website, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us what link you clicked.</p>
<!-- _______________________________Exception__________________________________
404
Request URI: ${param.uriStr}
___________________________________________________________________________ -->
</div><!-- contents -->

View file

@ -1,44 +1,44 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.lang.Integer" %>
<%@page isErrorPage="true" %>
<html>
<head>
<title>Internal Server Error</title>
</head>
<body style="margin:2%;font-family:Arial, Helvetica, sans-serif;">
<div class="contents">
<h1>Internal Server Error</h1>
<p style="color:red;">An internal error has occurred in the server.</p>
<p>Please try again later.</p>
<p>If the problem persists, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us how you arrived here.</p>
</div><!-- contents -->
<div id="hiddenErrorDiv" style="display:none;">
_______________________________Exception__________________________________
500
Request URI: ${param.uriStr}
Exception: ${param.errStr}
Stack trace:
<c:forEach var="trace" items="${pageContext.exception.stackTrace}">
${trace} <%="\n"%>
</c:forEach>
___________________________________________________________________________
</div><!-- hiddenErrorDiv -->
</body>
</html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.lang.Integer" %>
<%@page isErrorPage="true" %>
<html>
<head>
<title>Internal Server Error</title>
</head>
<body style="margin:2%;font-family:Arial, Helvetica, sans-serif;">
<div class="contents">
<h1>Internal Server Error</h1>
<p style="color:red;">An internal error has occurred in the server.</p>
<p>Please try again later.</p>
<p>If the problem persists, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us how you arrived here.</p>
</div><!-- contents -->
<div id="hiddenErrorDiv" style="display:none;">
_______________________________Exception__________________________________
500
Request URI: ${param.uriStr}
Exception: ${param.errStr}
Stack trace:
<c:forEach var="trace" items="${pageContext.exception.stackTrace}">
${trace} <%="\n"%>
</c:forEach>
___________________________________________________________________________
</div><!-- hiddenErrorDiv -->
</body>
</html>

View file

@ -1,27 +1,27 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="contents">
<h1>Internal Server Error</h1>
<p class="warning">An internal error has occurred in the server</p>
<p>Please try again later.</p>
<p>If the problem persists, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us how you arrived here.</p>
<!-- _______________________________Exception__________________________________
500
Request URI: ${param.uriStr}
Exception: ${param.errStr}
Stack trace:
<c:forEach var="trace" items="${pageContext.exception.stackTrace}">
${trace} <%="\n"%>
</c:forEach>
___________________________________________________________________________ -->
</div><!-- contents -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="contents">
<h1>Internal Server Error</h1>
<p class="warning">An internal error has occurred in the server</p>
<p>Please try again later.</p>
<p>If the problem persists, please consider <a href="<c:url value="comments"/>">contacting us</a> and telling us how you arrived here.</p>
<!-- _______________________________Exception__________________________________
500
Request URI: ${param.uriStr}
Exception: ${param.errStr}
Stack trace:
<c:forEach var="trace" items="${pageContext.exception.stackTrace}">
${trace} <%="\n"%>
</c:forEach>
___________________________________________________________________________ -->
</div><!-- contents -->

View file

@ -1,23 +1,23 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created. -->
<#assign strings = i18n() />
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.account_created_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress,
passwordLink) />
<#assign text = strings.account_created_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress,
passwordLink) />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created. -->
<#assign strings = i18n() />
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.account_created_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress,
passwordLink) />
<#assign text = strings.account_created_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress,
passwordLink) />
<@email subject=subject html=html text=text />

View file

@ -1,19 +1,19 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created. -->
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.account_created_external_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = string.account_created_external_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created. -->
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.account_created_external_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = string.account_created_external_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />

View file

@ -1,81 +1,81 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3><a class="account-menu" href="accountsAdmin" title="${strings.user_accounts_title}">${strings.user_accounts_link}</a> > ${strings.add_new_account}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorExternalAuthIdInUse??>
<#assign errorMessage = strings.error_external_auth_already_exists />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="add-account" role="region">
<form method="POST" action="${formUrls.add}" class="customForm" role="add new account">
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#include "userAccounts-associateProfilePanel.ftl">
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />${strings.external_auth_only}</p>
<p>${strings.roles}<span class="requiredHint"> *</span></p>
<#list roles as role>
<input type="radio" name="role" value="${role.uri}" role="radio" ${selectedRoles?seq_contains(role.uri)?string("checked", "")} />
<label class="inline" for="${role.label}"> ${role.label}</label>
<br />
</#list>
<#if emailIsEnabled??>
<p class="note">${strings.new_account_note}</p>
<#else>
<section id="passwordContainer" role="region">
<label for="initial-password">${strings.initial_password}<span class="requiredHint"> *</span></label>
<input type="password" name="initialPassword" value="${initialPassword}" id="initial-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_initial_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</section>
</#if>
<p><input type="submit" name="submitAdd" value="${strings.submit_add_new_account}" class="submit" /> ${strings.or} <a class="cancel" href="${formUrls.list}" title="${strings.cancel_title}">${strings.cancel_link}</a></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3><a class="account-menu" href="accountsAdmin" title="${strings.user_accounts_title}">${strings.user_accounts_link}</a> > ${strings.add_new_account}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorExternalAuthIdInUse??>
<#assign errorMessage = strings.error_external_auth_already_exists />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="add-account" role="region">
<form method="POST" action="${formUrls.add}" class="customForm" role="add new account">
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#include "userAccounts-associateProfilePanel.ftl">
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />${strings.external_auth_only}</p>
<p>${strings.roles}<span class="requiredHint"> *</span></p>
<#list roles as role>
<input type="radio" name="role" value="${role.uri}" role="radio" ${selectedRoles?seq_contains(role.uri)?string("checked", "")} />
<label class="inline" for="${role.label}"> ${role.label}</label>
<br />
</#list>
<#if emailIsEnabled??>
<p class="note">${strings.new_account_note}</p>
<#else>
<section id="passwordContainer" role="region">
<label for="initial-password">${strings.initial_password}<span class="requiredHint"> *</span></label>
<input type="password" name="initialPassword" value="${initialPassword}" id="initial-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_initial_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</section>
</#if>
<p><input type="submit" name="submitAdd" value="${strings.submit_add_new_account}" class="submit" /> ${strings.or} <a class="cancel" href="${formUrls.list}" title="${strings.cancel_title}">${strings.cancel_link}</a></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/account/accountExternalAuthFlag.js"></script>')}

View file

@ -1,91 +1,91 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for setting the account reference field, which can also associate a profile with the user account -->
<#assign strings = i18n() />
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/autocomplete.css" />',
'<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
<section id="externalAuthMatchId">
<div id="associateProfileBackgroundOne">
<div id="alignExternalAuthId">
<#if showAssociation??>
<label for="externalAuthId">${strings.auth_matching_id_label}</label>
<input type="text" name="externalAuthId" value="${externalAuthId}" id="externalAuthId" role="input "/>
<span id="externalAuthIdInUse" >${strings.auth_id_in_use}</span>
<p class="explanatoryText">${strings.auth_id_explanation}</p>
<#else>
<label for="externalAuthId">${strings.auth_id_label}</label>
<input type="text" name="externalAuthId" value="${externalAuthId}" id="externalAuthId" role="input "/>
<span id="externalAuthIdInUse" >${strings.auth_id_in_use}</span>
</#if>
</div>
</div>
</section>
<#-- If there is an associated profile, show these -->
<section id="associated">
<div id="associateProfileBackgroundTwo">
<p>
<label for="associatedProfileName">${strings.associated_profile_label}</label>
<span class="acSelectionInfo" id="associatedProfileName"></span>
<a href="" id="verifyProfileLink" title="${strings.verify_this_match_title}">(${strings.verify_this_match})</a>
<a href="" id="changeProfileLink" title="${strings.change_profile_title}">(${strings.change_profile})</a>
</p>
<input type="hidden" id="associatedProfileUri" name="associatedProfileUri" value="" />
</div>
</section>
<#-- If we haven't selected one, show these instead -->
<section id="associationOptions">
<div id="associateProfileBackgroundThree">
<p>
<label for="associateProfileName">${strings.select_associated_profile}</label>
<input type="text" id="associateProfileName" name="associateProfileName" class="acSelector" size="35">
</p>
</div>
<div id="associateProfileBackgroundFour">
<p> - ${strings.or} - </p>
<p>
<label for="">${strings.create_associated_profile}</label>
<select name="newProfileClassUri" id="newProfileClassUri" >
<option value="" selected="selected">${strings.select_one}</option>
<#list profileTypes?keys as key>
<option value="${key}" <#if newProfileClassUri = key> selected </#if> >${profileTypes[key]}</option>
</#list>
</select>
</p>
</div>
</section>
<script type="text/javascript">
var associateProfileFieldsData = {
<#if userUri??>
userUri: '${userUri}' ,
<#else>
userUri: '' ,
</#if>
<#if associationIsReset??>
associationIsReset: 'true' ,
</#if>
<#if associatedProfileInfo??>
associatedProfileInfo: {
label: '${associatedProfileInfo.label}',
uri: '${associatedProfileInfo.uri}',
url: '${associatedProfileInfo.url}'
},
</#if>
<#if showAssociation??>
associationEnabled: true ,
</#if>
ajaxUrl: '${formUrls.accountsAjax}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountAssociateProfile.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for setting the account reference field, which can also associate a profile with the user account -->
<#assign strings = i18n() />
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/autocomplete.css" />',
'<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
<section id="externalAuthMatchId">
<div id="associateProfileBackgroundOne">
<div id="alignExternalAuthId">
<#if showAssociation??>
<label for="externalAuthId">${strings.auth_matching_id_label}</label>
<input type="text" name="externalAuthId" value="${externalAuthId}" id="externalAuthId" role="input "/>
<span id="externalAuthIdInUse" >${strings.auth_id_in_use}</span>
<p class="explanatoryText">${strings.auth_id_explanation}</p>
<#else>
<label for="externalAuthId">${strings.auth_id_label}</label>
<input type="text" name="externalAuthId" value="${externalAuthId}" id="externalAuthId" role="input "/>
<span id="externalAuthIdInUse" >${strings.auth_id_in_use}</span>
</#if>
</div>
</div>
</section>
<#-- If there is an associated profile, show these -->
<section id="associated">
<div id="associateProfileBackgroundTwo">
<p>
<label for="associatedProfileName">${strings.associated_profile_label}</label>
<span class="acSelectionInfo" id="associatedProfileName"></span>
<a href="" id="verifyProfileLink" title="${strings.verify_this_match_title}">(${strings.verify_this_match})</a>
<a href="" id="changeProfileLink" title="${strings.change_profile_title}">(${strings.change_profile})</a>
</p>
<input type="hidden" id="associatedProfileUri" name="associatedProfileUri" value="" />
</div>
</section>
<#-- If we haven't selected one, show these instead -->
<section id="associationOptions">
<div id="associateProfileBackgroundThree">
<p>
<label for="associateProfileName">${strings.select_associated_profile}</label>
<input type="text" id="associateProfileName" name="associateProfileName" class="acSelector" size="35">
</p>
</div>
<div id="associateProfileBackgroundFour">
<p> - ${strings.or} - </p>
<p>
<label for="">${strings.create_associated_profile}</label>
<select name="newProfileClassUri" id="newProfileClassUri" >
<option value="" selected="selected">${strings.select_one}</option>
<#list profileTypes?keys as key>
<option value="${key}" <#if newProfileClassUri = key> selected </#if> >${profileTypes[key]}</option>
</#list>
</select>
</p>
</div>
</section>
<script type="text/javascript">
var associateProfileFieldsData = {
<#if userUri??>
userUri: '${userUri}' ,
<#else>
userUri: '' ,
</#if>
<#if associationIsReset??>
associationIsReset: 'true' ,
</#if>
<#if associatedProfileInfo??>
associatedProfileInfo: {
label: '${associatedProfileInfo.label}',
uri: '${associatedProfileInfo.uri}',
url: '${associatedProfileInfo.url}'
},
</#if>
<#if showAssociation??>
associationEnabled: true ,
</#if>
ajaxUrl: '${formUrls.accountsAjax}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountAssociateProfile.js"></script>')}

View file

@ -1,21 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that the user has changed his email account. -->
<#assign strings = i18n() />
<#assign subject = strings.email_changed_subject(siteName) />
<#assign html = strings.email_changed_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.email_changed_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that the user has changed his email account. -->
<#assign strings = i18n() />
<#assign subject = strings.email_changed_subject(siteName) />
<#assign html = strings.email_changed_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.email_changed_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />

View file

@ -1,46 +1,46 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3>${strings.create_your_password}</h3>
<#if errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}"/>
<p>${errorMessage}</p>
</section>
</#if>
<section id="create-password" role="region">
<p>${strings.enter_new_password(userAccount.emailAddress)}</p>
<form method="POST" action="${formUrls.createPassword}" class="customForm" role="create password">
<input type="hidden" name="user" value="${userAccount.emailAddress}" role="input" />
<input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" role="input" />
<label for="new-password">${strings.new_password}<span class="requiredHint"> *</span></label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
<p><input type="submit" name="submit" value="${strings.save_changes}" class="submit"/></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3>${strings.create_your_password}</h3>
<#if errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}"/>
<p>${errorMessage}</p>
</section>
</#if>
<section id="create-password" role="region">
<p>${strings.enter_new_password(userAccount.emailAddress)}</p>
<form method="POST" action="${formUrls.createPassword}" class="customForm" role="create password">
<input type="hidden" name="user" value="${userAccount.emailAddress}" role="input" />
<input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" role="input" />
<label for="new-password">${strings.new_password}<span class="requiredHint"> *</span></label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
<p><input type="submit" name="submit" value="${strings.save_changes}" class="submit"/></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}

View file

@ -1,95 +1,95 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for editing a user account -->
<#assign strings = i18n() />
<h3><a class="account-menu" href="accountsAdmin" title="${strings.user_accounts_title}">${strings.user_accounts_link}</a> > ${strings.edit_account}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorExternalAuthIdInUse??>
<#assign errorMessage = strings.error_external_auth_already_exists />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="edit-account" role="region">
<form method="POST" action="${formUrls.edit}" id="userAccountForm" class="customForm" role="edit account">
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#if externalAuthPermitted??>
<#include "userAccounts-associateProfilePanel.ftl">
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />${strings.external_auth_only}</p>
</#if>
<#if roles?has_content>
<p>${strings.roles}<span class="requiredHint"> *</span></p>
<#list roles as role>
<input type="radio" name="role" value="${role.uri}" role="radio" ${selectedRoles?seq_contains(role.uri)?string("checked", "")} />
<label class="inline" for="${role.label}"> ${role.label}</label>
<br />
</#list>
</#if>
<#if emailIsEnabled??>
<section id="pwdResetContainer" <#if externalAuthOnly?? >class="hidden"</#if> role="region">
<input type="checkbox" name="resetPassword" value="" id="reset-password" role="checkbox" <#if resetPassword??>checked</#if> />
<label class="inline" for="reset-password">${strings.reset_password}</label>
<p class="note">${strings.reset_password_note}</p>
</section>
<#else>
<section id="passwordContainer" <#if externalAuthOnly?? >class="hidden"</#if> role="region">
<label for="new-password">${strings.new_password}</label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}<br />
${strings.leave_password_unchanged}</p>
<label for="confirm-password">${strings.confirm_password}</label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</section>
</#if>
<p><input type="submit" id="submitMyAccount" name="submitEdit" value="${strings.save_changes}" class="submit" disabled /> ${strings.or} <a class="cancel" href="${formUrls.list}" title="${strings.cancel_title}">${strings.cancel_link}</a></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountExternalAuthFlag.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountListenerSetup.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for editing a user account -->
<#assign strings = i18n() />
<h3><a class="account-menu" href="accountsAdmin" title="${strings.user_accounts_title}">${strings.user_accounts_link}</a> > ${strings.edit_account}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorExternalAuthIdInUse??>
<#assign errorMessage = strings.error_external_auth_already_exists />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="edit-account" role="region">
<form method="POST" action="${formUrls.edit}" id="userAccountForm" class="customForm" role="edit account">
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#if externalAuthPermitted??>
<#include "userAccounts-associateProfilePanel.ftl">
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />${strings.external_auth_only}</p>
</#if>
<#if roles?has_content>
<p>${strings.roles}<span class="requiredHint"> *</span></p>
<#list roles as role>
<input type="radio" name="role" value="${role.uri}" role="radio" ${selectedRoles?seq_contains(role.uri)?string("checked", "")} />
<label class="inline" for="${role.label}"> ${role.label}</label>
<br />
</#list>
</#if>
<#if emailIsEnabled??>
<section id="pwdResetContainer" <#if externalAuthOnly?? >class="hidden"</#if> role="region">
<input type="checkbox" name="resetPassword" value="" id="reset-password" role="checkbox" <#if resetPassword??>checked</#if> />
<label class="inline" for="reset-password">${strings.reset_password}</label>
<p class="note">${strings.reset_password_note}</p>
</section>
<#else>
<section id="passwordContainer" <#if externalAuthOnly?? >class="hidden"</#if> role="region">
<label for="new-password">${strings.new_password}</label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}<br />
${strings.leave_password_unchanged}</p>
<label for="confirm-password">${strings.confirm_password}</label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</section>
</#if>
<p><input type="submit" id="submitMyAccount" name="submitEdit" value="${strings.save_changes}" class="submit" disabled /> ${strings.or} <a class="cancel" href="${formUrls.list}" title="${strings.cancel_title}">${strings.cancel_link}</a></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountExternalAuthFlag.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountListenerSetup.js"></script>')}

View file

@ -1,58 +1,58 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for creating an account for the first time an external user logs in. -->
<#assign strings = i18n() />
<h3>${strings.first_time_login}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="first-time-login" role="region">
<p>${strings.please_provide_contact_information}</p>
<form method="POST" action="${formUrls.firstTimeExternal}" class="customForm" role="my account">
<input type="hidden" name="externalAuthId" value="${externalAuthId}" role="input" />
<input type="hidden" name="afterLoginUrl" value="${afterLoginUrl}" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<#if emailIsEnabled??>
<p class="note">${strings.first_time_login_note}</p>
</#if>
<p><input type="submit" name="submit" value="${strings.create_account}" class="submit"/>
${strings.or}
<a class="cancel" href="${urls.home}" title="${strings.cancel_title}">${strings.cancel_link}</a>
</p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for creating an account for the first time an external user logs in. -->
<#assign strings = i18n() />
<h3>${strings.first_time_login}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="first-time-login" role="region">
<p>${strings.please_provide_contact_information}</p>
<form method="POST" action="${formUrls.firstTimeExternal}" class="customForm" role="my account">
<input type="hidden" name="externalAuthId" value="${externalAuthId}" role="input" />
<input type="hidden" name="afterLoginUrl" value="${afterLoginUrl}" role="input" />
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<#if emailIsEnabled??>
<p class="note">${strings.first_time_login_note}</p>
</#if>
<p><input type="submit" name="submit" value="${strings.create_account}" class="submit"/>
${strings.or}
<a class="cancel" href="${urls.home}" title="${strings.cancel_title}">${strings.cancel_link}</a>
</p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}

View file

@ -1,21 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created for an externally-authenticated user. -->
<#assign strings = i18n() />
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.first_time_external_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.first_time_external_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an account has been created for an externally-authenticated user. -->
<#assign strings = i18n() />
<#assign subject = strings.account_created(siteName) />
<#assign html = strings.first_time_external_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.first_time_external_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />

View file

@ -1,189 +1,189 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for displaying list of user accounts -->
<#import "userAccounts-accountsNav.ftl" as p>
<#assign strings = i18n() />
<form method="POST" action="${formUrls.add}" id="add-account" class="customForm" role="Add account">
<h3><span>${strings.user_accounts_link} | </span><input type="submit" class="submit add-account" value="${strings.add_new_account}" /></h3>
</form>
<#if newUserAccount?? >
<section class="account-feedback">
<p>
${strings.new_account_1}
<a href="${newUserAccount.editUrl}" title="${strings.new_account_title}">${newUserAccount.firstName} ${newUserAccount.lastName}</a>
${strings.new_account_2}
<#if emailWasSent?? >${strings.new_account_notification(newUserAccount.emailAddress)}</#if>
</p>
</section>
</#if>
<#if updatedUserAccount?? >
<section class="account-feedback">
<p>
${strings.updated_account_1}
<a href="${updatedUserAccount.editUrl}" title="${strings.updated_account_title}}">${updatedUserAccount.firstName} ${updatedUserAccount.lastName}</a>
${strings.updated_account_2}
<#if emailWasSent?? >${strings.updated_account_notification(updatedUserAccount.emailAddress)}</#if>
</p>
</section>
</#if>
<#if deletedAccountCount?? >
<section class="account-feedback">
<p>
${strings.deleted_accounts(deletedAccountCount)}
</p>
</section>
</#if>
<section id="filter-roles">
<form method="POST" action="${formUrls.list}" class="customForm" role="filter by roles">
<select name="roleFilterUri" id="roleFilterUri">
<option value="" <#if roleFilterUri = "">selected</#if> >${strings.filter_by_roles}</option>
<#list roles as role>
<option value="${formUrls.list}?roleFilterUri=${role.uri?url}" <#if roleFilterUri = role.uri>selected</#if> >${role.label}</option>
</#list>
<!--
When roleFilterUri or searchTerm changes,
pageIndex should be set to 1. When any of these changes (including pageIndex), the form
should be submitted.
-->
</select>
<#if roleFilterUri?has_content>
<span><a href="${formUrls.list}" title="${strings.view_all_accounts_title}">${strings.view_all_accounts}</a></span>
</#if>
</form>
</section>
<section id="search-accounts">
<form method="POST" action="${formUrls.list}" class="customForm" role="search accounts">
<input type="text" name="searchTerm" />
<input class="submit" type="submit" value="${strings.search_accounts_button}"/>
<!--
When searchTerm changes,
set pageIndex to 1
set orderDirection to "ASC"
set orderField to "email"
submit the form (submit action is "list")
-->
</form>
</section>
<#if searchTerm?has_content>
<section id="search-feedback">
<p>${strings.accounts_search_results} "<strong>${searchTerm}</strong>" | <span><a href="${formUrls.list}" title="${strings.view_all_accounts_title}">${strings.view_all_accounts}</a></span></p>
</section>
</#if>
<form method="POST" action="${formUrls.list}" id="account-display" class="customForm" role="accounts display">
<@p.accountsNav />
<table id="account">
<caption>${strings.account_management}</caption>
<thead>
<tr>
<th scope="col"> <input class="delete-all hidden" type="checkbox" name="delete-all">
${strings.email_address}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=email&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=email&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.first_name}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=firstName&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=firstName&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.last_name}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=lastName&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=lastName&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.status}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=status&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=status&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">${strings.roles}</th>
<th scope="col">
${strings.login_count}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=count&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=count&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.last_login}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=lastLogin&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=lastLogin&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
</tr>
</thead>
<tbody>
<#list accounts as account>
<tr>
<td>
<#if account.deletable>
<input type="checkbox" name="deleteAccount" value="${account.uri}" title="${strings.select_account_to_delete}"/>
<#assign disableDeleteAccount = '' />
<!-- ignored unless submit action is formUrls.delete -->
<#else>
<#assign disableDeleteAccount = 'class="disable-delete"' />
</#if>
<#if account.editUrl != "">
<a ${disableDeleteAccount} href="${account.editUrl}" title="${strings.click_to_view_account}">${account.emailAddress}</a>
<!-- when this link is clicked, editAccount is noticed and all other fields are ignored. -->
<#else>
${account.emailAddress}
</#if>
</td>
<td>${account.firstName}</td>
<td>${account.lastName}</td>
<td>${account.status}</td>
<td>
<#list account.permissionSets as permissionSet>
<div>${permissionSet}</div>
</#list>
</td>
<td>${account.loginCount}</td>
<td>
<#if account.lastLoginTime??>
${account.lastLoginTime?date?string.medium}
<br />${account.lastLoginTime?time?string.short}
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
<@p.accountsNav />
</form>
<script type="text/javascript">
confirm_delete_account_singular = "${strings.confirm_delete_account_singular}"
confirm_delete_account_plural = "${strings.confirm_delete_account_plural}"
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for displaying list of user accounts -->
<#import "userAccounts-accountsNav.ftl" as p>
<#assign strings = i18n() />
<form method="POST" action="${formUrls.add}" id="add-account" class="customForm" role="Add account">
<h3><span>${strings.user_accounts_link} | </span><input type="submit" class="submit add-account" value="${strings.add_new_account}" /></h3>
</form>
<#if newUserAccount?? >
<section class="account-feedback">
<p>
${strings.new_account_1}
<a href="${newUserAccount.editUrl}" title="${strings.new_account_title}">${newUserAccount.firstName} ${newUserAccount.lastName}</a>
${strings.new_account_2}
<#if emailWasSent?? >${strings.new_account_notification(newUserAccount.emailAddress)}</#if>
</p>
</section>
</#if>
<#if updatedUserAccount?? >
<section class="account-feedback">
<p>
${strings.updated_account_1}
<a href="${updatedUserAccount.editUrl}" title="${strings.updated_account_title}}">${updatedUserAccount.firstName} ${updatedUserAccount.lastName}</a>
${strings.updated_account_2}
<#if emailWasSent?? >${strings.updated_account_notification(updatedUserAccount.emailAddress)}</#if>
</p>
</section>
</#if>
<#if deletedAccountCount?? >
<section class="account-feedback">
<p>
${strings.deleted_accounts(deletedAccountCount)}
</p>
</section>
</#if>
<section id="filter-roles">
<form method="POST" action="${formUrls.list}" class="customForm" role="filter by roles">
<select name="roleFilterUri" id="roleFilterUri">
<option value="" <#if roleFilterUri = "">selected</#if> >${strings.filter_by_roles}</option>
<#list roles as role>
<option value="${formUrls.list}?roleFilterUri=${role.uri?url}" <#if roleFilterUri = role.uri>selected</#if> >${role.label}</option>
</#list>
<!--
When roleFilterUri or searchTerm changes,
pageIndex should be set to 1. When any of these changes (including pageIndex), the form
should be submitted.
-->
</select>
<#if roleFilterUri?has_content>
<span><a href="${formUrls.list}" title="${strings.view_all_accounts_title}">${strings.view_all_accounts}</a></span>
</#if>
</form>
</section>
<section id="search-accounts">
<form method="POST" action="${formUrls.list}" class="customForm" role="search accounts">
<input type="text" name="searchTerm" />
<input class="submit" type="submit" value="${strings.search_accounts_button}"/>
<!--
When searchTerm changes,
set pageIndex to 1
set orderDirection to "ASC"
set orderField to "email"
submit the form (submit action is "list")
-->
</form>
</section>
<#if searchTerm?has_content>
<section id="search-feedback">
<p>${strings.accounts_search_results} "<strong>${searchTerm}</strong>" | <span><a href="${formUrls.list}" title="${strings.view_all_accounts_title}">${strings.view_all_accounts}</a></span></p>
</section>
</#if>
<form method="POST" action="${formUrls.list}" id="account-display" class="customForm" role="accounts display">
<@p.accountsNav />
<table id="account">
<caption>${strings.account_management}</caption>
<thead>
<tr>
<th scope="col"> <input class="delete-all hidden" type="checkbox" name="delete-all">
${strings.email_address}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=email&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=email&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.first_name}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=firstName&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=firstName&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.last_name}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=lastName&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=lastName&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.status}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=status&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=status&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">${strings.roles}</th>
<th scope="col">
${strings.login_count}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=count&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=count&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
<th scope="col">
${strings.last_login}
<nav class="account-alpha-browse">
<a class="sort-asc" href="?accountsPerPage=${accountsPerPage}&orderField=lastLogin&orderDirection=ASC" title="${strings.ascending_order}"></a>
<a class="sort-desc" href="?accountsPerPage=${accountsPerPage}&orderField=lastLogin&orderDirection=DESC" title="${strings.descending_order}"></a>
</nav>
</th>
</tr>
</thead>
<tbody>
<#list accounts as account>
<tr>
<td>
<#if account.deletable>
<input type="checkbox" name="deleteAccount" value="${account.uri}" title="${strings.select_account_to_delete}"/>
<#assign disableDeleteAccount = '' />
<!-- ignored unless submit action is formUrls.delete -->
<#else>
<#assign disableDeleteAccount = 'class="disable-delete"' />
</#if>
<#if account.editUrl != "">
<a ${disableDeleteAccount} href="${account.editUrl}" title="${strings.click_to_view_account}">${account.emailAddress}</a>
<!-- when this link is clicked, editAccount is noticed and all other fields are ignored. -->
<#else>
${account.emailAddress}
</#if>
</td>
<td>${account.firstName}</td>
<td>${account.lastName}</td>
<td>${account.status}</td>
<td>
<#list account.permissionSets as permissionSet>
<div>${permissionSet}</div>
</#list>
</td>
<td>${account.loginCount}</td>
<td>
<#if account.lastLoginTime??>
${account.lastLoginTime?date?string.medium}
<br />${account.lastLoginTime?time?string.short}
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
<@p.accountsNav />
</form>
<script type="text/javascript">
confirm_delete_account_singular = "${strings.confirm_delete_account_singular}"
confirm_delete_account_plural = "${strings.confirm_delete_account_plural}"
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/account/accountUtils.js"></script>')}

View file

@ -1,91 +1,91 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for editing a user account -->
<#assign strings = i18n() />
<h3>${strings.myAccount_heading}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<#if confirmChange??>
<#assign confirmMessage = strings.myAccount_confirm_changes />
</#if>
<#if confirmEmailSent??>
<#assign confirmMessage = strings.myAccount_confirm_changes_plus_note(emailAddress) />
</#if>
<#if confirmMessage?has_content>
<section class="account-feedback" role="alert">
<p><img class="middle" src="${urls.images}/iconConfirmation.png" alt="${strings.alt_confirmation}"/> ${confirmMessage}</p>
</section>
</#if>
<section id="my-account" role="region">
<form id="main-form" method="POST" action="${formUrls.myAccount}" class="customForm" role="my account">
<#if showProxyPanel?? >
<#include "userAccounts-myProxiesPanel.ftl">
</#if>
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<p class="note">${strings.email_change_will_be_confirmed}</p>
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#if !externalAuth??>
<label for="new-password">${strings.new_password}</label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}<br />${strings.leave_password_unchanged}</p>
<label for="confirm-password">${strings.confirm_password}</label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</#if>
<p>
<input type="submit" id="submitMyAccount" name="submitMyAccount" value="${strings.save_changes}" class="submit" disabled />
${strings.or}
<a class="cancel" href="${urls.referringPage}" title="${strings.cancel_title}">${strings.cancel_link}</a>
</p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for editing a user account -->
<#assign strings = i18n() />
<h3>${strings.myAccount_heading}</h3>
<#if errorEmailIsEmpty??>
<#assign errorMessage = strings.error_no_email />
<#elseif errorEmailInUse??>
<#assign errorMessage = strings.error_email_already_exists />
<#elseif errorEmailInvalidFormat??>
<#assign errorMessage = strings.error_invalid_email(emailAddress) />
<#elseif errorFirstNameIsEmpty??>
<#assign errorMessage = strings.error_no_first_name />
<#elseif errorLastNameIsEmpty??>
<#assign errorMessage = strings.error_no_last_name />
<#elseif errorNoRoleSelected??>
<#assign errorMessage = strings.error_no_role />
<#elseif errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<#if confirmChange??>
<#assign confirmMessage = strings.myAccount_confirm_changes />
</#if>
<#if confirmEmailSent??>
<#assign confirmMessage = strings.myAccount_confirm_changes_plus_note(emailAddress) />
</#if>
<#if confirmMessage?has_content>
<section class="account-feedback" role="alert">
<p><img class="middle" src="${urls.images}/iconConfirmation.png" alt="${strings.alt_confirmation}"/> ${confirmMessage}</p>
</section>
</#if>
<section id="my-account" role="region">
<form id="main-form" method="POST" action="${formUrls.myAccount}" class="customForm" role="my account">
<#if showProxyPanel?? >
<#include "userAccounts-myProxiesPanel.ftl">
</#if>
<label for="email-address">${strings.email_address}<span class="requiredHint"> *</span></label>
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
<p class="note">${strings.email_change_will_be_confirmed}</p>
<label for="first-name">${strings.first_name}<span class="requiredHint"> *</span></label>
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
<label for="last-name">${strings.last_name}<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#if !externalAuth??>
<label for="new-password">${strings.new_password}</label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}<br />${strings.leave_password_unchanged}</p>
<label for="confirm-password">${strings.confirm_password}</label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
</#if>
<p>
<input type="submit" id="submitMyAccount" name="submitMyAccount" value="${strings.save_changes}" class="submit" disabled />
${strings.or}
<a class="cancel" href="${urls.referringPage}" title="${strings.cancel_title}">${strings.cancel_link}</a>
</p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/account/accountListenerSetup.js"></script>')}

View file

@ -1,21 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an password has been created. -->
<#assign strings = i18n() />
<#assign subject = strings.password_created_subject(siteName) />
<#assign html = strings.password_created_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.password_created_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that an password has been created. -->
<#assign strings = i18n() />
<#assign subject = strings.password_created_subject(siteName) />
<#assign html = strings.password_created_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.password_created_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />

View file

@ -1,21 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that a password has been reset. -->
<#assign strings = i18n() />
<#assign subject = strings.password_reset_complete_subject(siteName) />
<#assign html = strings.password_reset_complete_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.password_reset_complete_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation that a password has been reset. -->
<#assign strings = i18n() />
<#assign subject = strings.password_reset_complete_subject(siteName) />
<#assign html = strings.password_reset_complete_email_html(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<#assign text = strings.password_reset_complete_email_text(siteName,
subject,
userAccount.firstName,
userAccount.lastName,
userAccount.emailAddress) />
<@email subject=subject html=html text=text />

View file

@ -1,46 +1,46 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3>${strings.reset_your_password}</h3>
<p>${strings.enter_new_password(userAccount.emailAddress)}</p>
<#if errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}"/>
<p>${errorMessage}</p>
</section>
</#if>
<section id="reset-password" role="region">
<form method="POST" action="${formUrls.resetPassword}" class="customForm" role="create password">
<input type="hidden" name="user" value="${userAccount.emailAddress}" />
<input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" />
<label for="new-password">${strings.new_password}<span class="requiredHint"> *</span></label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
<p><input type="submit" name="submit" value="${strings.save_changes}" class="submit"/></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for adding a user account -->
<#assign strings = i18n() />
<h3>${strings.reset_your_password}</h3>
<p>${strings.enter_new_password(userAccount.emailAddress)}</p>
<#if errorPasswordIsEmpty??>
<#assign errorMessage = strings.error_no_password />
<#elseif errorPasswordIsWrongLength??>
<#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) />
<#elseif errorPasswordsDontMatch??>
<#assign errorMessage = strings.error_password_mismatch />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${strings.alt_error_alert}"/>
<p>${errorMessage}</p>
</section>
</#if>
<section id="reset-password" role="region">
<form method="POST" action="${formUrls.resetPassword}" class="customForm" role="create password">
<input type="hidden" name="user" value="${userAccount.emailAddress}" />
<input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" />
<label for="new-password">${strings.new_password}<span class="requiredHint"> *</span></label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p class="note">${strings.minimum_password_length(minimumLength)}</p>
<label for="confirm-password">${strings.confirm_password}<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
<p><input type="submit" name="submit" value="${strings.save_changes}" class="submit"/></p>
<p class="requiredHint">* ${strings.required_fields}</p>
</form>
</section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}

View file

@ -1,85 +1,85 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template viewing the authorization mechanisms: current identifiers, factories, policies, etc. -->
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/showAuth.css" />')}
<h2>Authorization Info</h2>
<section id="show-auth" role="region">
<h4>${i18n().current_user}</h4>
<table summary="Information about the current user">
<#if currentUser?has_content>
<tr><th>URI:</th><td>${currentUser.uri}</td></tr>
<tr><th>${i18n().first_name}:</th><td>${currentUser.firstName}</td></tr>
<tr><th>${i18n().last_name}:</th><td>${currentUser.lastName}</td></tr>
<tr><th>${i18n().email_address}:</th><td>${currentUser.emailAddress}</td></tr>
<tr><th>${i18n().external_auth_id}:</th><td>${currentUser.externalAuthId}</td></tr>
<tr><th>${i18n().login_count}:</th><td>${currentUser.loginCount}</td></tr>
<#list currentUser.permissionSetUris as role>
<tr><th>${i18n().user_role}:</th><td>${role}</td></tr>
</#list>
<#else>
<tr><th>${i18n().not_logged_in}</th></tr>
</#if>
</table>
<h4>${i18n().identifiers}:</h4>
<table summary="Identifiers">
<#list identifiers as identifier>
<tr>
<td>${identifier}</td>
</tr>
</#list>
</table>
<h4>
${i18n().associated_individuals}:
<#if matchingProperty??>
(${i18n().match_by(matchingProperty)})
<#else>
(${i18n().matching_prop_not_defined})
</#if>
</h4>
<table summary="Associated Individuals">
<#if associatedIndividuals?has_content>
<#list associatedIndividuals as associatedIndividual>
<tr>
<td>${associatedIndividual.uri}</td>
<#if associatedIndividual.editable>
<td>${i18n().may_edit}</td>
<#else>
<td>${i18n().may_not_edit}</td>
</#if>
</tr>
</#list>
<#else>
<tr><td>${i18n().none}</td></tr>
</#if>
</table>
<h4>${i18n().identifier_factories}:</h4>
<table summary="Active Identifier Factories">
<#list factories as factory>
<tr>
<td>${factory}</td>
</tr>
</#list>
</table>
<h4>${i18n().policies}:</h4>
<table summary="Policies" width="100%">
<#list policies as policy>
<tr>
<td>${policy}</td>
</tr>
</#list>
</table>
<h4>${i18n().authenticator}:</h4>
<table summary="Authenticator" width="100%">
<tr>
<td>${authenticator}</td>
</tr>
</table>
</section>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template viewing the authorization mechanisms: current identifiers, factories, policies, etc. -->
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/showAuth.css" />')}
<h2>Authorization Info</h2>
<section id="show-auth" role="region">
<h4>${i18n().current_user}</h4>
<table summary="Information about the current user">
<#if currentUser?has_content>
<tr><th>URI:</th><td>${currentUser.uri}</td></tr>
<tr><th>${i18n().first_name}:</th><td>${currentUser.firstName}</td></tr>
<tr><th>${i18n().last_name}:</th><td>${currentUser.lastName}</td></tr>
<tr><th>${i18n().email_address}:</th><td>${currentUser.emailAddress}</td></tr>
<tr><th>${i18n().external_auth_id}:</th><td>${currentUser.externalAuthId}</td></tr>
<tr><th>${i18n().login_count}:</th><td>${currentUser.loginCount}</td></tr>
<#list currentUser.permissionSetUris as role>
<tr><th>${i18n().user_role}:</th><td>${role}</td></tr>
</#list>
<#else>
<tr><th>${i18n().not_logged_in}</th></tr>
</#if>
</table>
<h4>${i18n().identifiers}:</h4>
<table summary="Identifiers">
<#list identifiers as identifier>
<tr>
<td>${identifier}</td>
</tr>
</#list>
</table>
<h4>
${i18n().associated_individuals}:
<#if matchingProperty??>
(${i18n().match_by(matchingProperty)})
<#else>
(${i18n().matching_prop_not_defined})
</#if>
</h4>
<table summary="Associated Individuals">
<#if associatedIndividuals?has_content>
<#list associatedIndividuals as associatedIndividual>
<tr>
<td>${associatedIndividual.uri}</td>
<#if associatedIndividual.editable>
<td>${i18n().may_edit}</td>
<#else>
<td>${i18n().may_not_edit}</td>
</#if>
</tr>
</#list>
<#else>
<tr><td>${i18n().none}</td></tr>
</#if>
</table>
<h4>${i18n().identifier_factories}:</h4>
<table summary="Active Identifier Factories">
<#list factories as factory>
<tr>
<td>${factory}</td>
</tr>
</#list>
</table>
<h4>${i18n().policies}:</h4>
<table summary="Policies" width="100%">
<#list policies as policy>
<tr>
<td>${policy}</td>
</tr>
</#list>
</table>
<h4>${i18n().authenticator}:</h4>
<table summary="Authenticator" width="100%">
<tr>
<td>${authenticator}</td>
</tr>
</table>
</section>

View file

@ -1,31 +1,31 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template viewing the authorization mechanisms: current identifiers, factories, policies, etc. -->
<style media="screen" type="text/css">
table.threadInfo {
margin: 10px 10px 10px 10px;
border: medium groove black;
text-align: left;
}
table.threadInfo th, td {
padding: 4px 10px 4px 10px;
}
table.threadInfo th {
font-weight: bolder;
}
</style>
<h2>${i18n().background_threads}</h2>
<section id="show-threads" role="region">
<#list threads as threadInfo>
<table class="threadInfo ${threadInfo.workLevel}" summary="Thread ${threadInfo.name}">
<tr><th>${i18n().name}</th><td>${threadInfo.name}</td></tr>
<tr><th>${i18n().work_level}</th><td>${threadInfo.workLevel}</td></tr>
<tr><th>${i18n().since}</th><td>${threadInfo.since}</td></tr>
<tr><th>${i18n().flags}</th><td>${threadInfo.flags}</td></tr>
</table>
</#list>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template viewing the authorization mechanisms: current identifiers, factories, policies, etc. -->
<style media="screen" type="text/css">
table.threadInfo {
margin: 10px 10px 10px 10px;
border: medium groove black;
text-align: left;
}
table.threadInfo th, td {
padding: 4px 10px 4px 10px;
}
table.threadInfo th {
font-weight: bolder;
}
</style>
<h2>${i18n().background_threads}</h2>
<section id="show-threads" role="region">
<#list threads as threadInfo>
<table class="threadInfo ${threadInfo.workLevel}" summary="Thread ${threadInfo.name}">
<tr><th>${i18n().name}</th><td>${threadInfo.name}</td></tr>
<tr><th>${i18n().work_level}</th><td>${threadInfo.workLevel}</td></tr>
<tr><th>${i18n().since}</th><td>${threadInfo.since}</td></tr>
<tr><th>${i18n().flags}</th><td>${threadInfo.flags}</td></tr>
</table>
</#list>
</section>

View file

@ -1,68 +1,68 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--
Template for the page that displays the StartupStatus on request.
Unlike the "raw" page, this one assumes that the usual Freemarker framework is in place.
-->
<#macro statusItem item>
<#if item.level = "FATAL">
<#assign color = "error" >
<#elseif item.level = "WARNING">
<#assign color = "warning" >
<#elseif item.level = "INFO">
<#assign color = "info" >
<#elseif item.level = "NOT_EXECUTED">
<#assign color = "not_executed" >
<#else>
<#assign color = "" >
</#if>
<li class="item ${color}" role="listitem">
<h4>${item.level}: ${item.shortSourceName}</h4>
<ul class="item-spec" role="navigation">
<li role="listitem">${item.message}</li>
<li role="listitem">${item.sourceName}</li>
<#if item.cause?has_content>
<li role="listitem"><pre>${item.cause}</pre></li>
</#if>
</ul>
</li>
</#macro>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/startupStatus.css" />')}
<#if status.errorItems?has_content>
<h2>${i18n().fatal_error}</h2>
<p>${i18n().fatal_error_detected(applicationName)}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.errorItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<#if status.warningItems?has_content>
<h2>${i18n().warning}</h2>
<p>${i18n().warning_issued(applicationName)}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation"><#list status.warningItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<h2>${i18n().startup_trace}</h2>
<p>${i18n().full_list_startup}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.statusItems as item>
<@statusItem item=item />
</#list>
</ul>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--
Template for the page that displays the StartupStatus on request.
Unlike the "raw" page, this one assumes that the usual Freemarker framework is in place.
-->
<#macro statusItem item>
<#if item.level = "FATAL">
<#assign color = "error" >
<#elseif item.level = "WARNING">
<#assign color = "warning" >
<#elseif item.level = "INFO">
<#assign color = "info" >
<#elseif item.level = "NOT_EXECUTED">
<#assign color = "not_executed" >
<#else>
<#assign color = "" >
</#if>
<li class="item ${color}" role="listitem">
<h4>${item.level}: ${item.shortSourceName}</h4>
<ul class="item-spec" role="navigation">
<li role="listitem">${item.message}</li>
<li role="listitem">${item.sourceName}</li>
<#if item.cause?has_content>
<li role="listitem"><pre>${item.cause}</pre></li>
</#if>
</ul>
</li>
</#macro>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/startupStatus.css" />')}
<#if status.errorItems?has_content>
<h2>${i18n().fatal_error}</h2>
<p>${i18n().fatal_error_detected(applicationName)}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.errorItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<#if status.warningItems?has_content>
<h2>${i18n().warning}</h2>
<p>${i18n().warning_issued(applicationName)}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation"><#list status.warningItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<h2>${i18n().startup_trace}</h2>
<p>${i18n().full_list_startup}</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.statusItems as item>
<@statusItem item=item />
</#list>
</ul>

View file

@ -1,118 +1,118 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--
Template for the raw page that displays the StartupStatus if there
are warnings or errors.
"raw" because this template works outside of the usual framework, in
case the Freemarker context didn't initialize properly.
This file can't even include a reference to an external CSS file, in case
the servlet routing filters are broken.
-->
<#macro statusItem item>
<#if item.level = "FATAL">
<#assign color = "error" >
<#elseif item.level = "WARNING">
<#assign color = "warning" >
<#elseif item.level = "INFO">
<#assign color = "info" >
<#elseif item.level = "NOT_EXECUTED">
<#assign color = "not_executed" >
<#else>
<#assign color = "" >
</#if>
<li class="item ${color}" role="listitem">
<h4>${item.level}: ${item.shortSourceName}</h4>
<ul class="item-spec" role="navigation">
<li role="listitem">${item.message}</li>
<li role="listitem">${item.sourceName}</li>
<#if item.cause?has_content>
<li role="listitem"><pre>${item.cause}</pre></li>
</#if>
</ul>
</li>
</#macro>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Startup Status</title>
<style TYPE="text/css">
#startup-trace {
width: 100%;
}
#startup-trace h4 {
padding: .5em;
margin-bottom: 0;
padding-bottom: .5em;
padding-top: 1em;
}
#startup-trace ul.item-spec {
margin-bottom: 1em;
}
#startup-trace ul.item-spec li{
padding-left: .5em;
padding-bottom: .4em;
}
#startup-trace li.error {
background-color: #FFDDDD;
}
#startup-trace li.warning{
background-color: #FFFFDD;
}
#startup-trace li.info {
background-color: #DDFFDD;
}
#startup-trace li.not_executed {
background-color: #F3F3F0;
}
</style>
</head>
<body>
<#if status.errorItems?has_content>
<h2>Fatal error</h2>
<p>${applicationName} detected a fatal error during startup.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.errorItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<#if status.warningItems?has_content>
<h2>Warning</h2>
<p>${applicationName} issued warnings during startup.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation"><#list status.warningItems as item>
<@statusItem item=item />
</#list>
</ul>
<#-- If there were no fatal errors, let them go forward from here. -->
<#if showLink>
<p><a href="${url}" title="continue">Continue</a></p>
</#if>
</#if>
<h2>Startup trace</h2>
<p>The full list of startup events and messages.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.statusItems as item>
<@statusItem item=item />
</#list>
</ul>
</body>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--
Template for the raw page that displays the StartupStatus if there
are warnings or errors.
"raw" because this template works outside of the usual framework, in
case the Freemarker context didn't initialize properly.
This file can't even include a reference to an external CSS file, in case
the servlet routing filters are broken.
-->
<#macro statusItem item>
<#if item.level = "FATAL">
<#assign color = "error" >
<#elseif item.level = "WARNING">
<#assign color = "warning" >
<#elseif item.level = "INFO">
<#assign color = "info" >
<#elseif item.level = "NOT_EXECUTED">
<#assign color = "not_executed" >
<#else>
<#assign color = "" >
</#if>
<li class="item ${color}" role="listitem">
<h4>${item.level}: ${item.shortSourceName}</h4>
<ul class="item-spec" role="navigation">
<li role="listitem">${item.message}</li>
<li role="listitem">${item.sourceName}</li>
<#if item.cause?has_content>
<li role="listitem"><pre>${item.cause}</pre></li>
</#if>
</ul>
</li>
</#macro>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Startup Status</title>
<style TYPE="text/css">
#startup-trace {
width: 100%;
}
#startup-trace h4 {
padding: .5em;
margin-bottom: 0;
padding-bottom: .5em;
padding-top: 1em;
}
#startup-trace ul.item-spec {
margin-bottom: 1em;
}
#startup-trace ul.item-spec li{
padding-left: .5em;
padding-bottom: .4em;
}
#startup-trace li.error {
background-color: #FFDDDD;
}
#startup-trace li.warning{
background-color: #FFFFDD;
}
#startup-trace li.info {
background-color: #DDFFDD;
}
#startup-trace li.not_executed {
background-color: #F3F3F0;
}
</style>
</head>
<body>
<#if status.errorItems?has_content>
<h2>Fatal error</h2>
<p>${applicationName} detected a fatal error during startup.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.errorItems as item>
<@statusItem item=item />
</#list>
</ul>
</#if>
<#if status.warningItems?has_content>
<h2>Warning</h2>
<p>${applicationName} issued warnings during startup.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation"><#list status.warningItems as item>
<@statusItem item=item />
</#list>
</ul>
<#-- If there were no fatal errors, let them go forward from here. -->
<#if showLink>
<p><a href="${url}" title="continue">Continue</a></p>
</#if>
</#if>
<h2>Startup trace</h2>
<p>The full list of startup events and messages.</p>
<ul id="startup-trace" cellspacing="0" class="trace" role="navigation">
<#list status.statusItems as item>
<@statusItem item=item />
</#list>
</ul>
</body>
</html>

View file

@ -1,60 +1,60 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Crop the replacement main image for an Individual, to produce a thumbnail. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jcrop/jquery.Jcrop.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/cropImage.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />',
'<link rel="stylesheet" href="${urls.base}/js/jquery_plugins/jcrop/jquery.Jcrop.css" />')}
<#--Reduce original image to fit in the page layout
If the width of the image is bigger or equal to 500 pixels,
the script below will reduce the width to 500 pixels and
the height will be in proportion to the new height-->
<#--<#macro newImageSize>
<#if (imageWidth >= 500)>
width="500" height="${(500*imageHeight)/imageWidth}"
</#if>
</#macro>-->
<#assign i18n = i18n() >
<section id="photoCroppingContainer" role="region">
<h2>${i18n.upload_heading}</h2>
<!-- This is the image we're attaching Jcrop to -->
<section id="photoCroppingPreview" role="region">
<p class="photoCroppingTitleBody">${i18n.cropping_caption}</p>
<section class="photoCroppedPreview" role="region">
<img src="${imageUrl}" id="preview" alt="${i18n.alt_image_to_crop}"/>
</section>
<section id="photoCroppingHowTo" role="region">
<p class="photoCroppingNote">${i18n.cropping_note}</p>
<form id="cropImage" action="${formAction}" method="post" role="form">
<!-- Javascript will populate these values -->
<input type="hidden" name="x" value="" />
<input type="hidden" name="y" value="" />
<input type="hidden" name="w" value="" />
<input type="hidden" name="h" value="" />
<input class="submit" type="submit" value="${i18n.submit_save}">
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
</section>
<section id="photoCropping" role="region">
<img src="${imageUrl}" id="cropbox" alt="${i18n.alt_preview_crop}" />
</section
</section>
<div class="clear"></div>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Crop the replacement main image for an Individual, to produce a thumbnail. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jcrop/jquery.Jcrop.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/cropImage.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />',
'<link rel="stylesheet" href="${urls.base}/js/jquery_plugins/jcrop/jquery.Jcrop.css" />')}
<#--Reduce original image to fit in the page layout
If the width of the image is bigger or equal to 500 pixels,
the script below will reduce the width to 500 pixels and
the height will be in proportion to the new height-->
<#--<#macro newImageSize>
<#if (imageWidth >= 500)>
width="500" height="${(500*imageHeight)/imageWidth}"
</#if>
</#macro>-->
<#assign i18n = i18n() >
<section id="photoCroppingContainer" role="region">
<h2>${i18n.upload_heading}</h2>
<!-- This is the image we're attaching Jcrop to -->
<section id="photoCroppingPreview" role="region">
<p class="photoCroppingTitleBody">${i18n.cropping_caption}</p>
<section class="photoCroppedPreview" role="region">
<img src="${imageUrl}" id="preview" alt="${i18n.alt_image_to_crop}"/>
</section>
<section id="photoCroppingHowTo" role="region">
<p class="photoCroppingNote">${i18n.cropping_note}</p>
<form id="cropImage" action="${formAction}" method="post" role="form">
<!-- Javascript will populate these values -->
<input type="hidden" name="x" value="" />
<input type="hidden" name="y" value="" />
<input type="hidden" name="w" value="" />
<input type="hidden" name="h" value="" />
<input class="submit" type="submit" value="${i18n.submit_save}">
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
</section>
<section id="photoCropping" role="region">
<img src="${imageUrl}" id="cropbox" alt="${i18n.alt_preview_crop}" />
</section
</section>
<div class="clear"></div>

View file

@ -1,41 +1,41 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Upload a replacement main image for an Individual. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />')}
<#assign i18n = i18n() >
<section id="photoUploadContainer" role="region">
<h2>${i18n.upload_heading}</h2>
<#if errorMessage??>
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="${i18n.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="photoUploadDefaultImage" role="region">
<h3>${i18n.current_photo}</h3>
<img src="${thumbnailUrl}" width="115" height="115" alt="${i18n.alt_thumbnail_photo}" />
</section>
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
<label>${i18n.upload_photo} <span>${i18n.photo_types}</span></label>
<input id="datafile" type="file" name="datafile" size="30" />
<p class="note">${i18n.maximum_file_size(maxFileSize)}<br />
${i18n.minimum_image_dimensions(thumbnailWidth, thumbnailHeight)}</p>
<input class="submit" type="submit" value="${i18n.submit_upload}"/>
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
<script type="text/javascript">
i18n_confirmDelete = ${i18n.confirm_delete}
</script>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Upload a replacement main image for an Individual. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />')}
<#assign i18n = i18n() >
<section id="photoUploadContainer" role="region">
<h2>${i18n.upload_heading}</h2>
<#if errorMessage??>
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="${i18n.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="photoUploadDefaultImage" role="region">
<h3>${i18n.current_photo}</h3>
<img src="${thumbnailUrl}" width="115" height="115" alt="${i18n.alt_thumbnail_photo}" />
</section>
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
<label>${i18n.upload_photo} <span>${i18n.photo_types}</span></label>
<input id="datafile" type="file" name="datafile" size="30" />
<p class="note">${i18n.maximum_file_size(maxFileSize)}<br />
${i18n.minimum_image_dimensions(thumbnailWidth, thumbnailHeight)}</p>
<input class="submit" type="submit" value="${i18n.submit_upload}"/>
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
<script type="text/javascript">
i18n_confirmDelete = ${i18n.confirm_delete}
</script>

View file

@ -1,42 +1,42 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Upload a replacement main image for an Individual. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />')}
<#assign i18n = i18n() >
<section id="photoUpload" role="region">
<h2>${i18n.upload_heading}</h2>
<#if errorMessage??>
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="${i18n.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="photoUploadDefaultImage" role="region">
<h3>${i18n.current_photo}</h3>
<img src="${thumbnailUrl}" width="115" alt="${i18n.alt_thumbnail_photo}" />
<a class="thumbnail" href="${deleteUrl}">${i18n.delete_link}</a>
</section>
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
<label>${i18n.replace_photo} <span>${i18n.photo_types}</span></label>
<input type="file" name="datafile" size="30">
<p class="note">${i18n.maximum_file_size(maxFileSize)}<br />
${i18n.minimum_image_dimensions(thumbnailWidth, thumbnailHeight)}</p>
<input class="submit" type="submit" value="${i18n.submit_upload}">
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
<script type="text/javascript">
i18n_confirmDelete = "${i18n.confirm_delete}"
</script>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Upload a replacement main image for an Individual. -->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/uploadImages.css" />')}
<#assign i18n = i18n() >
<section id="photoUpload" role="region">
<h2>${i18n.upload_heading}</h2>
<#if errorMessage??>
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="${i18n.alt_error_alert}" />
<p>${errorMessage}</p>
</section>
</#if>
<section id="photoUploadDefaultImage" role="region">
<h3>${i18n.current_photo}</h3>
<img src="${thumbnailUrl}" width="115" alt="${i18n.alt_thumbnail_photo}" />
<a class="thumbnail" href="${deleteUrl}">${i18n.delete_link}</a>
</section>
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
<label>${i18n.replace_photo} <span>${i18n.photo_types}</span></label>
<input type="file" name="datafile" size="30">
<p class="note">${i18n.maximum_file_size(maxFileSize)}<br />
${i18n.minimum_image_dimensions(thumbnailWidth, thumbnailHeight)}</p>
<input class="submit" type="submit" value="${i18n.submit_upload}">
<span class="or"> ${i18n.or} <a class="cancel" href="${cancelUrl}" title="${i18n.cancel_title}">${i18n.cancel_link}</a></span>
</form>
</section>
<script type="text/javascript">
i18n_confirmDelete = "${i18n.confirm_delete}"
</script>

View file

@ -1,71 +1,71 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for login using internal vitro account (even when external auth is enabled). Accessible at /admin/login -->
<section id="internalLogin" role="region">
<h2>${i18n().internal_login}</h2>
<#if errorNoEmail??>
<#assign errorMessage = "${i18n().no_email_supplied}" />
</#if>
<#if errorNoPassword??>
<#assign errorMessage = "${i18n().no_password_supplied}" />
</#if>
<#if errorLoginDisabled??>
<#assign errorMessage = "${i18n().logins_temporarily_disabled}" />
</#if>
<#if errorLoginFailed??>
<#assign errorMessage = "${i18n().incorrect_email_password}" />
</#if>
<#if errorNewPasswordWrongLength??>
<#assign errorMessage = "${i18n().password_length(minPasswordLength, maxPasswordLength)}" />
</#if>
<#if errorNewPasswordsDontMatch??>
<#assign errorMessage = "${i18n().password_mismatch}" />
</#if>
<#if errorNewPasswordMatchesOld??>
<#assign errorMessage = "${i18n().new_pwd_matches_existing}" />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}"/>
<p>${errorMessage}</p>
</section>
</#if>
<#if !newPasswordRequired??>
<p>${i18n().enter_email_password}</p>
<#else>
<p>${i18n().change_password}</p>
</#if>
<form method="post" action="${controllerUrl}">
<#if newPasswordRequired??>
<label for="newPassword">${i18n().new_password}</label>
<input name="newPassword" id="newPassword" class="text-field" type="password" required autofocus />
<p class="password-note">${i18n().minimum_password_length(minPasswordLength)}</p>
<label for="confirmPassword">${i18n().confirm_password}</label>
<input id="confirmPassword" name="confirmPassword" class="text-field" type="password" required />
<input id="email" name="email" type="hidden" value="${email!}" />
<input id="password" name="password" type="hidden" value="${password!}" />
<#else>
<label for="email">${i18n().email_capitalized}</label>
<input id="email" name="email" class="text-field focus" type="text" value="${email!}" required autofocus />
<label for="password">${i18n().password_capitalized}</label>
<input id="password" name="password" class="text-field" type="password" required />
</#if>
<p class="submit"><input name="loginForm" type="submit" class="green button" value="${i18n().login_button}"/></p>
</form>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for login using internal vitro account (even when external auth is enabled). Accessible at /admin/login -->
<section id="internalLogin" role="region">
<h2>${i18n().internal_login}</h2>
<#if errorNoEmail??>
<#assign errorMessage = "${i18n().no_email_supplied}" />
</#if>
<#if errorNoPassword??>
<#assign errorMessage = "${i18n().no_password_supplied}" />
</#if>
<#if errorLoginDisabled??>
<#assign errorMessage = "${i18n().logins_temporarily_disabled}" />
</#if>
<#if errorLoginFailed??>
<#assign errorMessage = "${i18n().incorrect_email_password}" />
</#if>
<#if errorNewPasswordWrongLength??>
<#assign errorMessage = "${i18n().password_length(minPasswordLength, maxPasswordLength)}" />
</#if>
<#if errorNewPasswordsDontMatch??>
<#assign errorMessage = "${i18n().password_mismatch}" />
</#if>
<#if errorNewPasswordMatchesOld??>
<#assign errorMessage = "${i18n().new_pwd_matches_existing}" />
</#if>
<#if errorMessage?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}"/>
<p>${errorMessage}</p>
</section>
</#if>
<#if !newPasswordRequired??>
<p>${i18n().enter_email_password}</p>
<#else>
<p>${i18n().change_password}</p>
</#if>
<form method="post" action="${controllerUrl}">
<#if newPasswordRequired??>
<label for="newPassword">${i18n().new_password}</label>
<input name="newPassword" id="newPassword" class="text-field" type="password" required autofocus />
<p class="password-note">${i18n().minimum_password_length(minPasswordLength)}</p>
<label for="confirmPassword">${i18n().confirm_password}</label>
<input id="confirmPassword" name="confirmPassword" class="text-field" type="password" required />
<input id="email" name="email" type="hidden" value="${email!}" />
<input id="password" name="password" type="hidden" value="${password!}" />
<#else>
<label for="email">${i18n().email_capitalized}</label>
<input id="email" name="email" class="text-field focus" type="text" value="${email!}" required autofocus />
<label for="password">${i18n().password_capitalized}</label>
<input id="password" name="password" class="text-field" type="password" required />
</#if>
<p class="submit"><input name="loginForm" type="submit" class="green button" value="${i18n().login_button}"/></p>
</form>
</section>

View file

@ -1,19 +1,19 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Fake External Authentication page. -->
<section role="region">
<h2>${i18n().fake_external_auth}</h2>
<p>
${i18n().enter_id_to_login}
</p>
<form action="${controllerUrl}">
${i18n().username}:
<input type="text" name="username" />
<input type="submit" value="${i18n().submit_button}" />
<input type="submit" name="cancel" value="${i18n().cancel_link}" />
</form>
<br/>
</section>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Fake External Authentication page. -->
<section role="region">
<h2>${i18n().fake_external_auth}</h2>
<p>
${i18n().enter_id_to_login}
</p>
<form action="${controllerUrl}">
${i18n().username}:
<input type="text" name="username" />
<input type="submit" value="${i18n().submit_button}" />
<input type="submit" name="cancel" value="${i18n().cancel_link}" />
</form>
<br/>
</section>

View file

@ -1,15 +1,15 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Save to variable indicated in generator -->
<#assign htmlExists = false/>
<#if variableName?has_content>
<#assign htmlExists = true />
</#if>
<#if htmlExists>
${.globals[variableName]}
<#else>
${i18n().no_html_specified}
</#if>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Save to variable indicated in generator -->
<#assign htmlExists = false/>
<#if variableName?has_content>
<#assign htmlExists = true />
</#if>
<#if htmlExists>
${.globals[variableName]}
<#else>
${i18n().no_html_specified}
</#if>

View file

@ -1,53 +1,53 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- List individuals in the requested class. -->
<#import "lib-list.ftl" as l>
<#include "individualList-checkForData.ftl">
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseIndex.css" />')}
<section class="individualList">
<h2>${title}
</h2>
<#if subtitle?has_content>
<h4>${subtitle}</h4>
</#if>
<#if (!noData)>
<#if errorMessage?has_content>
<p>${errorMessage}</p>
<#else>
<#assign pagination>
<#if (pages?has_content && pages?size > 1)>
${i18n().pages}:
<ul class="pagination">
<#list pages as page>
<#if page.selected>
<li class="selectedNavPage">${page.text}</li>
<#else>
<#-- RY Ideally the urls would be generated by the controller; see search-pagedResults.ftl -->
<li><a href="${urls.base}/individuallist?${page.param}&vclassId=${vclassId?url}" title="${i18n().page_text}">${page.text}</a></li>
</#if>
</#list>
</ul>
</#if>
</#assign>
${pagination}
<ul>
<#list individuals as individual>
<li>
<@shortView uri=individual.uri viewContext="index" />
</li>
</#list>
</ul>
${pagination}
</#if>
<#else>
${noDataNotification}
</#if>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- List individuals in the requested class. -->
<#import "lib-list.ftl" as l>
<#include "individualList-checkForData.ftl">
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseIndex.css" />')}
<section class="individualList">
<h2>${title}
</h2>
<#if subtitle?has_content>
<h4>${subtitle}</h4>
</#if>
<#if (!noData)>
<#if errorMessage?has_content>
<p>${errorMessage}</p>
<#else>
<#assign pagination>
<#if (pages?has_content && pages?size > 1)>
${i18n().pages}:
<ul class="pagination">
<#list pages as page>
<#if page.selected>
<li class="selectedNavPage">${page.text}</li>
<#else>
<#-- RY Ideally the urls would be generated by the controller; see search-pagedResults.ftl -->
<li><a href="${urls.base}/individuallist?${page.param}&vclassId=${vclassId?url}" title="${i18n().page_text}">${page.text}</a></li>
</#if>
</#list>
</ul>
</#if>
</#assign>
${pagination}
<ul>
<#list individuals as individual>
<li>
<@shortView uri=individual.uri viewContext="index" />
</li>
</#list>
</ul>
${pagination}
</#if>
<#else>
${noDataNotification}
</#if>
</section> <!-- .individualList -->

View file

@ -1,38 +1,38 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Save to variable is sparqlResults -->
<#assign resultsExist = false/>
<#if variableName?has_content>
<#assign resultsExist = true/>
<#--This will retrieve the results stored in the variable name being returned from the sparql query.
For example, if "results" was specified as the variable storing the sparql results, the value
of "results" will not be assigned to "sparqlResults" below. -->
<#assign sparqlResults = .globals[variableName]/>
</#if>
<h3>${i18n().sparql_query_results}</h3>
<#if resultsExist>
<#assign numberRows = sparqlResults?size/>
<#assign firstRow = false/>
<#list sparqlResults as resultRow>
<#assign resultKeys = resultRow?keys />
<#if firstRow = false>
<div class="resultHeading resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultKey}</div>
</#list>
</div>
<#assign firstRow = true/>
</#if>
<div class="resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultRow[resultKey]}</div>
</#list>
</div>
</#list>
<#else>
${i18n().no_results_returned}
</#if>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/sparqlresults.css" />')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Save to variable is sparqlResults -->
<#assign resultsExist = false/>
<#if variableName?has_content>
<#assign resultsExist = true/>
<#--This will retrieve the results stored in the variable name being returned from the sparql query.
For example, if "results" was specified as the variable storing the sparql results, the value
of "results" will not be assigned to "sparqlResults" below. -->
<#assign sparqlResults = .globals[variableName]/>
</#if>
<h3>${i18n().sparql_query_results}</h3>
<#if resultsExist>
<#assign numberRows = sparqlResults?size/>
<#assign firstRow = false/>
<#list sparqlResults as resultRow>
<#assign resultKeys = resultRow?keys />
<#if firstRow = false>
<div class="resultHeading resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultKey}</div>
</#list>
</div>
<#assign firstRow = true/>
</#if>
<div class="resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultRow[resultKey]}</div>
</#list>
</div>
</#list>
<#else>
${i18n().no_results_returned}
</#if>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/sparqlresults.css" />')}

View file

@ -1,89 +1,89 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<section id="pageList">
<div class="tab">
<h2>${i18n().page_management}</h2>
</div>
<#if pages?has_content >
<table id="pageList" style="margin-bottom:2px"> <caption>${i18n().page_management}</caption>
<thead>
<tr>
<th scope="col">${i18n().title_capitalized}</th>
<!--th scope="col">${i18n().type_capitalized}</th-->
<th scope="col">URL</th>
<th scope="col">${i18n().custom_template}</th>
<th id="isMenuPage" scope="col" >${i18n().menu_page}</th>
<th id="iconColumns" scope="col">${i18n().controls}</th>
</tr>
</thead>
<tbody>
<#list pages as pagex>
<tr>
<td>
<#if pagex.listedPageUri?has_content>
<#if pagex.listedPageTitle == "Home" >
${pagex.listedPageTitle!}
<#else>
<a href="${urls.base}/editRequestDispatch?subjectUri=${pagex.listedPageUri?url}&switchToDisplayModel=1&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" title="${i18n().listed_page_title}">${(pagex.listedPageTitle)!i18n().untitled}</a>
</#if>
<#else>
${i18n().uri_not_defined}
</#if>
</td>
<!--td> {pagex.dataGetterLabel}</td-->
<td>${pagex.listedPageUrlMapping}</td>
<td>${(pagex.listedPageTemplate)!''}</td>
<td style="text-align:center">
<#if pagex.listedPageMenuItem?has_content>
<div class="menuFlag"></div>
</#if>
</td>
<td>
<a href="${urls.base}/editRequestDispatch?subjectUri=${pagex.listedPageUri?url}&switchToDisplayModel=1&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" title=""><img src="${urls.images!}/individual/editIcon.gif" alt="${i18n().edit_page}"></a>
&nbsp;&nbsp;
<a href="${urls.base}/individual?uri=${pagex.listedPageUri?url}&switchToDisplayModel=1" title="${i18n().view_profile_for_page}"><img src="${urls.images!}/profile-page-icon.png" alt="${i18n().view_profile_for_page}"></a>
&nbsp;&nbsp;
<#if !pagex.listedPageCannotDeletePage?has_content >
<a cmd="deletePage" pageTitle=" ${pagex.listedPageTitle!}" href="${urls.base}/deletePageController?pageURI=${pagex.listedPageUri?url}" title="${i18n().delete_page}"><img src="${urls.images!}/individual/deleteIcon.gif" alt="${i18n().delete_page}"></a>
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
<#else>
<p>${i18n().no_pages_defined}</p>
</#if>
<form id="pageListForm" action="${urls.base}/editRequestDispatch" method="get">
<input type="hidden" name="typeOfNew" value="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page">
<input type="hidden" name="switchToDisplayModel" value="1">
<input type="hidden" name="editForm" value="edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" role="input">
<input id="submit" value="${i18n().add_page}" role="button" type="submit" >
</form>
<br />
<p style="margin-top:10px">${i18n().use_capitalized} <a id="menuMgmtLink" href="${urls.base}/individual?uri=http%3A%2F%2Fvitro.mannlib.cornell.edu%2Fontologies%2Fdisplay%2F1.1%23DefaultMenu&switchToDisplayModel=true&previous=pageManagement" title="">${i18n().menu_orering}</a> ${i18n().to_order_menu_items}</p>
</section>
<script>
var i18nStrings = {
confirmPageDeletion: '${i18n().confirm_page_deletion}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />',
'<link rel="stylesheet" href="${urls.base}/css/menupage/pageList.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/browserUtils.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/pageDeletion.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<section id="pageList">
<div class="tab">
<h2>${i18n().page_management}</h2>
</div>
<#if pages?has_content >
<table id="pageList" style="margin-bottom:2px"> <caption>${i18n().page_management}</caption>
<thead>
<tr>
<th scope="col">${i18n().title_capitalized}</th>
<!--th scope="col">${i18n().type_capitalized}</th-->
<th scope="col">URL</th>
<th scope="col">${i18n().custom_template}</th>
<th id="isMenuPage" scope="col" >${i18n().menu_page}</th>
<th id="iconColumns" scope="col">${i18n().controls}</th>
</tr>
</thead>
<tbody>
<#list pages as pagex>
<tr>
<td>
<#if pagex.listedPageUri?has_content>
<#if pagex.listedPageTitle == "Home" >
${pagex.listedPageTitle!}
<#else>
<a href="${urls.base}/editRequestDispatch?subjectUri=${pagex.listedPageUri?url}&switchToDisplayModel=1&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" title="${i18n().listed_page_title}">${(pagex.listedPageTitle)!i18n().untitled}</a>
</#if>
<#else>
${i18n().uri_not_defined}
</#if>
</td>
<!--td> {pagex.dataGetterLabel}</td-->
<td>${pagex.listedPageUrlMapping}</td>
<td>${(pagex.listedPageTemplate)!''}</td>
<td style="text-align:center">
<#if pagex.listedPageMenuItem?has_content>
<div class="menuFlag"></div>
</#if>
</td>
<td>
<a href="${urls.base}/editRequestDispatch?subjectUri=${pagex.listedPageUri?url}&switchToDisplayModel=1&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" title=""><img src="${urls.images!}/individual/editIcon.gif" alt="${i18n().edit_page}"></a>
&nbsp;&nbsp;
<a href="${urls.base}/individual?uri=${pagex.listedPageUri?url}&switchToDisplayModel=1" title="${i18n().view_profile_for_page}"><img src="${urls.images!}/profile-page-icon.png" alt="${i18n().view_profile_for_page}"></a>
&nbsp;&nbsp;
<#if !pagex.listedPageCannotDeletePage?has_content >
<a cmd="deletePage" pageTitle=" ${pagex.listedPageTitle!}" href="${urls.base}/deletePageController?pageURI=${pagex.listedPageUri?url}" title="${i18n().delete_page}"><img src="${urls.images!}/individual/deleteIcon.gif" alt="${i18n().delete_page}"></a>
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
<#else>
<p>${i18n().no_pages_defined}</p>
</#if>
<form id="pageListForm" action="${urls.base}/editRequestDispatch" method="get">
<input type="hidden" name="typeOfNew" value="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page">
<input type="hidden" name="switchToDisplayModel" value="1">
<input type="hidden" name="editForm" value="edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" role="input">
<input id="submit" value="${i18n().add_page}" role="button" type="submit" >
</form>
<br />
<p style="margin-top:10px">${i18n().use_capitalized} <a id="menuMgmtLink" href="${urls.base}/individual?uri=http%3A%2F%2Fvitro.mannlib.cornell.edu%2Fontologies%2Fdisplay%2F1.1%23DefaultMenu&switchToDisplayModel=true&previous=pageManagement" title="">${i18n().menu_orering}</a> ${i18n().to_order_menu_items}</p>
</section>
<script>
var i18nStrings = {
confirmPageDeletion: '${i18n().confirm_page_deletion}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />',
'<link rel="stylesheet" href="${urls.base}/css/menupage/pageList.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/browserUtils.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/pageDeletion.js"></script>')}

View file

@ -1,35 +1,35 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Revision Information page. -->
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/revision.css" />')}
<section role="region">
<h2>${i18n().revision_info}</h2>
<section id="revision-levels" role="region">
<table summary="VIVO revision's levels table">
<caption>${i18n().levels}:</caption>
<tr>
<th>${i18n().name}</th>
<th>${i18n().release}</th>
<th>${i18n().revision}</th>
</tr>
<#list revisionInfoBean.levelInfos as level>
<tr>
<td>${level.name}</td>
<td>${level.release}</td>
<td>${level.revision}</td>
</tr>
</#list>
</table>
</section>
<section id="revision-build-date" role="region">
<h3>${i18n().build_date}:</h3>
<p>${revisionInfoBean.buildDate?datetime?string.full}</p>
</section>
</section>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Revision Information page. -->
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/revision.css" />')}
<section role="region">
<h2>${i18n().revision_info}</h2>
<section id="revision-levels" role="region">
<table summary="VIVO revision's levels table">
<caption>${i18n().levels}:</caption>
<tr>
<th>${i18n().name}</th>
<th>${i18n().release}</th>
<th>${i18n().revision}</th>
</tr>
<#list revisionInfoBean.levelInfos as level>
<tr>
<td>${level.name}</td>
<td>${level.release}</td>
<td>${level.revision}</td>
</tr>
</#list>
</table>
</section>
<section id="revision-build-date" role="region">
<h3>${i18n().build_date}:</h3>
<p>${revisionInfoBean.buildDate?datetime?string.full}</p>
</section>
</section>

View file

@ -1,14 +1,14 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Unrecognized User page. -->
<section role="region">
<h2>${i18n().unrecognized_user}</h2>
<p>
${i18n().no_individual_associated_with_id}
</p>
<br/>
<a href="${urls.home}" title="${i18n().continue}">${i18n().continue}</a>
</section>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for the Unrecognized User page. -->
<section role="region">
<h2>${i18n().unrecognized_user}</h2>
<p>
${i18n().no_individual_associated_with_id}
</p>
<br/>
<a href="${urls.home}" title="${i18n().continue}">${i18n().continue}</a>
</section>

View file

@ -1,51 +1,51 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign toBeDeletedClass = "dataProp" />
<#if editConfiguration.objectProperty = true>
<#assign toBeDeletedClass = "objProp" />
<#if editConfiguration.objectStatementDisplay?has_content>
<#assign statement = editConfiguration.objectStatementDisplay />
<#--Reviewer and editor role list views required object property template model object for property-->
<#assign property = editConfiguration.objectPropertyStatementDisplayPropertyModel />
</#if>
<#else>
<#assign statement = editConfiguration.dataLiteralValuesAsString />
</#if>
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
<h2>${i18n().confirm_entry_deletion_from} <em>${editConfiguration.propertyName}</em>?</h2>
<p class="toBeDeleted ${toBeDeletedClass}">
<#if editConfiguration.objectProperty = true>
<#if statement?has_content>
<#include deletionTemplateName />
</#if>
<#else>
${statement}
</#if>
</p>
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}" role="input" />
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}" role="input" />
<#if editConfiguration.dataProperty = true>
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" role="input" />
<input type="hidden" name="vitroNsProp" value="${editConfiguration.vitroNsProperty}" role="input" />
<#else>
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}" role="input" />
</#if>
<br />
<#if editConfiguration.objectProperty = true>
<p class="submit">
</#if>
<input type="submit" id="submit" value="${i18n().delete_button}" role="button"/>
or
<a class="cancel" title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
<#if editConfiguration.objectProperty = true>
</p>
</#if>
</form>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign toBeDeletedClass = "dataProp" />
<#if editConfiguration.objectProperty = true>
<#assign toBeDeletedClass = "objProp" />
<#if editConfiguration.objectStatementDisplay?has_content>
<#assign statement = editConfiguration.objectStatementDisplay />
<#--Reviewer and editor role list views required object property template model object for property-->
<#assign property = editConfiguration.objectPropertyStatementDisplayPropertyModel />
</#if>
<#else>
<#assign statement = editConfiguration.dataLiteralValuesAsString />
</#if>
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
<h2>${i18n().confirm_entry_deletion_from} <em>${editConfiguration.propertyName}</em>?</h2>
<p class="toBeDeleted ${toBeDeletedClass}">
<#if editConfiguration.objectProperty = true>
<#if statement?has_content>
<#include deletionTemplateName />
</#if>
<#else>
${statement}
</#if>
</p>
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}" role="input" />
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}" role="input" />
<#if editConfiguration.dataProperty = true>
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" role="input" />
<input type="hidden" name="vitroNsProp" value="${editConfiguration.vitroNsProperty}" role="input" />
<#else>
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}" role="input" />
</#if>
<br />
<#if editConfiguration.objectProperty = true>
<p class="submit">
</#if>
<input type="submit" id="submit" value="${i18n().delete_button}" role="button"/>
or
<a class="cancel" title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
<#if editConfiguration.objectProperty = true>
</p>
</#if>
</form>

View file

@ -1,25 +1,25 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign formTitle>
"${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName}
</#assign>
<#if editConfiguration.objectUri?has_content>
<#assign formTitle>${i18n().edit_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().save_changes}</#assign>
<#else>
<#assign formTitle>${i18n().create_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().create_capitalized} "${editConfiguration.propertyPublicDomainTitle}" ${i18n().entry}</#assign>
</#if>
<h2>${formTitle}</h2>
<form class="editForm" action="${submitUrl}">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
<input type="text" name="name" id="name" label="name (required)" size="30" role="input" />
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="submit" />
<span class="or"> or </span>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign formTitle>
"${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName}
</#assign>
<#if editConfiguration.objectUri?has_content>
<#assign formTitle>${i18n().edit_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().save_changes}</#assign>
<#else>
<#assign formTitle>${i18n().create_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().create_capitalized} "${editConfiguration.propertyPublicDomainTitle}" ${i18n().entry}</#assign>
</#if>
<h2>${formTitle}</h2>
<form class="editForm" action="${submitUrl}">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
<input type="text" name="name" id="name" label="name (required)" size="30" role="input" />
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="submit" />
<span class="or"> or </span>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
</form>

View file

@ -1,56 +1,56 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--If edit submission exists, then retrieve validation errors if they exist-->
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
<#assign submissionErrors = editSubmission.validationErrors/>
</#if>
<h2>${editConfiguration.formTitle}</h2>
<#--Display error messages if any-->
<#if submissionErrors?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#list submissionErrors?keys as errorFieldName>
${submissionErrors[errorFieldName]}
</#list>
</p>
</section>
</#if>
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
<form class="editForm" action = "${submitUrl}" method="post">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
<#if editConfiguration.dataPredicatePublicDescription?has_content>
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${editConfiguration.dataPredicatePublicDescription}</p></label>
</#if>
<textarea rows="2" id="literal" name="literal" value="" class="useTinyMce" role="textarea">${literalValues}</textarea>
<br />
<#--The submit label should be set within the template itself, right now
the default label for default data/object property editing is returned from Edit Configuration Template Model,
but that method may not return the correct result for other custom forms-->
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button"/>
<span class="or"> or </span>
<a title="${i18n().cancel_title}" href="${cancelUrl}">${i18n().cancel_link}</a>
</form>
<#if editConfiguration.includeDeletionForm = true>
<#include "defaultDeletePropertyForm.ftl">
</#if>
<#include "defaultFormScripts.ftl">
<script type="text/javascript">
$(document).ready(function(){
defaultDataPropertyUtils.onLoad();
});
</script>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--If edit submission exists, then retrieve validation errors if they exist-->
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
<#assign submissionErrors = editSubmission.validationErrors/>
</#if>
<h2>${editConfiguration.formTitle}</h2>
<#--Display error messages if any-->
<#if submissionErrors?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#list submissionErrors?keys as errorFieldName>
${submissionErrors[errorFieldName]}
</#list>
</p>
</section>
</#if>
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
<form class="editForm" action = "${submitUrl}" method="post">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
<#if editConfiguration.dataPredicatePublicDescription?has_content>
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${editConfiguration.dataPredicatePublicDescription}</p></label>
</#if>
<textarea rows="2" id="literal" name="literal" value="" class="useTinyMce" role="textarea">${literalValues}</textarea>
<br />
<#--The submit label should be set within the template itself, right now
the default label for default data/object property editing is returned from Edit Configuration Template Model,
but that method may not return the correct result for other custom forms-->
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button"/>
<span class="or"> or </span>
<a title="${i18n().cancel_title}" href="${cancelUrl}">${i18n().cancel_link}</a>
</form>
<#if editConfiguration.includeDeletionForm = true>
<#include "defaultDeletePropertyForm.ftl">
</#if>
<#include "defaultFormScripts.ftl">
<script type="text/javascript">
$(document).ready(function(){
defaultDataPropertyUtils.onLoad();
});
</script>

View file

@ -1,36 +1,36 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
<h3 class="delete-entry">${i18n().delete_entry_capitalized}</h3>
<label for="delete"></label>
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}"/>
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}"/>
<input type="hidden" name="cmd" value="delete"/>
<input type="hidden" name="editKey" value="${editConfiguration.editKey}"/>
<#if editConfiguration.dataProperty = true>
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</#if>
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
and offer create new option are true below so leaving as Cancel for first option but not second below-->
<#if editConfiguration.objectProperty = true>
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}"/>
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
</#if>
<#if editConfiguration.propertySelectFromExisting = true || editConfiguration.propertyOfferCreateNewOption = true>
<p>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</p>
</#if>
</#if>
</form>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
<h3 class="delete-entry">${i18n().delete_entry_capitalized}</h3>
<label for="delete"></label>
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}"/>
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}"/>
<input type="hidden" name="cmd" value="delete"/>
<input type="hidden" name="editKey" value="${editConfiguration.editKey}"/>
<#if editConfiguration.dataProperty = true>
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</#if>
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
and offer create new option are true below so leaving as Cancel for first option but not second below-->
<#if editConfiguration.objectProperty = true>
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}"/>
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
</#if>
<#if editConfiguration.propertySelectFromExisting = true || editConfiguration.propertyOfferCreateNewOption = true>
<p>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</p>
</#if>
</#if>
</form>

View file

@ -1,71 +1,71 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template to setup and call scripts for form editing -->
<#-- Like original jsp, allow the passing of variables -->
<#assign defaultHeight="200" />
<#assign defaultWidth="75%" />
<#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/>
<#assign defaultToolbarLocation = "top" />
<#if !height?has_content>
<#assign height=defaultHeight/>
</#if>
<#if !width?has_content>
<#assign width=defaultWidth />
</#if>
<#if !buttons?has_content>
<#assign buttons = defaultButton />
</#if>
<#if !toolbarLocation?has_content>
<#assign toolbarLocation = defaultToolbarLocation />
</#if>
<#-- Set up data -->
<script type="text/javascript">
var customFormData = {
tinyMCEData : {
theme : "advanced",
mode : "textareas",
theme_advanced_buttons1 : "${buttons}",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "${toolbarLocation}",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
theme_advanced_resizing : true,
height : "${height}",
width : "${width}",
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
fix_list_elements : true,
fix_nesting : true,
cleanup_on_startup : true,
gecko_spellcheck : true,
forced_root_block: false
// plugins: "paste",
// theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
// paste_create_paragraphs: false,
// paste_create_linebreaks: false,
// paste_use_dialog : true,
// paste_auto_cleanup_on_paste: true,
// paste_convert_headers_to_strong : true,
// save_callback : "customSave",
// content_css : "example_advanced.css",
// extended_valid_elements : "a[href|target|name]"
// plugins : "table",
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
// invalid_elements : "li",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
}
};
</script>
<#-- Script to enable browsing individuals within a class -->
<#--'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>',-->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/jquery-tinymce.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/edit/initTinyMce.js"></script>',
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template to setup and call scripts for form editing -->
<#-- Like original jsp, allow the passing of variables -->
<#assign defaultHeight="200" />
<#assign defaultWidth="75%" />
<#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/>
<#assign defaultToolbarLocation = "top" />
<#if !height?has_content>
<#assign height=defaultHeight/>
</#if>
<#if !width?has_content>
<#assign width=defaultWidth />
</#if>
<#if !buttons?has_content>
<#assign buttons = defaultButton />
</#if>
<#if !toolbarLocation?has_content>
<#assign toolbarLocation = defaultToolbarLocation />
</#if>
<#-- Set up data -->
<script type="text/javascript">
var customFormData = {
tinyMCEData : {
theme : "advanced",
mode : "textareas",
theme_advanced_buttons1 : "${buttons}",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "${toolbarLocation}",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
theme_advanced_resizing : true,
height : "${height}",
width : "${width}",
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
fix_list_elements : true,
fix_nesting : true,
cleanup_on_startup : true,
gecko_spellcheck : true,
forced_root_block: false
// plugins: "paste",
// theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
// paste_create_paragraphs: false,
// paste_create_linebreaks: false,
// paste_use_dialog : true,
// paste_auto_cleanup_on_paste: true,
// paste_convert_headers_to_strong : true,
// save_callback : "customSave",
// content_css : "example_advanced.css",
// extended_valid_elements : "a[href|target|name]"
// plugins : "table",
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
// invalid_elements : "li",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
}
};
</script>
<#-- Script to enable browsing individuals within a class -->
<#--'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>',-->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/jquery-tinymce.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/edit/initTinyMce.js"></script>',
'<script type="text/javascript" src="${urls.base}/templates/freemarker/edit/forms/js/defaultDataPropertyUtils.js"></script>')}

View file

@ -1,36 +1,36 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#if rangeOptionsExist = true >
<p>${i18n().no_appropriate_entry}:</p>
<#else>
<p>${i18n().create_new_entry}</p>
</#if>
<#if editConfiguration.objectUri?has_content>
<#assign objectUri = editConfiguration.objectUri>
<#else>
<#assign objectUri = ""/>
</#if>
<#assign typesList = editConfiguration.offerTypesCreateNew />
<form class="editForm" action="${editConfiguration.mainEditUrl}" role="input" />
<input type="hidden" value="${editConfiguration.subjectUri}" name="subjectUri" role="input" />
<input type="hidden" value="${editConfiguration.predicateUri}" name="predicateUri" role="input" />
<input type="hidden" value="${objectUri}" name="objectUri" role="input" />
<input type="hidden" value="create" name="cmd" role="input" />
<select id="typeOfNew" name="typeOfNew" role="selection">
<#assign typeKeys = typesList?keys />
<#list typeKeys as typeKey>
<option value="${typeKey}" role="option"> ${typesList[typeKey]} </option>
</#list>
</select>
<input type="submit" id="offerCreate" class="submit" value="${i18n().add_new_of_type}" role="button" />
<#if rangeOptionsExist = false >
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</#if>
</form>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#if rangeOptionsExist = true >
<p>${i18n().no_appropriate_entry}:</p>
<#else>
<p>${i18n().create_new_entry}</p>
</#if>
<#if editConfiguration.objectUri?has_content>
<#assign objectUri = editConfiguration.objectUri>
<#else>
<#assign objectUri = ""/>
</#if>
<#assign typesList = editConfiguration.offerTypesCreateNew />
<form class="editForm" action="${editConfiguration.mainEditUrl}" role="input" />
<input type="hidden" value="${editConfiguration.subjectUri}" name="subjectUri" role="input" />
<input type="hidden" value="${editConfiguration.predicateUri}" name="predicateUri" role="input" />
<input type="hidden" value="${objectUri}" name="objectUri" role="input" />
<input type="hidden" value="create" name="cmd" role="input" />
<select id="typeOfNew" name="typeOfNew" role="selection">
<#assign typeKeys = typesList?keys />
<#list typeKeys as typeKey>
<option value="${typeKey}" role="option"> ${typesList[typeKey]} </option>
</#list>
</select>
<input type="submit" id="offerCreate" class="submit" value="${i18n().add_new_of_type}" role="button" />
<#if rangeOptionsExist = false >
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</#if>
</form>

View file

@ -1,3 +1,3 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Placeholder for class intersection segment of menu management form. This file is deliberately empty for vitro. -->

View file

@ -1,115 +1,115 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Template for adding and editing menu items -->
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
<#assign existingClassGroupStyle = " " />
<#assign selectClassGroupStyle = 'class="hidden"' />
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
<#if menuAction == "Add" || !classGroup?has_content>
<#assign existingClassGroupStyle = 'class="hidden"' />
<#assign selectClassGroupStyle = " " />
</#if>
<section id="error-alert" role="alert" class="hidden">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p></p>
</section>
<h3>${menuAction} ${i18n().menu_item}</h3>
<section id="${menuAction?lower_case}-menu-item" role="region">
<form method="POST" action="${formUrls}" class="customForm" role="${menuAction} menu item">
<input type="hidden" name="cmd" id="cmd" value="${menuAction}" role="input" />
<input type="hidden" name="menuItem" id="menuItem" value="${menuItem}" role="input" />
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
<label for="menu-name">${i18n().name}<span class="requiredHint"> *</span></label>
<input type="text" name="menuName" value="${menuName}" role="input" />
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
<input type="text" name="prettyUrl" value="${prettyUrl}" role="input" />
<p class="note">${i18n().start_with_leading_slash}</p>
<p>${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked</#if> role="radio" />
<label class="inline" for="default"> ${i18n().default}</label>
<br />
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked</#if> role="input" />
<label class="inline" for="custom"> ${i18n().custom_template_mixed_caps}</label>
<section id="custom-template" <#if selectedTemplateType != 'custom'>class="hidden" </#if>role="region">
<input type="text" name="customTemplate" value="${customTemplate!}" size="40" role="input" /><span class="requiredHint"> *</span>
</section>
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
<p>${i18n().selected_page_content_type}</p>
<p>
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
</p>
</section>
<#-- Select class group -->
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">${i18n().select_page_content_type}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
</#list>
</select>
</section>
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "menuManagement--classIntersections.ftl">
<ul id="selectedClasses" name="selectedClasses" role="menu">
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" <#if includeAllClasses = true>checked</#if>
<#if isIndividualsForClassesPage?has_content>
<#list includeClasses as includeClass>
<#if includeClass = classInClassGroup.URI>
checked
</#if>
</#list>
</#if> />
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
<#-- PLACEHOLDER - not yet implemented) -->
<span class="ui-icon-sortable"></span> <#--sortable icon for dragging and dropping menu items-->
</li>
</#list>
</ul>
</section>
<input type="submit" name="submit-${menuAction}" value="${i18n().save_changes}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
<p class="requiredHint">* ${i18n().required_fields}</p>
</form>
</section>
<script>
var i18nStrings = {
supplyName: '${i18n().supply_name}',
supplyPrettyUrl: '${i18n().supply_url}',
startUrlWithSlash: '${i18n().start_url_with_slash}',
supplyTemplate: '${i18n().supply_template}',
supplyContentType: '${i18n().supply_content_type}',
selectContentType: '${i18n().select_content_type}',
allCapitalized: '${i18n().all_capitalized}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/menuManagement.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Template for adding and editing menu items -->
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
<#assign existingClassGroupStyle = " " />
<#assign selectClassGroupStyle = 'class="hidden"' />
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
<#if menuAction == "Add" || !classGroup?has_content>
<#assign existingClassGroupStyle = 'class="hidden"' />
<#assign selectClassGroupStyle = " " />
</#if>
<section id="error-alert" role="alert" class="hidden">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p></p>
</section>
<h3>${menuAction} ${i18n().menu_item}</h3>
<section id="${menuAction?lower_case}-menu-item" role="region">
<form method="POST" action="${formUrls}" class="customForm" role="${menuAction} menu item">
<input type="hidden" name="cmd" id="cmd" value="${menuAction}" role="input" />
<input type="hidden" name="menuItem" id="menuItem" value="${menuItem}" role="input" />
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
<label for="menu-name">${i18n().name}<span class="requiredHint"> *</span></label>
<input type="text" name="menuName" value="${menuName}" role="input" />
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
<input type="text" name="prettyUrl" value="${prettyUrl}" role="input" />
<p class="note">${i18n().start_with_leading_slash}</p>
<p>${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked</#if> role="radio" />
<label class="inline" for="default"> ${i18n().default}</label>
<br />
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked</#if> role="input" />
<label class="inline" for="custom"> ${i18n().custom_template_mixed_caps}</label>
<section id="custom-template" <#if selectedTemplateType != 'custom'>class="hidden" </#if>role="region">
<input type="text" name="customTemplate" value="${customTemplate!}" size="40" role="input" /><span class="requiredHint"> *</span>
</section>
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
<p>${i18n().selected_page_content_type}</p>
<p>
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
</p>
</section>
<#-- Select class group -->
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">${i18n().select_page_content_type}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
</#list>
</select>
</section>
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "menuManagement--classIntersections.ftl">
<ul id="selectedClasses" name="selectedClasses" role="menu">
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" <#if includeAllClasses = true>checked</#if>
<#if isIndividualsForClassesPage?has_content>
<#list includeClasses as includeClass>
<#if includeClass = classInClassGroup.URI>
checked
</#if>
</#list>
</#if> />
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
<#-- PLACEHOLDER - not yet implemented) -->
<span class="ui-icon-sortable"></span> <#--sortable icon for dragging and dropping menu items-->
</li>
</#list>
</ul>
</section>
<input type="submit" name="submit-${menuAction}" value="${i18n().save_changes}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
<p class="requiredHint">* ${i18n().required_fields}</p>
</form>
</section>
<script>
var i18nStrings = {
supplyName: '${i18n().supply_name}',
supplyPrettyUrl: '${i18n().supply_url}',
startUrlWithSlash: '${i18n().start_url_with_slash}',
supplyTemplate: '${i18n().supply_template}',
supplyContentType: '${i18n().supply_content_type}',
selectContentType: '${i18n().select_content_type}',
allCapitalized: '${i18n().all_capitalized}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/menuManagement.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/menumanagement_edit.js"></script>')}

View file

@ -1,69 +1,69 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Browse Class Groups Section-->
<#-----------Variable assignment-------------->
<#--Requires Menu action be defined in parent template-->
<#assign classGroup = pageData.classGroup />
<#assign classGroups = pageData.classGroups />
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
<#assign existingClassGroupStyle = " " />
<#assign selectClassGroupStyle = 'class="hidden"' />
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
<#-- Menu action needs to be sent from main template-->
<#if menuAction == "Add" || !classGroup?has_content>
<#assign existingClassGroupStyle = 'class="hidden"' />
<#assign selectClassGroupStyle = " " />
</#if>
<#--HTML Portion-->
<section id="browseClassGroup" class="contentSectionContainer">
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">${i18n().class_group_all_caps}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" role="option">${aClassGroup.publicName}</option>
</#list>
</select>
</section>
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "pageManagement--classIntersections.ftl">
<ul id="selectedClasses" name="selectedClasses" role="menu">
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" checked="checked" />
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" checked="checked" />
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
<span class="ui-icon-sortable"></span>
</li>
</#list>
</ul><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
</section>
<script>
var i18nStringsBrowseGroups = {
browseClassGroup: '${i18n().browse_class_group}',
allCapitalized: '${i18n().all_capitalized}',
supplyClassGroup: '${i18n().supply_class_group}',
selectClasses: '${i18n().select_classes_to_display}'
};
</script>
<#--Include JavaScript specific to the types of data getters related to this content-->
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Browse Class Groups Section-->
<#-----------Variable assignment-------------->
<#--Requires Menu action be defined in parent template-->
<#assign classGroup = pageData.classGroup />
<#assign classGroups = pageData.classGroups />
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
<#assign existingClassGroupStyle = " " />
<#assign selectClassGroupStyle = 'class="hidden"' />
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
<#-- Menu action needs to be sent from main template-->
<#if menuAction == "Add" || !classGroup?has_content>
<#assign existingClassGroupStyle = 'class="hidden"' />
<#assign selectClassGroupStyle = " " />
</#if>
<#--HTML Portion-->
<section id="browseClassGroup" class="contentSectionContainer">
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">${i18n().class_group_all_caps}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" role="option">${aClassGroup.publicName}</option>
</#list>
</select>
</section>
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "pageManagement--classIntersections.ftl">
<ul id="selectedClasses" name="selectedClasses" role="menu">
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" checked="checked" />
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" checked="checked" />
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
<span class="ui-icon-sortable"></span>
</li>
</#list>
</ul><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
</section>
<script>
var i18nStringsBrowseGroups = {
browseClassGroup: '${i18n().browse_class_group}',
allCapitalized: '${i18n().all_capitalized}',
supplyClassGroup: '${i18n().supply_class_group}',
selectClasses: '${i18n().select_classes_to_display}'
};
</script>
<#--Include JavaScript specific to the types of data getters related to this content-->
<#include "pageManagement--browseClassGroupsScripts.ftl">

View file

@ -1,5 +1,5 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Scripts for class group browsing -->
<#--Replaces Vitro's processing for individuals for classes with VIVO's processing internal classes-->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processClassGroupDataGetterContent.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processIndividualsForClassesDataGetterContent.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Scripts for class group browsing -->
<#--Replaces Vitro's processing for individuals for classes with VIVO's processing internal classes-->
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processClassGroupDataGetterContent.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processIndividualsForClassesDataGetterContent.js"></script>')}

View file

@ -1,2 +1,2 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

View file

@ -1,5 +1,5 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--These are the different content templates that will be cloned and used within page management-->
<#include "pageManagement--browseClassGroups.ftl">
<#include "pageManagement--sparqlQuery.ftl">
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--These are the different content templates that will be cloned and used within page management-->
<#include "pageManagement--browseClassGroups.ftl">
<#include "pageManagement--sparqlQuery.ftl">
<#include "pageManagement--fixedHtml.ftl">

View file

@ -1,18 +1,18 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Sets up script for custom form data. Including here instead of as separate javascript
file to ensure this script is always loaded first. Can also make sure placed first in
scripts list.-->
<script type="text/javascript">
var customFormData = {
menuAction:"${menuAction}",
addMenuItem:"${addMenuItem}",
dataGetterLabelToURI:{
//maps labels to URIs
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
"individualsForClasses": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter",
"sparqlQuery":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter",
"fixedHtml":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter"
}
};
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--Sets up script for custom form data. Including here instead of as separate javascript
file to ensure this script is always loaded first. Can also make sure placed first in
scripts list.-->
<script type="text/javascript">
var customFormData = {
menuAction:"${menuAction}",
addMenuItem:"${addMenuItem}",
dataGetterLabelToURI:{
//maps labels to URIs
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
"individualsForClasses": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter",
"sparqlQuery":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter",
"fixedHtml":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter"
}
};
</script>

View file

@ -1,23 +1,23 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
<section id="fixedHtml" class="contentSectionContainer">
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">${i18n().enter_fixed_html_here}<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" class="doneWithContent" />
<#if menuAction == "Add">
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
<script>
var i18nStringsFixedHtml = {
fixedHtml: '${i18n().fixed_html}',
supplyVariableName: '${i18n().supply_variable_name}',
noApostrophes: '${i18n().apostrophe_not_allowed}',
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
supplyHtml: '${i18n().supply_html}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
<section id="fixedHtml" class="contentSectionContainer">
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">${i18n().enter_fixed_html_here}<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" class="doneWithContent" />
<#if menuAction == "Add">
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
<script>
var i18nStringsFixedHtml = {
fixedHtml: '${i18n().fixed_html}',
supplyVariableName: '${i18n().supply_variable_name}',
noApostrophes: '${i18n().apostrophe_not_allowed}',
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
supplyHtml: '${i18n().supply_html}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}

View file

@ -1,25 +1,25 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
<section id="sparqlQuery" class="contentSectionContainer">
<label id="variableLabel" for="variable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
<#--Hiding query model for now-->
<#-- <label id="queryModelLabel" for="queryModel">${i18n().query_model}</label> -->
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
<label id="queryLabel" for="queryLabel"><span id="querySpan">${i18n().enter_sparql_query_here}</span><span class="requiredHint"> *</span></label>
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
<script>
var i18nStringsSparqlQuery = {
sparqlResults: '${i18n().sparql_query_results}',
supplyQueryVariable: '${i18n().supply_query_variable}',
noApostrophes: '${i18n().apostrophe_not_allowed}',
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
supplyQuery: '${i18n().supply_sparql_query}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
<section id="sparqlQuery" class="contentSectionContainer">
<label id="variableLabel" for="variable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
<#--Hiding query model for now-->
<#-- <label id="queryModelLabel" for="queryModel">${i18n().query_model}</label> -->
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
<label id="queryLabel" for="queryLabel"><span id="querySpan">${i18n().enter_sparql_query_here}</span><span class="requiredHint"> *</span></label>
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
<script>
var i18nStringsSparqlQuery = {
sparqlResults: '${i18n().sparql_query_results}',
supplyQueryVariable: '${i18n().supply_query_variable}',
noApostrophes: '${i18n().apostrophe_not_allowed}',
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
supplyQuery: '${i18n().supply_sparql_query}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}

View file

@ -1,27 +1,27 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign actionText = "${i18n().add_new}" />
<#if editConfiguration.dataPropertyStatement?has_content>
<#assign actionText = "${i18n().edit_capitalized}"/>
</#if>
<#assign submitLabel>${actionText} ${i18n().label}</#assign>
<h2>${actionText} <em>${i18n().label}</em> for ${editConfiguration.subjectName}</h2>
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
<form class="editForm" action = "${submitUrl}" method="post">
<input type="text" name="${editConfiguration.varNameForObject}" id="label" size="70" value="${literalValues?html}" role="input"/>
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input"/>
<input type="hidden" name="vitroNsProp" value="true" role="input"/>
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="input"/>
or <a href="${cancelUrl}" class="cancel" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
</form>
<#--The original jsp included a delete form for deleting rdfs label.
If required, deletion can be supported but it does not appear that is required currently.
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign actionText = "${i18n().add_new}" />
<#if editConfiguration.dataPropertyStatement?has_content>
<#assign actionText = "${i18n().edit_capitalized}"/>
</#if>
<#assign submitLabel>${actionText} ${i18n().label}</#assign>
<h2>${actionText} <em>${i18n().label}</em> for ${editConfiguration.subjectName}</h2>
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
<form class="editForm" action = "${submitUrl}" method="post">
<input type="text" name="${editConfiguration.varNameForObject}" id="label" size="70" value="${literalValues?html}" role="input"/>
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input"/>
<input type="hidden" name="vitroNsProp" value="true" role="input"/>
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="input"/>
or <a href="${cancelUrl}" class="cancel" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
</form>
<#--The original jsp included a delete form for deleting rdfs label.
If required, deletion can be supported but it does not appear that is required currently.
-->

View file

@ -1,94 +1,94 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Macros and functions for form controls -->
<#-- Output: html notifying the user that the browser is an unsupported version -->
<#macro unsupportedBrowser urlsBase>
<div id="ie67DisableWrapper">
<div id="ie67DisableContent">
<img src="${urlsBase}/images/iconAlertBig.png" alt="${i18n().alert_icon}"/>
<p>${i18n().unsupported_ie_version}</p>
</div>
</div>
</#macro>
<#--Given an edit configuration template object, get the current value for a uri field using the field name-->
<#function getEditConfigLiteralValue config varName>
<#local literalValues = config.existingLiteralValues >
<#if (literalValues?keys?seq_contains(varName)) && (literalValues[varName]?size > 0)>
<#return literalValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Given an edit configuration template object, get the current value for a literal field using the field name-->
<#function getEditConfigUriValue config varName>
<#local uriValues = config.existingUriValues />
<#if (uriValues?keys?seq_contains(varName)) && (uriValues[varName]?size > 0)>
<#return uriValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Now check whether a given value returns either a uri or a literal value, if one empty then use other and
return - returns empty string if no value found-->
<#function getEditConfigValue config varName>
<#local returnValue = getEditConfigUriValue(config, varName) />
<#if (returnValue?length = 0)>
<#local returnValue = getEditConfigLiteralValue(config, varName) />
</#if>
<#return returnValue>
</#function>
<#--Given edit submission object find values-->
<#function getEditSubmissionLiteralValue submission varName>
<#local literalValues = submission.literalsFromForm >
<#if (literalValues?keys?seq_contains(varName)) && (literalValues[varName]?size > 0)>
<#return literalValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Given an edit configuration template object, get the current value for a literal field using the field name-->
<#function getEditSubmissionUriValue submission varName>
<#local uriValues = submission.urisFromForm />
<#if (uriValues?keys?seq_contains(varName)) && (uriValues[varName]?size > 0)>
<#return uriValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Get edit submission value for either literal or uri-->
<#function getEditSubmissionValue submission varName>
<#local returnValue = getEditSubmissionUriValue(submission, varName) />
<#if (returnValue?length = 0)>
<#local returnValue = getEditSubmissionLiteralValue(submission, varName) />
</#if>
<#return returnValue>
</#function>
<#--Get the value for the form field, checking edit submission first and then edit configuration-->
<#function getFormFieldValue submission config varName>
<#local returnValue = "">
<#if submission?has_content && submission.submissionExists = true>
<#local returnValue = getEditSubmissionValue(submission varName)>
<#else>
<#local returnValue = getEditConfigValue(config varName)>
</#if>
<#return returnValue>
</#function>
<#--Check if submission error exists for a field name-->
<#function submissionErrorExists editSubmission fieldName>
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
<#if editSubmission.validationErrors?keys?seq_contains(fieldName)>
<#return true>
</#if>
</#if>
<#return false>
</#function>
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Macros and functions for form controls -->
<#-- Output: html notifying the user that the browser is an unsupported version -->
<#macro unsupportedBrowser urlsBase>
<div id="ie67DisableWrapper">
<div id="ie67DisableContent">
<img src="${urlsBase}/images/iconAlertBig.png" alt="${i18n().alert_icon}"/>
<p>${i18n().unsupported_ie_version}</p>
</div>
</div>
</#macro>
<#--Given an edit configuration template object, get the current value for a uri field using the field name-->
<#function getEditConfigLiteralValue config varName>
<#local literalValues = config.existingLiteralValues >
<#if (literalValues?keys?seq_contains(varName)) && (literalValues[varName]?size > 0)>
<#return literalValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Given an edit configuration template object, get the current value for a literal field using the field name-->
<#function getEditConfigUriValue config varName>
<#local uriValues = config.existingUriValues />
<#if (uriValues?keys?seq_contains(varName)) && (uriValues[varName]?size > 0)>
<#return uriValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Now check whether a given value returns either a uri or a literal value, if one empty then use other and
return - returns empty string if no value found-->
<#function getEditConfigValue config varName>
<#local returnValue = getEditConfigUriValue(config, varName) />
<#if (returnValue?length = 0)>
<#local returnValue = getEditConfigLiteralValue(config, varName) />
</#if>
<#return returnValue>
</#function>
<#--Given edit submission object find values-->
<#function getEditSubmissionLiteralValue submission varName>
<#local literalValues = submission.literalsFromForm >
<#if (literalValues?keys?seq_contains(varName)) && (literalValues[varName]?size > 0)>
<#return literalValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Given an edit configuration template object, get the current value for a literal field using the field name-->
<#function getEditSubmissionUriValue submission varName>
<#local uriValues = submission.urisFromForm />
<#if (uriValues?keys?seq_contains(varName)) && (uriValues[varName]?size > 0)>
<#return uriValues[varName][0] >
</#if>
<#return "">
</#function>
<#--Get edit submission value for either literal or uri-->
<#function getEditSubmissionValue submission varName>
<#local returnValue = getEditSubmissionUriValue(submission, varName) />
<#if (returnValue?length = 0)>
<#local returnValue = getEditSubmissionLiteralValue(submission, varName) />
</#if>
<#return returnValue>
</#function>
<#--Get the value for the form field, checking edit submission first and then edit configuration-->
<#function getFormFieldValue submission config varName>
<#local returnValue = "">
<#if submission?has_content && submission.submissionExists = true>
<#local returnValue = getEditSubmissionValue(submission varName)>
<#else>
<#local returnValue = getEditConfigValue(config varName)>
</#if>
<#return returnValue>
</#function>
<#--Check if submission error exists for a field name-->
<#function submissionErrorExists editSubmission fieldName>
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
<#if editSubmission.validationErrors?keys?seq_contains(fieldName)>
<#return true>
</#if>
</#if>
<#return false>
</#function>

View file

@ -1,41 +1,41 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% /***********************************************
Display a single Page in the most basic fashion.
The html <HEAD> is generated followed by the banners and menu.
After that the result of the jsp in the attribute bodyJsp is inserted.
Finally comes the footer.
request.attributes:
"bodyJsp" - jsp of the body of this page.
"title" - title of page
"css" - optional additional css for page
"scripts" - optional name of file containing <script> elements to be included in the page
"bodyAttr" - optional attributes for the <body> tag, e.g. 'onload': use leading space
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output
for debugging info.
bdc34 2006-02-03 created
**********************************************/
/*
String e = "";
if (request.getAttribute("bodyJsp") == null){
e+="basicPage.jsp expects that request parameter 'bodyJsp' be set to the jsp to display as the page body.\n";
}
if (request.getAttribute("title") == null){
e+="basicPage.jsp expects that request parameter 'title' be set to the title to use for page.\n";
}
if (request.getAttribute("css") == null){
e+="basicPage.jsp expects that request parameter 'css' be set to css to include in page.\n";
}
if( e.length() > 0 ){
throw new JspException(e);
}
*/
%>
<c:set var="bodyJsp"><c:out value="${requestScope.bodyJsp}" default="/debug.jsp"/></c:set>
<c:import url="${bodyJsp}"/>
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% /***********************************************
Display a single Page in the most basic fashion.
The html <HEAD> is generated followed by the banners and menu.
After that the result of the jsp in the attribute bodyJsp is inserted.
Finally comes the footer.
request.attributes:
"bodyJsp" - jsp of the body of this page.
"title" - title of page
"css" - optional additional css for page
"scripts" - optional name of file containing <script> elements to be included in the page
"bodyAttr" - optional attributes for the <body> tag, e.g. 'onload': use leading space
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output
for debugging info.
bdc34 2006-02-03 created
**********************************************/
/*
String e = "";
if (request.getAttribute("bodyJsp") == null){
e+="basicPage.jsp expects that request parameter 'bodyJsp' be set to the jsp to display as the page body.\n";
}
if (request.getAttribute("title") == null){
e+="basicPage.jsp expects that request parameter 'title' be set to the title to use for page.\n";
}
if (request.getAttribute("css") == null){
e+="basicPage.jsp expects that request parameter 'css' be set to css to include in page.\n";
}
if( e.length() > 0 ){
throw new JspException(e);
}
*/
%>
<c:set var="bodyJsp"><c:out value="${requestScope.bodyJsp}" default="/debug.jsp"/></c:set>
<c:import url="${bodyJsp}"/>

View file

@ -1,15 +1,15 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.MiscWebUtils" %>
<% /***********************************************
debug.jsp will just display the request info in a div.
It is uesful to use at the body jsp for a new controller before
you have writen the jsp that you intend to use.
bdc34 2006-02-06
**********************************************/
%>
<div class='debug'>
<%= MiscWebUtils.getReqInfo(request) %>
</div>
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.MiscWebUtils" %>
<% /***********************************************
debug.jsp will just display the request info in a div.
It is uesful to use at the body jsp for a new controller before
you have writen the jsp that you intend to use.
bdc34 2006-02-06
**********************************************/
%>
<div class='debug'>
<%= MiscWebUtils.getReqInfo(request) %>
</div>

View file

@ -1,41 +1,41 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="content" class="staticPageBackground">
<div class="feedbackForm">
<h2>${siteName} Email Users Form </h2>
<hr/>
<form name = "contact_form" action="mailusers" method="post">
<input type="hidden" name="RequiredFields" value="comments"/>
<input type="hidden" name="RequiredFieldsNames" value="Comments"/>
<input type="hidden" name="EmailFields" value="webuseremail"/>
<input type="hidden" name="EmailFieldsNames" value="emailaddress"/>
<input type="hidden" name="DeliveryType" value="comment"/>
<p class="normal">My email address is (e.g., userid<b>@institution.edu</b>):</p>
<input style="width:25%;" type="text" name="webuseremail" maxlength="255"/><br/><br/>
<p class="normal">My full name is:</p>
<input style="width:33%;" type="text" name="webusername" maxlength="255"/><br/><br/>
<h3>Enter your message below. This message will be emailed to all email addresses associated with user accounts. </h3>
<textarea name="s34gfd88p9x1" rows="10" cols="90"></textarea>
<div>
<input type="submit" id="submit" value="Send Mail" />
<input type="reset" class="delete" value="Clear Form" />
</div
<p style="font-weight: bold; margin-top: 1em">Thank you!</p>
</form>
</div><!--feedbackForm-->
</div><!--content, staticPageBackground-->
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="content" class="staticPageBackground">
<div class="feedbackForm">
<h2>${siteName} Email Users Form </h2>
<hr/>
<form name = "contact_form" action="mailusers" method="post">
<input type="hidden" name="RequiredFields" value="comments"/>
<input type="hidden" name="RequiredFieldsNames" value="Comments"/>
<input type="hidden" name="EmailFields" value="webuseremail"/>
<input type="hidden" name="EmailFieldsNames" value="emailaddress"/>
<input type="hidden" name="DeliveryType" value="comment"/>
<p class="normal">My email address is (e.g., userid<b>@institution.edu</b>):</p>
<input style="width:25%;" type="text" name="webuseremail" maxlength="255"/><br/><br/>
<p class="normal">My full name is:</p>
<input style="width:33%;" type="text" name="webusername" maxlength="255"/><br/><br/>
<h3>Enter your message below. This message will be emailed to all email addresses associated with user accounts. </h3>
<textarea name="s34gfd88p9x1" rows="10" cols="90"></textarea>
<div>
<input type="submit" id="submit" value="Send Mail" />
<input type="reset" class="delete" value="Clear Form" />
</div
<p style="font-weight: bold; margin-top: 1em">Thank you!</p>
</form>
</div><!--feedbackForm-->
</div><!--content, staticPageBackground-->