vitro/webapp/web/templates/edit/formContact.jsp
manolobevia 049a288be6 NIHVIVO-3323: Refactored Site information form to reflect Wilma theme
NIHVIVO-3324: Applied wilma some look and feel to back-end forms
2011-11-16 17:22:17 +00:00

67 lines
1.9 KiB
Text

<%-- $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="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}" />
<h2>${title}</h2>
<c:choose>
<c:when test='${_action == "insert"}'>
<h3 class="blue">Creating New Record</h3>
</c:when>
<c:otherwise>
<h3 class="blue">Editing Existing Record</h3>
</c:otherwise>
</c:choose>
<!--<span class="entryFormHeadInstructions">(<sup>*</sup> Required Fields)</span>-->
<span class="warning">${globalErrorMsg}</span>
<jsp:include page="${formJsp}"/>
<br />
<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="Save 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>
</form>
</div><!--editingform-->