Mercurial > hg > LGServer
comparison src/main/webapp/home/branchEditor.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 | 43f4cbe04ea1 |
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 <h:form> | |
15 | |
16 <ace:dialog id="dialog" | |
17 header="Message" | |
18 closable="false" | |
19 visible="#{!empty sessionBean.branchEditor.suggestionUserList}" | |
20 modal="true" | |
21 draggable="false"> | |
22 <h:panelGrid columns="1"> | |
23 <ace:dataTable value="#{sessionBean.branchEditor.suggestionUserList}" var="contributor"> | |
24 <ace:column> | |
25 <h:commandLink value="#{contributor.userName}" actionListener="#{sessionBean.branchEditor.listenerAddContributor}"/> | |
26 </ace:column> | |
27 </ace:dataTable> | |
28 <h:commandButton | |
29 value="Close" actionListener="#{sessionBean.branchEditor.listenerCloseContributorsDialog}" | |
30 style="margin-left: auto;margin-right: auto; width:100%;"/> | |
31 </h:panelGrid> | |
32 </ace:dialog> | |
33 </h:form> | |
34 | |
35 | |
36 <ice:form styleClass="content"> | |
37 | |
38 <ice:outputLabel value="Branch Editor" styleClass="subTitle"/> | |
39 | |
40 <h:panelGrid columns="1"> | |
41 <h:outputLabel value="No branch loaded!" rendered="#{sessionBean.branchEditor.currentBranch == null}"/> | |
42 </h:panelGrid> | |
43 | |
44 <h:panelGrid columns="2" rendered="#{sessionBean.branchEditor.currentBranch != null}"> | |
45 | |
46 <h:outputLabel value="Branch" styleClass="subTitle"/> | |
47 <h:panelGrid columns="2" styleClass="tableComponent"> | |
48 | |
49 <h:outputLabel value="Id"/> | |
50 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.id}"/> | |
51 | |
52 <h:outputLabel value="Label"/> | |
53 <h:panelGrid columns="2"> | |
54 <h:inputText value="#{sessionBean.branchEditor.currentBranch.label}"/> | |
55 <h:commandButton value="Update" actionListener="#{sessionBean.branchEditor.listenerUpdateBranch}"/> | |
56 </h:panelGrid> | |
57 | |
58 <h:outputLabel value="Section Name"/> | |
59 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.sectionName}"/> | |
60 | |
61 <h:outputLabel value="Section Id"/> | |
62 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.sectionId}"/> | |
63 | |
64 <h:outputLabel value="Book Name"/> | |
65 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.book.name}"/> | |
66 | |
67 <h:outputLabel value="Book Id"/> | |
68 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.book.id}"/> | |
69 | |
70 <h:outputLabel value="Creator"/> | |
71 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.username}"/> | |
72 | |
73 <h:outputLabel value="Created"/> | |
74 <h:outputLabel value="#{sessionBean.branchEditor.currentBranch.fomattedCreation}"/> | |
75 | |
76 <h:outputLabel value="Contributors"/> | |
77 <h:panelGrid columns="2"> | |
78 <ace:dataTable | |
79 value="#{sessionBean.branchEditor.contributors}" | |
80 var="soContributor"> | |
81 <ace:column> | |
82 <h:outputLabel value="#{soContributor.obj.userName}"/> | |
83 </ace:column> | |
84 <ace:column> | |
85 <h:selectBooleanCheckbox value="#{soContributor.selected}"/> | |
86 </ace:column> | |
87 </ace:dataTable> | |
88 <h:panelGrid columns="1"> | |
89 <h:commandButton | |
90 value="Add Contributors" | |
91 actionListener="#{sessionBean.branchEditor.listenerShowContributorsDialog}"/> | |
92 <h:commandButton | |
93 value="Remove Contributors" | |
94 actionListener="#{sessionBean.branchEditor.listenerRemoveContributor}"/> | |
95 </h:panelGrid> | |
96 | |
97 </h:panelGrid> | |
98 | |
99 </h:panelGrid> | |
100 | |
101 <h:outputLabel value="Current File" styleClass="subTitle"/> | |
102 <h:panelGrid columns="2" styleClass="tableComponent"> | |
103 | |
104 <h:outputLabel value="ID"/> | |
105 <h:outputText value="#{sessionBean.branchEditor.currentLastFile.id}"/> | |
106 | |
107 <h:outputLabel value="Version"/> | |
108 <h:outputText value="#{sessionBean.branchEditor.currentLastFile.version}"/> | |
109 | |
110 <h:outputLabel value="User"/> | |
111 <h:outputText value="#{sessionBean.branchEditor.currentLastFile.username}"/> | |
112 | |
113 <h:outputLabel value="File Name"/> | |
114 <h:outputText value="#{sessionBean.branchEditor.currentLastFile.fileName}"/> | |
115 | |
116 <h:outputLabel value="Created"/> | |
117 <h:outputText value="#{sessionBean.branchEditor.currentLastFile.fomattedCreation}"/> | |
118 | |
119 <h:outputText/> | |
120 <h:panelGrid columns="1"> | |
121 <h:inputTextarea value="#{sessionBean.branchEditor.text}" style="width: 400px; height: 200px;'"/> | |
122 <h:commandButton value="Save Changes" actionListener="#{sessionBean.branchEditor.listenerSaveText}"/> | |
123 </h:panelGrid> | |
124 | |
125 </h:panelGrid> | |
126 | |
127 | |
128 <h:outputLabel value="All files" styleClass="subTitle"/> | |
129 <ace:dataTable value="#{sessionBean.branchEditor.allFiles}" var="file" styleClass="tableComponent"> | |
130 <ace:column headerText="ID"> | |
131 <h:outputText value="#{file.id}"/> | |
132 </ace:column> | |
133 <ace:column headerText="Version"> | |
134 <h:outputText value="#{file.version}"/> | |
135 </ace:column> | |
136 <ace:column headerText="User"> | |
137 <h:outputText value="#{file.username}"/> | |
138 </ace:column> | |
139 <ace:column headerText="Created"> | |
140 <h:outputText value="#{file.fomattedCreation}"/> | |
141 </ace:column> | |
142 <ace:column headerText="Extraction Interface"> | |
143 | |
144 </ace:column> | |
145 <ace:column headerText="Export Table"> | |
146 | |
147 </ace:column> | |
148 <ace:column headerText="Text"> | |
149 <h:outputLink | |
150 value="#{appBean.rootServer}/rest/text/getFileText?fileId=#{file.id}" | |
151 target="_blank"> | |
152 <h:graphicImage value="#{appBean.showImage}"/> | |
153 </h:outputLink> | |
154 </ace:column> | |
155 </ace:dataTable> | |
156 | |
157 </h:panelGrid> | |
158 | |
159 | |
160 </ice:form> | |
161 | |
162 </ui:define> | |
163 | |
164 | |
165 | |
166 </ui:composition> |