comparison src/main/webapp/entry/components/misidentification.xhtml @ 120:71638720fe2f

working on MISIDENTIFICATION for witnesses.
author casties
date Fri, 06 Jan 2017 20:41:35 +0100
parents
children 6f0e9a333c15
comparison
equal deleted inserted replaced
119:4aa8c425685d 120:71638720fe2f
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:h="http://java.sun.com/jsf/html"
4 xmlns:f="http://java.sun.com/jsf/core"
5 xmlns:ui="http://java.sun.com/jsf/facelets"
6 xmlns:a4j="http://richfaces.org/a4j"
7 xmlns:rich="http://richfaces.org/rich"
8 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
9 <body>
10 <ui:composition>
11
12 <h:panelGrid id="misidentArea">
13
14 <h:panelGroup rendered="#{CurrentWitness.misidentTable.misident != null}">
15 <div style="z-index: 100;" class="rf-pp-shade">
16 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
17 </div>
18
19 <h:panelGrid columns="1" class="rf-pp-cntr"
20 style="height: 350px; left: 470px; position: fixed; top: 219px; width: 500px; z-index: 100;">
21
22 <div class="rf-pp-shdw"
23 style="opacity: 0.1; width: 500px; height: 350px; left: 5px; top: 5px; bottom: -5px;">
24 </div>
25 <div class="rf-pp-hdr " style="cursor: default;">
26 <div class="rf-pp-hdr-cnt">EndNote Reference</div>
27 </div>
28
29 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
30 style="width: 500px; height: 329px;">
31 <h:panelGrid columns="1" class="rf-pp-cnt">
32
33 <h:panelGrid columns="1">
34 <h:panelGrid columns="2">
35
36 <h:outputLabel value="EndNote Id" />
37 <h:inputText size="80"
38 value="#{CurrentWitness.misidentTable.misident.ref.endNoteId}" />
39
40 <h:outputLabel value="EndNote Content" />
41 <h:inputTextarea
42 value="#{CurrentWitness.misidentTable.misident.ref.endNoteContent}"
43 rows="10" cols="80" />
44
45 <h:outputLabel value="Additional Information" />
46 <h:inputTextarea
47 value="#{CurrentWitness.misidentTable.misident.ref.addInformation}"
48 rows="3" cols="80" />
49
50 </h:panelGrid>
51 <a4j:commandButton value="OK"
52 actionListener="#{CurrentWitness.misidentTable.listenerSaveRef}"
53 render="misidentArea"/>
54 </h:panelGrid>
55
56 </h:panelGrid>
57 </h:panelGrid>
58 </h:panelGrid>
59
60 </h:panelGroup>
61
62
63
64
65 <h:panelGrid border="0" columns="1">
66 <h:panelGrid columns="1"
67 rendered="#{!empty CurrentWitness.misidentTable.list}">
68
69 <rich:dataTable value="#{CurrentWitness.misidentTable.list}" var="item">
70
71 <rich:column>
72 <f:facet name="header">
73 <h:outputText value="Title" />
74 </f:facet>
75 <h:outputText
76 value="#{item.obj.person.ownValue}" />
77 </rich:column>
78
79 <rich:column>
80 <f:facet name="header">
81 <h:outputText value="Title (translit)" />
82 </f:facet>
83 <h:outputText
84 value="#{item.obj.person.ownValue}" />
85 </rich:column>
86
87 <rich:column>
88 <f:facet name="header">
89 <h:outputText value="Author" />
90 </f:facet>
91 <h:outputText
92 value="[#{item.obj.person.id}] #{item.obj.person.ownValue}" />
93 </rich:column>
94
95 <rich:column>
96 <f:facet name="header">
97 <h:outputText value="Reference" />
98 </f:facet>
99 <h:outputText value="#{item.obj.ref.endNoteId}" />
100 </rich:column>
101
102 <rich:column>
103 <f:facet name="header">
104 <h:outputText value="Note" />
105 </f:facet>
106 <h:outputText value="#{item.obj.ref.addInformation}" />
107 </rich:column>
108
109 <rich:column>
110 <f:facet name="header">
111 <h:outputText value="Edit" />
112 </f:facet>
113 <a4j:commandLink
114 actionListener="#{CurrentWitness.misidentTable.listenerEditRef}">
115 <h:graphicImage url="#{ApplicationBean1.editImage}" />
116 <a4j:ajax event="click" render="misidentArea" />
117 </a4j:commandLink>
118 </rich:column>
119 <rich:column>
120 <h:selectBooleanCheckbox value="#{item.selected}" />
121 </rich:column>
122 </rich:dataTable>
123
124
125 <a4j:commandButton value="Remove"
126 actionListener="#{CurrentWitness.misidentTable.listenerRemove}"
127 onclick="#{ApplicationBean1.JSConfirmationDelete}"
128 render="misidentArea"/>
129 </h:panelGrid>
130
131 <h:panelGrid columns="2">
132 <ismi:autocomplete lo="#{CurrentWitness.misidentTable.lo}" />
133 <a4j:commandButton value="Add"
134 actionListener="#{CurrentWitness.misidentTable.listenerCreate}"
135 render="misidentArea"/>
136 </h:panelGrid>
137 </h:panelGrid>
138
139 </h:panelGrid>
140
141 </ui:composition>
142 </body>
143 </html>