<%@ include file="/includes.jsp" %>
<html:html xhtml="true">
	<head>
		<title>Import</title>
		<html:base/>
		<link rel="stylesheet" href="../webapp.css" type="text/css" />
		<script src="../js/webapp.js" type="text/javascript"></script>
	</head>
	<body style="margin: 0 0 0 0" onload="window.focus()">
		<center>
			<br/>
			<br/>
			<html:form enctype="multipart/form-data" action="/emdt/importFormObject?${_csrf.parameterName}=${_csrf.token}" >
				<input type="hidden" name="method" value="importFormObject" id="dispatchMethod"/>
				<table  class="dialogBox">
					<tr>
						<td colspan="2" class="dialogTitle">Import <bean:write name="importFormObjectForm" property="formType"/></td>
					</tr>
					<tr>
						<td class="label">File:</td>
						<td class="input"><html:file property="xmlDoc"/></td>
					</tr>
					<tr>
						<td colspan="2" class="input"><html:submit value="Upload" /></td>
					</tr>
				</table>
			</html:form>
			<!-- ERRORS -->
			<logic:messagesPresent>
				<tr>
					<td align="center" class="error">
						<html:messages id="error">
							<bean:write name="error"/><br/>
						</html:messages>
					</td>
				</tr>
			</logic:messagesPresent>
			<!--END ERRORS -->
		</center>
	</body>	
</html:html>
