-
Notifications
You must be signed in to change notification settings - Fork 476
/
404.xhtml
46 lines (45 loc) · 3 KB
/
404.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:o="http://omnifaces.org/ui"
xmlns:jsf="http://xmlns.jcp.org/jsf">
<h:head>
</h:head>
<h:body>
<ui:composition template="/dataverse_template.xhtml">
<ui:param name="pageTitle" value="#{bundle['error.404.page.title']} - #{dataverseServiceBean.findRootDataverse().name}"/>
<ui:param name="showDataverseHeader" value="false"/>
<ui:param name="loginRedirectPage" value="dataverse.xhtml"/>
<ui:param name="showMessagePanel" value="#{true}"/>
<ui:define name="body">
<div class="alert alert-danger" role="alert" style="margin-top:3em;">
<o:form useRequestURI="true">
<h:outputText value="#{bundle['error.404.message']} " escape="false"/>
<h:outputFormat value="#{bundle['error.support.message']}" escape="false">
<o:param>
<p:commandLink value="#{settingsWrapper.supportTeamName}" oncomplete="PF('contactForm').show()" update=":contactDialog" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{null}"/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
</p:commandLink>
</o:param>
</h:outputFormat>
</o:form>
</div>
<div class="row text-center" jsf:rendered="#{!widgetWrapper.widgetView}">
<o:form useRequestURI="true">
<input id="search404" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" size="28" value="" placeholder="#{bundle['header.search.title']}"
style="font-size:1em;margin-right:1em;" onkeypress="if (event.keyCode == 13) {window.location = '/?q=' + document.getElementById('search404').value; return false;}" />
<a href="#" id="search404button" class="btn btn-default" onclick="window.location = '/?q=' + document.getElementById('search404').value; return false;">
<span class="glyphicon glyphicon-search"/> #{bundle.find}
</a>
</o:form>
</div>
</ui:define>
</ui:composition>
</h:body>
</html>