Mercurial > hg > LGServer
comparison src/main/webapp/home/mainPage.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 <ice:outputLabel value="User's Branches" styleClass="subTitle"/> | |
16 | |
17 <h:panelGrid columns="1"> | |
18 | |
19 <h:commandButton value="Reload" actionListener="#{sessionBean.listenerReloadBranches}"/> | |
20 | |
21 <h:panelGrid columns="1" rendered="#{!empty sessionBean.branches}"> | |
22 <ace:dataTable value="#{sessionBean.branches}" var="soBranch"> | |
23 | |
24 <ace:column headerText="ID"> | |
25 <h:outputText value="#{soBranch.obj.id}"/> | |
26 </ace:column> | |
27 <ace:column headerText="Book ID"> | |
28 <h:outputText value="#{soBranch.obj.book.id}"/> | |
29 </ace:column> | |
30 <ace:column headerText="Book Name"> | |
31 <h:outputText value="#{soBranch.obj.book.name}"/> | |
32 </ace:column> | |
33 <ace:column headerText="Section ID"> | |
34 <h:outputText value="#{soBranch.obj.sectionId}"/> | |
35 </ace:column> | |
36 <ace:column headerText="Section Name"> | |
37 <h:outputText value="#{soBranch.obj.sectionName}"/> | |
38 </ace:column> | |
39 <ace:column headerText="Label"> | |
40 <h:outputText value="#{soBranch.obj.label}"/> | |
41 </ace:column> | |
42 <ace:column headerText="Contributors"> | |
43 <ace:dataTable value="#{soBranch.obj.contributorsNameList}" var="contributor"> | |
44 <ace:column> | |
45 <h:outputLabel value="#{contributor}"/> | |
46 </ace:column> | |
47 </ace:dataTable> | |
48 </ace:column> | |
49 <ace:column headerText="Creation"> | |
50 <h:outputText value="#{soBranch.obj.fomattedCreation}"/> | |
51 </ace:column> | |
52 <ace:column headerText="Las Change"> | |
53 <h:outputText value="#{soBranch.obj.fomattedLastChange}"/> | |
54 </ace:column> | |
55 <ace:column headerText="Extraction Interface"> | |
56 <h:commandButton value="Load" | |
57 onclick="branchInExtractionInterface(#{soBranch.obj.id}, #{soBranch.obj.currentLastFileId}, #{soBranch.obj.sectionId}, '#{soBranch.obj.sectionName}', #{soBranch.obj.book.id}, '#{soBranch.obj.book.name}', #{sessionBean.user.id}, '#{appBean.extractionInterfaceUrl}');" | |
58 image="#{appBean.editBranchImage}" | |
59 title="Edit Branch in Extraction Interface"/> | |
60 </ace:column> | |
61 <ace:column headerText="Dataverse"> | |
62 <h:commandButton value="Publish file" image="#{appBean.publishImage}" | |
63 title="Publish in Dataverse (TODO)"/> | |
64 </ace:column> | |
65 <ace:column headerText="Manage"> | |
66 <h:outputLink | |
67 value="#{appBean.rootServer}/home/branchEditor.xhtml?branchId=#{soBranch.obj.id}" | |
68 title="Manage Branch"> | |
69 <h:graphicImage value="#{appBean.branchDetailsImage}"/> | |
70 </h:outputLink> | |
71 </ace:column> | |
72 <ace:column headerText="Select"> | |
73 <h:selectBooleanCheckbox value="#{soBranch.selected}"/> | |
74 </ace:column> | |
75 </ace:dataTable> | |
76 <h:commandButton value="Delete" actionListener="#{sessionBean.listenerDeleteBranch}" onclick="#{appBean.JSConfirmationDelete}"/> | |
77 </h:panelGrid> | |
78 | |
79 </h:panelGrid> | |
80 | |
81 | |
82 </ice:form> | |
83 | |
84 </ui:define> | |
85 | |
86 | |
87 | |
88 </ui:composition> |