Mercurial > hg > ismi-richfaces
annotate src/main/webapp/resources/components/ismi/refWidget.xhtml @ 70:954d6200336d
display live reference from Drupal in edit form (ticket #71).
author | casties |
---|---|
date | Wed, 16 Dec 2015 20:53:12 +0100 |
parents | 4ec8d4cfad26 |
children | 8d93f3a0108f |
rev | line source |
---|---|
7 | 1 <?xml version="1.0" encoding="utf-8"?> |
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:composite="http://java.sun.com/jsf/composite"> | |
9 | |
10 <composite:interface> | |
11 <composite:attribute name="entityForm" required="true" /> | |
12 </composite:interface> | |
13 | |
14 <composite:implementation> | |
15 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
16 <!-- TODO: fix this! --> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
17 <script type="text/javascript" src="../imageServer/resources/js/diva4ismi.js"></script> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
18 |
7 | 19 <h:panelGrid columns="3" styleClass="createPanel" columnClasses="createPanelFirstColumn" |
20 id="refArea"> | |
21 | |
22 <h:panelGrid columns="1"> | |
23 <h:outputText value="EndNote" /> | |
24 <h:outputText value="References" /> | |
25 </h:panelGrid> | |
26 | |
27 <h:panelGrid columns="1"> | |
28 | |
29 <h:panelGrid columns="1"> | |
30 | |
31 <rich:dataTable | |
32 rendered="#{!empty cc.attrs.entityForm.endNoteRefTable.list}" | |
33 value="#{cc.attrs.entityForm.endNoteRefTable.list}" | |
34 var="item"> | |
35 | |
36 <rich:column> | |
37 <f:facet name="header"> | |
38 <h:outputText value="ISMI Id" /> | |
39 </f:facet> | |
40 <h:outputText value="#{item.obj.ent.id}" /> | |
41 </rich:column> | |
42 | |
43 <rich:column> | |
44 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
45 <h:outputText value="Reference Id" /> |
7 | 46 </f:facet> |
47 <h:outputText value="#{item.obj.endNoteId}" /> | |
48 </rich:column> | |
49 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
50 <rich:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
51 <f:facet name="header"> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
52 <h:outputText value="Reference display (Drupal)" /> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
53 </f:facet> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
54 <script>showBibliographyEntryFormatted("#{item.obj.endNoteId}", null, "#bibl-entry-#{item.obj.ent.id}")</script> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
55 <span id="bibl-entry-#{item.obj.ent.id}">(loading reference...)</span> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
56 </rich:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
57 |
7 | 58 <rich:column> |
59 <f:facet name="header"> | |
60 <h:outputText value="Additional Information" /> | |
61 </f:facet> | |
62 <h:outputText value="#{item.obj.addInformation}" /> | |
63 </rich:column> | |
64 | |
65 <rich:column> | |
66 <f:facet name="header"> | |
67 <h:outputText value="Edit" /> | |
68 </f:facet> | |
69 <a4j:commandLink | |
70 action="#{cc.attrs.entityForm.endNoteRefTable.actionEditRef}"> | |
71 <h:graphicImage url="#{ApplicationBean1.editImage}" /> | |
72 <a4j:ajax event="click" render="refArea" /> | |
73 </a4j:commandLink> | |
74 </rich:column> | |
75 <rich:column> | |
76 <h:selectBooleanCheckbox value="#{item.selected}"/> | |
77 </rich:column> | |
78 </rich:dataTable> | |
79 | |
80 <h:panelGrid columns="2"> | |
81 <h:commandButton value="Remove" title="Remove references" | |
82 image="#{ApplicationBean1.imgRemove16}" | |
83 action="#{cc.attrs.entityForm.endNoteRefTable.actionRemoveRef}" | |
84 rendered="#{cc.attrs.entityForm.endNoteRefTable.hasReferences}" | |
85 onclick="#{ApplicationBean1.JSConfirmationDelete}" | |
86 style="margin-right: 20px;" /> | |
87 | |
88 <h:commandButton value="New" title="New reference" | |
89 image="#{ApplicationBean1.imgNew16}" | |
90 action="#{cc.attrs.entityForm.endNoteRefTable.actionCreateRef}" | |
91 style="margin-right: 20px;" /> | |
92 </h:panelGrid> | |
93 | |
94 </h:panelGrid> | |
95 | |
96 </h:panelGrid> | |
97 | |
98 <h:panelGroup rendered="#{!empty cc.attrs.entityForm.endNoteRefTable.ref}"> | |
99 <div style="z-index: 100;" class="rf-pp-shade"> | |
100 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
101 </div> | |
102 | |
103 <h:panelGrid columns="1" class="rf-pp-cntr" | |
104 style="height: 100px; left: 100px; position: fixed; top: 50px; z-index: 100; width: 500px; "> | |
105 | |
106 <div class="rf-pp-shdw" | |
107 style="opacity: 0.1; height: 100px; left: 5px; top: 5px; bottom: -5px;"> | |
108 </div> | |
109 <div class="rf-pp-hdr " style="cursor: default;"> | |
110 <div class="rf-pp-hdr-cnt">EndNote Reference</div> | |
111 </div> | |
112 | |
113 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"> | |
114 <h:panelGrid columns="1" class="rf-pp-cnt"> | |
115 | |
116 <h:panelGrid columns="2"> | |
117 <h:outputLabel value="EndNote Id" /> | |
118 <h:inputText value="#{cc.attrs.entityForm.endNoteRefTable.ref.endNoteId}" /> | |
119 | |
120 <h:outputLabel value="EndNote Content" /> | |
121 <h:inputTextarea | |
122 value="#{cc.attrs.entityForm.endNoteRefTable.ref.endNoteContent}" | |
123 rows="10" cols="50" /> | |
124 | |
125 <h:outputLabel value="Additional Information" /> | |
126 <h:inputTextarea | |
127 value="#{cc.attrs.entityForm.endNoteRefTable.ref.addInformation}" | |
128 rows="3" cols="50" /> | |
129 | |
130 <h:outputText /> | |
131 <h:panelGrid columns="2"> | |
132 | |
133 <a4j:commandButton value="Save" | |
134 actionListener="#{cc.attrs.entityForm.endNoteRefTable.actionListenerSave}" | |
135 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"> | |
136 <a4j:ajax event="click" render="refArea" /> | |
137 </a4j:commandButton> | |
138 | |
139 <a4j:commandButton value="Cancel" | |
140 actionListener="#{cc.attrs.entityForm.endNoteRefTable.listenerCancel}"> | |
141 <a4j:ajax event="click" render="refArea" /> | |
142 </a4j:commandButton> | |
143 | |
144 </h:panelGrid> | |
145 </h:panelGrid> | |
146 | |
147 </h:panelGrid> | |
148 </h:panelGrid> | |
149 </h:panelGrid> | |
150 </h:panelGroup> | |
151 | |
152 | |
153 </h:panelGrid> | |
154 | |
155 </composite:implementation> | |
156 </html> |