Mercurial > hg > LGServer
comparison src/main/webapp/home/searchPage.xhtml @ 0:7682c04c63a8
First commit of the source code!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 14:50:41 +0100 |
parents | |
children | 5316e79f9a27 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7682c04c63a8 |
---|---|
1 <ui:composition xmlns="http://www.w3.org/1999/xhtml" | |
2 xmlns:h="http://java.sun.com/jsf/html" | |
3 xmlns:f="http://java.sun.com/jsf/core" | |
4 xmlns:c="http://java.sun.com/jsp/jstl/core" | |
5 xmlns:ace="http://www.icefaces.org/icefaces/components" | |
6 xmlns:ice="http://www.icesoft.com/icefaces/component" | |
7 xmlns:icecore="http://www.icefaces.org/icefaces/core" | |
8 xmlns:ui="http://java.sun.com/jsf/facelets" | |
9 xmlns:cl="http://java.sun.com/jsf/composite/jsf/cl" | |
10 template="../templates/publicTemplate.xhtml"> | |
11 | |
12 <ui:define name="content"> | |
13 | |
14 <ice:form styleClass="content"> | |
15 | |
16 <ice:outputLabel value="Search" styleClass="subTitle"/> | |
17 | |
18 <h:panelGrid columns="2" style="width: 300px; margin-left: auto;margin-right: auto;"> | |
19 | |
20 <ace:autoCompleteEntry | |
21 id="searchTextInput" | |
22 value="#{sessionBean.searchPage.term}" | |
23 textChangeListener="#{sessionBean.searchPage.changeSectionName}" style="width: 300px;" | |
24 valueChangeListener="#{sessionBean.searchPage.changeSectionSearch}"> | |
25 <f:selectItems value="#{sessionBean.searchPage.sectionSuggestion}"/> | |
26 </ace:autoCompleteEntry> | |
27 | |
28 <h:commandButton | |
29 value="Search" | |
30 title="Search Submit" | |
31 actionListener="#{sessionBean.searchPage.listenerSearch}" | |
32 image="#{appBean.searchImage}"/> | |
33 </h:panelGrid> | |
34 | |
35 <h:outputLabel value="#{sessionBean.searchPage.message}"/> | |
36 | |
37 <h:panelGrid columns="1" rendered="#{!empty sessionBean.searchPage.sectionList}" style="width: 90%; margin-left: auto;margin-right: auto;"> | |
38 <ace:dataTable var="section" value="#{sessionBean.searchPage.sectionList}"> | |
39 <ace:column headerText="Book Id"> | |
40 <h:outputText value="#{section.book.id}"/> | |
41 </ace:column> | |
42 <ace:column headerText="Book Name"> | |
43 <h:outputText value="#{section.book.name}"/> | |
44 </ace:column> | |
45 <ace:column headerText="Section Id"> | |
46 <h:outputText value="#{section.id}"/> | |
47 </ace:column> | |
48 <ace:column headerText="Section Name"> | |
49 <h:outputText value="#{section.name}"/> | |
50 </ace:column> | |
51 <ace:column headerText="Volume"> | |
52 <h:outputText value="#{section.book.volume}"/> | |
53 </ace:column> | |
54 <ace:column headerText="Period"> | |
55 <h:outputText value="#{section.book.period}"/> | |
56 </ace:column> | |
57 <ace:column headerText="Author"> | |
58 <h:outputText value="#{section.book.author}"/> | |
59 </ace:column> | |
60 <ace:column headerText="Edition"> | |
61 <h:outputText value="#{section.book.edition}"/> | |
62 </ace:column> | |
63 <ace:column headerText="Create Branch"> | |
64 <h:commandButton | |
65 value="Create Branch in Extraction Interface" | |
66 title="Create Branch in Extraction Interface" | |
67 onclick="sectionInExtractionInterface(#{section.id}, '#{section.name}', #{section.book.id}, '#{section.book.name}', #{sessionBean.user.id}, '#{appBean.extractionInterfaceUrl}');" | |
68 image="#{appBean.newBranchImage}"/> | |
69 </ace:column> | |
70 <ace:column headerText="Existing Branches"> | |
71 <ace:dataTable value="#{section.branches}" var="branch" rendered="#{!empty section.branches}"> | |
72 <ace:column> | |
73 <h:outputLabel value="[#{branch.id}] #{branch.label}"/> | |
74 </ace:column> | |
75 <ace:column> | |
76 <h:commandButton value="Edit Branch in Extraction Interface" | |
77 onclick="branchInExtractionInterface(#{branch.id}, #{branch.currentLastFileId}, #{branch.sectionId}, '#{branch.sectionName}', #{branch.book.id}, '#{branch.book.name}', #{sessionBean.user.id}, '#{appBean.extractionInterfaceUrl}');" | |
78 image="#{appBean.editBranchImage}" title="Edit Branch in Extraction Interface" | |
79 styleClass="iconLink"/> | |
80 <h:outputLink | |
81 title="Manage Branch" | |
82 value="#{appBean.rootServer}/home/branchEditor.xhtml?branchId=#{branch.id}" | |
83 styleClass="iconLink"> | |
84 <h:graphicImage value="#{appBean.branchDetailsImage}"/> | |
85 </h:outputLink> | |
86 </ace:column> | |
87 </ace:dataTable> | |
88 </ace:column> | |
89 </ace:dataTable> | |
90 </h:panelGrid> | |
91 | |
92 | |
93 </ice:form> | |
94 | |
95 </ui:define> | |
96 | |
97 | |
98 | |
99 </ui:composition> |