<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
		"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
		"http://tiles.apache.org/dtds/tiles-config_2_1.dtd">

<tiles-definitions>
	
	<!-- Base templates -->
	<definition name="pageTemplate" template="/WEB-INF/jsp/pageTemplate/pageTemplate.jsp" />
	
	<definition name="rightSidebarBodyTemplate" template="/WEB-INF/jsp/pageTemplate/bodyTemplates/rightSidebarTemplate.jsp" />
	
	<definition name="titledTemplate" template="/WEB-INF/jsp/pageTemplate/bodyTemplates/titledTemplate.jsp">
		<put-attribute name="viewLinks" value="" />
		<put-attribute name="actionLinks" value="" />
	</definition>
	
	<!-- List page -->
	<definition name="listTitledTemplate" extends="titledTemplate">
		<put-attribute name="viewLinks" value="/WEB-INF/jsp/pageTemplate/links/jsonXmlViewLinks.jsp" />
		<put-attribute name="actionLinks" value="/WEB-INF/jsp/pageTemplate/links/listPageActionLinks.jsp" />
	</definition>
	<definition name="listPageTemplate" extends="pageTemplate">
		<put-attribute name="content" value="listTitledTemplate" />
	</definition>
	
	<!-- Details page -->
	<definition name="detailsTitledTemplate" extends="titledTemplate">
		<put-attribute name="viewLinks" value="/WEB-INF/jsp/pageTemplate/links/jsonXmlViewLinks.jsp" />
		<put-attribute name="actionLinks" value="/WEB-INF/jsp/pageTemplate/links/detailsPageActionLinks.jsp" />
	</definition>
	<definition name="detailsPageTemplate" extends="pageTemplate">
		<put-attribute name="content">
			<definition extends="rightSidebarBodyTemplate">
				<put-attribute name="sidebar" value="/WEB-INF/jsp/pageTemplate/navigation/sidebarMenu.jsp" />
				<put-attribute name="content" value="detailsTitledTemplate" />
			</definition>
		</put-attribute>
	</definition>
	
	<!-- Basic titled page -->
	<definition name="titledPageTemplate" extends="pageTemplate">
		<put-attribute name="content" value="titledTemplate" />
	</definition>
	
	<!-- Login page -->
	<definition name="login" extends="pageTemplate">
		<put-attribute name="content" value="/WEB-INF/jsp/login.jsp" />
	</definition>
</tiles-definitions>
