<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:t="http://myfaces.apache.org/tomahawk" 
	xmlns:h="http://java.sun.com/jsf/html" version="2.0">
	
	<jsp:directive.page language="java"
		contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
	<jsp:text>
		<![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
	</jsp:text>
	<jsp:text>
		<![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
	</jsp:text>
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<jsp:include page='../includes/header.jsp'>
		<jsp:param name="title" value="add paper page" />
	</jsp:include>
	</head>
	<body>	
	<f:view>
		<jsp:include page='../includes/header_body.jsp' />
		<jsp:include page='../includes/topMenu.jsp' />
		<jsp:include page='../includes/leftMenu.jsp' />	
		<div id="CONTENT" class="text2">		
		<h:form id="addEditPaperForm" enctype="multipart/form-data">
			<h:panelGrid border="0" columns="3">
				<f:facet name="header">
					<h:outputText value="#{resources['addEditPaper.form.label.addNewVersion']} #{visitBean.currentPaper.title}"></h:outputText>					
				</f:facet>
				
				<h:outputLabel for="file" value="#{resources['addEditPaper.field.label.file']}" />
                <t:inputFileUpload id="file" value="#{addEditPaperBean.uploadedFile}"  required="true" />
                <h:message for="file"  />
										
				
				<h:panelGroup />
					<h:commandButton value="#{resources['addEditPaper.button.label.addNewVersion']}" action="#{addEditPaperBean.addNewVersion}"/>					
				<h:panelGroup />			
			</h:panelGrid>
		</h:form>	
		</div>
		<jsp:include page='../includes/footer.jsp' />	
	</f:view>
	</body>
	</html>
</jsp:root>