-
Notifications
You must be signed in to change notification settings - Fork 379
/
suggest_add_new_directory_entry_iframe.xhtml
64 lines (54 loc) · 2.3 KB
/
suggest_add_new_directory_entry_iframe.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<ui:composition template="/pages/popup_page.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:nxd="http://nuxeo.org/nxweb/document"
xmlns:nxl="http://nuxeo.org/nxforms/layout"
xmlns:nxu="http://nuxeo.org/nxweb/util">
<ui:define name="body">
<ui:include src="/incl/message_banner.xhtml"/>
<h3><h:outputText value="#{messages['title.create.vocabulary.entry']}" /></h3>
<nxu:set var="directoryNameForPopup"
value="#{request.getParameter('directoryNameForPopup')}"
cache="true">
<nxu:set var="directoryNameForPopup"
value="#{nxu:test(empty directoryNameForPopup, select2DirectoryActions.directoryName, directoryNameForPopup)}"
cache="true">
<c:if test="#{not empty directoryNameForPopup}">
<h:form id="suggestAddNewDirectoryEntry">
<h:message styleClass="errorMessage" for="suggestAddNewDirectoryEntry"
id="suggestAddNewDirectoryEntry_message" />
<div class="content">
<nxl:layout name="#{select2DirectoryActions.getCreationDirectoryEntryLayout(directoryNameForPopup)}"
mode="create"
value="#{select2DirectoryActions.getCreationDirectoryEntry(directoryNameForPopup)}" />
</div>
<input type="hidden" value="#{directoryNameForPopup}"
id="directoryNameForPopup" name="directoryNameForPopup" />
<h:panelGroup rendered="#{not nxu:hasMessages('suggestAddNewDirectoryEntry') and request.getParameter('postback') != 'false'}">
<script>
jQuery(document).ready(function() {
window.parent.jQuery.fancybox.close();
});
</script>
</h:panelGroup>
<p class="buttonsGadget">
<a4j:commandButton value="#{messages['command.create']}"
styleClass="button"
action="#{select2DirectoryActions.createDirectoryEntry}"
render="suggestAddNewDirectoryEntry" />
<a4j:commandButton value="#{messages['command.cancel']}"
styleClass="button"
action="#{select2DirectoryActions.cancelCreateDirectoryEntry}"
immediate="true"
oncomplete="window.parent.jQuery.fancybox.close();" />
</p>
</h:form>
</c:if>
</nxu:set>
</nxu:set>
</ui:define>
</ui:composition>