<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<script type="text/javascript">
function processEditDelete(id) {
	var isProceed  = confirm("Are you sure you want to delete this Configuration?");
	if (isProceed) {
	    document.location.href="../admin/configuration.form?actionRequired=delete&meetingScheduleId="+id;
    }else{
        return false;
     }
}
function saveProperties(){
	document.getElementById('action').value="";
	document.getElementById('configurationForm').submit();
}
</script>
<br/><br/>
<smvc:form id="configurationForm" action="../admin/configuration.form" modelAttribute="emdtProperties" method="post">
	<input type="hidden" name="redirectParams" value="<c:out value="${requestScope['javax.servlet.forward.query_string']}"/>" />
	<smvc:hidden path="id" />
	<smvc:hidden path="key" />
	<smvc:hidden path="action" id="action" />

	<table width="500">
		<tr>
			<td>
				<fieldset class="dialogBox">
					<legend>
						<div>Login Screen Message</div>
					</legend>
					<div>
						<span class="helpmessage">This information message will be displayed to users on the Login screen</span>
					</div>
					<smvc:textarea path="value" cols="80" rows="5" />
					<div style="text-align: right">
					<input type="button" value="Save" onclick="saveProperties();return false;" />
					</div>
				</fieldset>

				<c:if test="${not empty successMsg}">
					<span class="info">
						<c:out value="${successMsg}" />
					</span>
				</c:if>
				<c:if test="${not empty errMsg}">
					<span class="error">
						<c:out value="${errMsg}" />
					</span>
				</c:if>

			</td>
		</tr>
	</table>

</smvc:form>
