Updated templates
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 11:54:00 +0200
changeset 77 cf7ff7b5cbf3
parent 76 777ca38e9d26
child 78 2f9f4c3cd4e8
Updated templates
src/pyams_default_theme/templates/layout.pt
src/pyams_default_theme/templates/preview-layout.pt
--- a/src/pyams_default_theme/templates/layout.pt	Mon Jul 09 11:53:51 2018 +0200
+++ b/src/pyams_default_theme/templates/layout.pt	Mon Jul 09 11:54:00 2018 +0200
@@ -22,28 +22,33 @@
 </head>
 <body class="no-margin no-padding">
 
-	<!-- Page header -->
-	<div id="page-header" tal:content="structure provider:pyams.header">Header</div>
-	<!-- End page header -->
+	<div class="page">
 
-	<!-- Main panel -->
-	<div id="main" class="no-margin" role="main">
+		<!-- Page header -->
+		<tal:var content="structure provider:pyams.header">Header</tal:var>
+		<tal:var content="structure provider:pyams.banner">Banner</tal:var>
+		<!-- End page header -->
+
+		<!-- Main panel -->
+		<div id="main" class="no-margin" role="main">
 
-		<!-- Content -->
-		<div id="content" style="opacity: 1;">
-			<!--[if lt IE 9]>
-			<h1 i18n:translate="">Your browser is too old. Please install version 9 or higher of Internet Explorer.</h1>
-			<![endif]-->
-			<tal:var content="structure provider:pagelet" />
+			<!-- Content -->
+			<div id="content" style="opacity: 1;">
+				<!--[if lt IE 9]>
+				<h1 i18n:translate="">Your browser is too old. Please install version 9 or higher of Internet Explorer.</h1>
+				<![endif]-->
+				<tal:var content="structure provider:pagelet" />
+			</div>
+			<!-- end content -->
+
 		</div>
-		<!-- end content -->
+		<!-- end main panel -->
 
-	</div>
-	<!-- end main panel -->
+		<!-- Page footer -->
+		<tal:var content="structure provider:pyams.footer">Header</tal:var>
+		<!-- End page footer -->
 
-	<!-- Page footer -->
-	<div id="page-footer" tal:content="structure provider:pyams.footer">Header</div>
-	<!-- End page footer -->
+	</div>  <!-- page -->
 
 </body>
 </html>
--- a/src/pyams_default_theme/templates/preview-layout.pt	Mon Jul 09 11:53:51 2018 +0200
+++ b/src/pyams_default_theme/templates/preview-layout.pt	Mon Jul 09 11:54:00 2018 +0200
@@ -1,14 +1,11 @@
 <!DOCTYPE html>
-<html lang="en" i18n:domain="pyams_default_theme"
+<html class="no-js" lang="en" i18n:domain="pyams_default_theme"
 	  tal:define="config extension:configuration;
 				  anonymous request.principal.id == '__none__';"
 	  tal:attributes="lang request.locale_name">
 <head>
 	<tal:var replace="structure extension:metas" />
 
-	<title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
-		   tal:content="config.title"></title>
-
 	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
@@ -24,22 +21,26 @@
 	<!-- end javascript extensions -->
 
 </head>
-<body class="no-margin no-padding">
+<body class="alert--enabled">
 
-	<!-- Main panel -->
-	<div id="main" class="no-margin" role="main">
+	<div class="page">
+
+		<!-- Main panel -->
+		<div id="main" class="no-margin" role="main">
 
-		<!-- Content -->
-		<div id="content" style="opacity: 1;">
-			<!--[if lt IE 9]>
-			<h1 i18n:translate="">Your browser is too old. Please install version 9 or higher of Internet Explorer.</h1>
-			<![endif]-->
-			<tal:var content="structure provider:pagelet" />
+			<!-- Content -->
+			<div id="content" style="opacity: 1;">
+				<!--[if lt IE 9]>
+				<h1 i18n:translate="">Your browser is too old. Please install version 9 or higher of Internet Explorer.</h1>
+				<![endif]-->
+				<tal:var content="structure provider:pagelet" />
+			</div>
+			<!-- end content -->
+
 		</div>
-		<!-- end content -->
+		<!-- end main panel -->
 
-	</div>
-	<!-- end main panel -->
+	</div>  <!-- page -->
 
 </body>
 </html>