Mercurial > hg > ismi-richfaces
annotate src/main/webapp/templates/main_template.xhtml @ 96:895bf7494d17
first version of new import-merge.
author | casties |
---|---|
date | Thu, 27 Oct 2016 20:19:57 +0200 |
parents | 8d93f3a0108f |
children | df6ca03c4bf9 29bd63f749c6 |
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 | |
96 | 150 <rich:dropDownMenu mode="ajax" rendered="#{Session.canMerge}"> |
151 <f:facet name="label"> | |
152 <h:panelGroup> | |
153 <h:outputText value="Merge" /> | |
154 </h:panelGroup> | |
155 </f:facet> | |
7 | 156 |
96 | 157 <rich:menuItem label="Merge Entities" |
158 onclick="document.location.href='#{ApplicationBean1.root}/merge/generalMerge.xhtml'"> | |
159 </rich:menuItem> | |
160 | |
161 <rich:menuItem label="Join References" | |
162 onclick="document.location.href='#{ApplicationBean1.root}/merge/referenceMerge.xhtml'"> | |
163 </rich:menuItem> | |
164 | |
165 <rich:menuItem label="Merge Import List" | |
166 onclick="document.location.href='#{ApplicationBean1.root}/merge/importMerge.xhtml'"> | |
167 </rich:menuItem> | |
168 </rich:dropDownMenu> | |
85 | 169 |
7 | 170 <h:outputLink rendered="#{Session.canCreate}" |
171 value="#{ApplicationBean1.root}/browse/entityRepository.xhtml">Browse Repository</h:outputLink> | |
172 | |
173 <h:outputLink rendered="#{Session.canCreate}" | |
174 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml">Entity Details</h:outputLink> | |
175 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
51
diff
changeset
|
176 <rich:dropDownMenu mode="ajax" rendered="#{Session.canCreate}"> |
7 | 177 <f:facet name="label"> |
178 <h:panelGroup> | |
179 <h:outputText value="Search" /> | |
180 </h:panelGroup> | |
181 </f:facet> | |
182 <rich:menuItem label="Simple Search" | |
183 onclick="document.location.href='#{ApplicationBean1.root}/search/simpleSearch.xhtml'"> | |
184 </rich:menuItem> | |
185 <rich:menuItem label="Advanced Search" | |
186 onclick="document.location.href='#{ApplicationBean1.root}/search/advancedSearch.xhtml'"> | |
187 </rich:menuItem> | |
188 </rich:dropDownMenu> | |
189 | |
190 <h:outputLink rendered="#{Session.canCreate}" | |
191 value="#{ApplicationBean1.root}/public/publicCodices.xhtml">Codices marked as public</h:outputLink> | |
192 | |
57 | 193 <h:outputLink rendered="#{Session.admin}" |
7 | 194 value="#{ApplicationBean1.root}/search/biographies.xhtml">Biographies</h:outputLink> |
195 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
196 <h:outputLink rendered="#{Session.admin}" |
7 | 197 value="#{ApplicationBean1.root}/imageServer/displayDigiList.xhtml">Image Server</h:outputLink> |
78 | 198 |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
199 <h:outputLink rendered="#{Session.admin}" |
7 | 200 value="#{ApplicationBean1.root}/public/dynamicPageEditor.xhtml">Dynamic Page Editor</h:outputLink> |
201 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
202 <h:outputLink rendered="#{Session.admin}" |
7 | 203 value="#{ApplicationBean1.root}/defs/defEditor.xhtml">Definition Editor</h:outputLink> |
204 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
205 <h:outputLink rendered="#{Session.admin}" |
7 | 206 value="#{ApplicationBean1.root}/admin/admin.xhtml">Admin</h:outputLink> |
207 | |
208 | |
209 | |
210 </rich:toolbar> | |
211 | |
212 <h:panelGrid styleClass="ajaxStatus"> | |
213 <a4j:outputPanel ajaxRendered="true"> | |
214 <a4j:status> | |
215 <f:facet name="start"> | |
216 <h:graphicImage | |
217 value="/resources/images/connectionStatus/connect_active_03.gif" /> | |
218 </f:facet> | |
219 </a4j:status> | |
220 </a4j:outputPanel> | |
221 </h:panelGrid> | |
222 | |
223 <div id="page"> | |
224 <ui:insert name="content" /> | |
225 </div> | |
226 | |
227 </h:form> | |
228 | |
229 </h:body> | |
230 | |
231 </html> |