]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/base.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / base.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
3                                 xmlns:f="http://java.sun.com/jsf/core"
4                                 xmlns:h="http://java.sun.com/jsf/html"
5                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6                                 xmlns:p="http://primefaces.org/ui"
7                                 xmlns:pm="http://primefaces.org/mobile">
8
9         <h:doctype rootElement="html" public="-//W3C//DTD XHTML 1.0 Transitional//EN" system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
10
11         <html lang="#{localizationController.locale.language}" xml:lang="#{localizationController.locale.language}" xmlns="http://www.w3.org/1999/xhtml">
12                 <f:view locale="#{localizationController.locale}" contentType="text/html" />
13
14                 <h:head>
15                         <f:facet name="first">
16                                 <ui:insert name="metadata" />
17
18                                 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
19                                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
20                                 <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
21                                 <meta name="apple-mobile-web-app-capable" content="yes" />
22                         </f:facet>
23
24                         <f:loadBundle var="msg" basename="org.mxchange.localization.bundle" />
25                         <f:loadBundle var="project" basename="org.mxchange.localization.project" />
26
27                         <h:outputStylesheet name="/css/default.css" />
28                         <h:outputStylesheet name="/css/layout.css" />
29
30                         <title>
31                                 <h:outputText value="#{initParam['project_title']}" />
32                                 <h:outputText value=" - " />
33                                 <ui:insert name="title">
34                                         <h:outputText value="Default title" />
35                                 </ui:insert>
36                         </title>
37                 </h:head>
38
39                 <h:body>
40                         <pm:header>
41                                 <div id="page-header">
42                                         <h1>
43                                                 <h:outputText value="#{initParam['project_title']} - " />
44
45                                                 <ui:insert name="title">
46                                                         <h:outputText value="Default title" />
47                                                 </ui:insert>
48                                         </h1>
49                                 </div>
50                         </pm:header>
51
52                         <h:panelGroup id="menu-content-wrapper" layout="block">
53                                 <div id="left-menu-container">
54                                         <ui:insert name="menu">
55                                                 <h:outputText value="Default menu" />
56                                         </ui:insert>
57
58                                         <ui:include src="/WEB-INF/templates/widgets/locale_change_widget.tpl" />
59                                 </div>
60
61                                 <h:panelGroup id="content_outer" class="content-container" layout="block">
62                                         <div id="content-header">
63                                                 <ui:insert name="content_header">
64                                                         <h:outputText value="Default content header" />
65                                                 </ui:insert>
66                                         </div>
67
68                                         <div id="content">
69                                                 <ui:insert name="content">
70                                                         <h:outputText value="Default content" />
71                                                 </ui:insert>
72                                         </div>
73                                 </h:panelGroup>
74                         </h:panelGroup>
75
76                         <h:panelGroup id="page-footer" layout="block">
77                                 <ui:insert name="footer">
78                                         <h:outputText value="Default footer" />
79                                 </ui:insert>
80                         </h:panelGroup>
81
82                         <h:panelGroup styleClass="error-container" layout="block">
83                                 <p:growl autoUpdate="true" showDetail="true" sticky="true" />
84
85                                 <p:ajaxExceptionHandler type="javax.faces.application.ViewExpiredException"
86                                                                                 update="exceptionDialog"
87                                                                                 onexception="PF('exceptionDialog').show();" />
88
89                                 <p:dialog id="exceptionDialog" closable="true" closeOnEscape="true" header="Exception '#{pfExceptionHandler.type}' occured!" widgetVar="exceptionDialog"
90                                                   height="500px">
91                                         <div class="para">
92                                                 <h:outputText value="#{msg.EXCEPTION_MESSAGE}:" />
93                                                 <h:outputText value="#{pfExceptionHandler.message}" />
94                                         </div>
95
96                                         <div class="para">
97                                                 <h:outputText value="#{msg.EXCEPTION_STACK_TRACE}:" />
98                                                 <h:outputText value="#{pfExceptionHandler.formattedStackTrace}" escape="false" />
99                                         </div>
100
101                                         <div class="para">
102                                                 <p:button onclick="window.location.href = document.location.href;"
103                                                                   value="#{msg.RELOAD_PAGE}"
104                                                                   rendered="#{pfExceptionHandler.type == 'javax.faces.application.ViewExpiredException'}" />
105                                         </div>
106                                 </p:dialog>
107                         </h:panelGroup>
108                 </h:body>
109         </html>
110 </ui:composition>