Mercurial > hg > ismi-richfaces
annotate src/main/webapp/templates/main_template.xhtml @ 78:20c76ff72cf2
enable imageserver menu for admins.
author | casties |
---|---|
date | Tue, 28 Jun 2016 16:19:24 -0400 |
parents | bba950221e71 |
children | fd7beb701724 |
rev | line source |
---|---|
7 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml" | |
3 xmlns:h="http://java.sun.com/jsf/html" | |
4 xmlns:f="http://java.sun.com/jsf/core" | |
5 xmlns:ui="http://java.sun.com/jsf/facelets" | |
6 xmlns:a4j="http://richfaces.org/a4j" | |
7 xmlns:rich="http://richfaces.org/rich"> | |
8 | |
9 <h:head> | |
10 <title>ismi</title> | |
11 <h:outputStylesheet name="/css/ismi-db/default.css" /> | |
12 <h:outputStylesheet name="/css/ismi-db/popupPanel.css" /> | |
13 | |
14 <h:outputScript name="/js/autocomplete.js" /> | |
15 | |
16 </h:head> | |
17 | |
18 <h:body> | |
19 | |
20 <h:form> | |
21 | |
22 <!-- Message --> | |
23 <h:panelGrid id="msgPp"> | |
24 <a4j:outputPanel ajaxRendered="true"> | |
25 | |
26 | |
27 <h:panelGroup rendered="#{!empty Session.generalMsgList}"> | |
28 <div style="z-index: 100;" class="rf-pp-shade"> | |
29 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
30 </div> | |
31 | |
32 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"> | |
33 | |
34 <div class="ismi-pp-hdr"> | |
35 <div class="ismi-pp-hdr-cnt">Message</div> | |
36 </div> | |
37 | |
38 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel"> | |
39 <h:panelGrid columns="2"> | |
40 <h:graphicImage url="/resources/images/info_32.png" /> | |
41 <h:panelGrid style="text-align:left"> | |
42 <h:dataTable value="#{Session.generalMsgList}" var="msg" | |
43 rows="10"> | |
44 <h:column> | |
45 <h:outputText value="#{msg}" /> | |
46 </h:column> | |
47 </h:dataTable> | |
48 </h:panelGrid> | |
49 </h:panelGrid> | |
50 <a4j:commandButton value="OK" | |
51 actionListener="#{Session.actionCloseGeneralMsgDialog}" | |
52 render="msgPp" /> | |
53 </h:panelGrid> | |
54 | |
55 </h:panelGrid> | |
56 | |
57 </h:panelGroup> | |
58 </a4j:outputPanel> | |
59 </h:panelGrid> | |
60 | |
61 <!-- Message --> | |
62 <h:panelGrid id="errorMsgPp"> | |
63 <a4j:outputPanel ajaxRendered="true"> | |
64 <h:panelGroup rendered="#{!empty Session.errorMsgList}"> | |
65 <div style="z-index: 100;" class="rf-pp-shade"> | |
66 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
67 </div> | |
68 | |
69 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"> | |
70 | |
71 <div class="ismi-pp-hdr"> | |
72 <div class="ismi-pp-hdr-cnt">Message Error</div> | |
73 </div> | |
74 | |
75 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel"> | |
76 <h:panelGrid columns="2"> | |
77 <h:graphicImage url="/resources/images/error_32.png" /> | |
78 <h:panelGrid style="text-align:left"> | |
79 <h:dataTable value="#{Session.errorMsgList}" var="msg" | |
80 rows="10"> | |
81 <h:column> | |
82 <h:outputText value="#{msg}" /> | |
83 </h:column> | |
84 </h:dataTable> | |
85 </h:panelGrid> | |
86 </h:panelGrid> | |
87 <a4j:commandButton value="OK" | |
88 actionListener="#{Session.actionCloseErrorMsgDialog}" | |
89 render="errorMsgPp" /> | |
90 </h:panelGrid> | |
91 </h:panelGrid> | |
92 </h:panelGroup> | |
93 </a4j:outputPanel> | |
94 </h:panelGrid> | |
95 | |
96 <div id="header"> | |
97 | |
98 <div id="icon"> | |
99 <div id="iconContent"> | |
100 <h:graphicImage | |
101 url="/resources/images/ismi_icon.png" width="90"/> | |
102 </div> | |
103 </div> | |
104 <div id="headerContent"> | |
105 <h1> | |
62
bba950221e71
cleanup. site name on page configurable with openmind.properties "instance-name".
casties
parents:
57
diff
changeset
|
106 <a href="#{ApplicationBean1.root}">#{ApplicationBean1.confService.instanceName}</a> |
7 | 107 </h1> |
108 <p>Islamic Scientific Manuscripts Initiative</p> | |
109 </div> | |
110 </div> | |
111 | |
112 | |
113 <div id="login"> | |
114 <div id="loginContent"> | |
115 <h:panelGrid columns="4"> | |
116 <h:commandLink value="login" rendered="#{Session.user == null}" | |
117 actionListener="#{Session.listenerDisplayLoginDialog}" /> | |
118 <h:outputText value="Logged in as: #{Session.username}" | |
119 rendered="#{Session.user != null}" /> | |
120 | |
121 <h:commandLink value="logout" action="#{Session.logout}" | |
122 rendered="#{Session.user != null}" | |
123 onclick="#{ApplicationBean1.JSConfirmationLogout}" /> | |
124 | |
125 <h:outputText value="|" rendered="#{Session.user != null}" /> | |
126 <h:commandLink value="change password" | |
127 action="#{Session.toProfile}" rendered="#{Session.user != null}" /> | |
128 </h:panelGrid> | |
129 </div> | |
130 </div> | |
131 | |
132 <!-- ################ Menu ################ --> | |
133 <rich:toolbar height="26px" styleClass="menu"> | |
134 | |
135 | |
136 <rich:dropDownMenu mode="ajax" rendered="#{Session.canCreate}"> | |
137 <f:facet name="label"> | |
138 <h:panelGroup> | |
139 <h:outputText value="Create" /> | |
140 </h:panelGroup> | |
141 </f:facet> | |
142 <rich:menuItem label="Create Entry" | |
143 onclick="document.location.href='#{ApplicationBean1.root}/entry/createEntity.xhtml'"> | |
144 </rich:menuItem> | |
145 <rich:menuItem label="Create Event" | |
146 onclick="document.location.href='#{ApplicationBean1.root}/events/eventForm.xhtml'"> | |
147 </rich:menuItem> | |
148 </rich:dropDownMenu> | |
149 | |
150 <h:outputLink rendered="#{Session.canCreate}" | |
151 value="#{ApplicationBean1.root}/merge/generalMerge.xhtml">Merge</h:outputLink> | |
152 | |
153 <h:outputLink rendered="#{Session.canCreate}" | |
154 value="#{ApplicationBean1.root}/browse/entityRepository.xhtml">Browse Repository</h:outputLink> | |
155 | |
156 <h:outputLink rendered="#{Session.canCreate}" | |
157 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml">Entity Details</h:outputLink> | |
158 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
51
diff
changeset
|
159 <rich:dropDownMenu mode="ajax" rendered="#{Session.canCreate}"> |
7 | 160 <f:facet name="label"> |
161 <h:panelGroup> | |
162 <h:outputText value="Search" /> | |
163 </h:panelGroup> | |
164 </f:facet> | |
165 <rich:menuItem label="Simple Search" | |
166 onclick="document.location.href='#{ApplicationBean1.root}/search/simpleSearch.xhtml'"> | |
167 </rich:menuItem> | |
168 <rich:menuItem label="Advanced Search" | |
169 onclick="document.location.href='#{ApplicationBean1.root}/search/advancedSearch.xhtml'"> | |
170 </rich:menuItem> | |
171 </rich:dropDownMenu> | |
172 | |
173 <h:outputLink rendered="#{Session.canCreate}" | |
174 value="#{ApplicationBean1.root}/public/publicCodices.xhtml">Codices marked as public</h:outputLink> | |
175 | |
57 | 176 <h:outputLink rendered="#{Session.admin}" |
7 | 177 value="#{ApplicationBean1.root}/search/biographies.xhtml">Biographies</h:outputLink> |
178 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
179 <h:outputLink rendered="#{Session.admin}" |
7 | 180 value="#{ApplicationBean1.root}/imageServer/displayDigiList.xhtml">Image Server</h:outputLink> |
78 | 181 |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
182 <h:outputLink rendered="#{Session.admin}" |
7 | 183 value="#{ApplicationBean1.root}/public/dynamicPageEditor.xhtml">Dynamic Page Editor</h:outputLink> |
184 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
185 <h:outputLink rendered="#{Session.admin}" |
7 | 186 value="#{ApplicationBean1.root}/defs/defEditor.xhtml">Definition Editor</h:outputLink> |
187 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
188 <h:outputLink rendered="#{Session.admin}" |
7 | 189 value="#{ApplicationBean1.root}/admin/admin.xhtml">Admin</h:outputLink> |
190 | |
191 | |
192 | |
193 </rich:toolbar> | |
194 | |
195 <h:panelGrid styleClass="ajaxStatus"> | |
196 <a4j:outputPanel ajaxRendered="true"> | |
197 <a4j:status> | |
198 <f:facet name="start"> | |
199 <h:graphicImage | |
200 value="/resources/images/connectionStatus/connect_active_03.gif" /> | |
201 </f:facet> | |
202 </a4j:status> | |
203 </a4j:outputPanel> | |
204 </h:panelGrid> | |
205 | |
206 <div id="page"> | |
207 <ui:insert name="content" /> | |
208 </div> | |
209 | |
210 </h:form> | |
211 | |
212 </h:body> | |
213 | |
214 </html> |