<?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:h="http://java.sun.com/jsf/html" version="2.0">
	<f:subview id="leftMenu" rendered="#{! empty visitBean.user}">
		<div id="LEFT_MENU" class="panel">
		<div class="blok">
			
		<div class="menutitle">Menu</div>
		<h:form>
			<!-- admin -->
			<h:panelGrid border="0" columns="1"
				rendered="#{visitBean.user.role == 1}">
				<h:commandLink action="#{addEditUserBean.toAddNewUserPage}">
					<h:outputText value="#{resources['leftMenu.addUser']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="users_list">
					<h:outputText value="#{resources['leftMenu.usersList']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="all_papers_list">
					<h:outputText value="#{resources['leftMenu.papersList']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="#{addEditUserBean.toEditUserPage}">
					<h:outputText value="#{resources['leftMenu.editAccount']}"></h:outputText>
				</h:commandLink>
			</h:panelGrid>
			<!-- autor -->
			<h:panelGrid border="0" columns="1"
				rendered="#{visitBean.user.role == 2}">
				<h:commandLink action="#{addEditPaperBean.toAddPaperPage}">
					<h:outputText value="#{resources['leftMenu.addPaper']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="author_papers_list">
					<h:outputText value="#{resources['leftMenu.papersList']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="#{addEditUserBean.toEditUserPage}">
					<h:outputText value="#{resources['leftMenu.editAccount']}"></h:outputText>
				</h:commandLink>
			</h:panelGrid>
			<!-- recenzent -->
			<h:panelGrid border="0" columns="1"
				rendered="#{visitBean.user.role == 3}">
				<h:commandLink action="reviewer_papers_list">
					<h:outputText value="#{resources['leftMenu.papersList']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="#{addEditUserBean.toEditUserPage}">
					<h:outputText value="#{resources['leftMenu.editAccount']}"></h:outputText>
				</h:commandLink>
			</h:panelGrid>
		</h:form></div>
		</div>
	</f:subview>
</jsp:root>