Mercurial > hg > ismi-richfaces
annotate src/main/webapp/resources/components/ismi/refWidget.xhtml @ 143:1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Task-Url: https://it-dev.mpiwg-berlin.mpg.de/tracs/ismi/ticket/110
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 23 Jun 2017 20:40:18 +0200 |
parents | 8d93f3a0108f |
children | 76d2dda8d4de |
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="References" /> | |
24 </h:panelGrid> | |
25 | |
26 <h:panelGrid columns="1"> | |
27 | |
28 <h:panelGrid columns="1"> | |
29 | |
30 <rich:dataTable | |
31 rendered="#{!empty cc.attrs.entityForm.endNoteRefTable.list}" | |
32 value="#{cc.attrs.entityForm.endNoteRefTable.list}" | |
33 var="item"> | |
34 | |
35 <rich:column> | |
36 <f:facet name="header"> | |
37 <h:outputText value="ISMI Id" /> | |
38 </f:facet> | |
39 <h:outputText value="#{item.obj.ent.id}" /> | |
40 </rich:column> | |
41 | |
42 <rich:column> | |
43 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
44 <h:outputText value="Reference Id" /> |
7 | 45 </f:facet> |
46 <h:outputText value="#{item.obj.endNoteId}" /> | |
47 </rich:column> | |
48 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
49 <rich:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
50 <f:facet name="header"> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
51 <h:outputText value="Reference display (Drupal)" /> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
52 </f:facet> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
53 <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
|
54 <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
|
55 </rich:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
56 |
7 | 57 <rich:column> |
58 <f:facet name="header"> | |
59 <h:outputText value="Additional Information" /> | |
60 </f:facet> | |
61 <h:outputText value="#{item.obj.addInformation}" /> | |
62 </rich:column> | |
63 | |
64 <rich:column> | |
65 <f:facet name="header"> | |
66 <h:outputText value="Edit" /> | |
67 </f:facet> | |
68 <a4j:commandLink | |
69 action="#{cc.attrs.entityForm.endNoteRefTable.actionEditRef}"> | |
70 <h:graphicImage url="#{ApplicationBean1.editImage}" /> | |
71 <a4j:ajax event="click" render="refArea" /> | |
72 </a4j:commandLink> | |
73 </rich:column> | |
74 <rich:column> | |
75 <h:selectBooleanCheckbox value="#{item.selected}"/> | |
76 </rich:column> | |
77 </rich:dataTable> | |
78 | |
79 <h:panelGrid columns="2"> | |
80 <h:commandButton value="Remove" title="Remove references" | |
81 image="#{ApplicationBean1.imgRemove16}" | |
82 action="#{cc.attrs.entityForm.endNoteRefTable.actionRemoveRef}" | |
83 rendered="#{cc.attrs.entityForm.endNoteRefTable.hasReferences}" | |
84 onclick="#{ApplicationBean1.JSConfirmationDelete}" | |
85 style="margin-right: 20px;" /> | |
86 | |
87 <h:commandButton value="New" title="New reference" | |
88 image="#{ApplicationBean1.imgNew16}" | |
89 action="#{cc.attrs.entityForm.endNoteRefTable.actionCreateRef}" | |
90 style="margin-right: 20px;" /> | |
91 </h:panelGrid> | |
92 | |
93 </h:panelGrid> | |
94 | |
95 </h:panelGrid> | |
96 | |
97 <h:panelGroup rendered="#{!empty cc.attrs.entityForm.endNoteRefTable.ref}"> | |
98 <div style="z-index: 100;" class="rf-pp-shade"> | |
99 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
100 </div> | |
101 | |
102 <h:panelGrid columns="1" class="rf-pp-cntr" | |
103 style="height: 100px; left: 100px; position: fixed; top: 50px; z-index: 100; width: 500px; "> | |
104 | |
105 <div class="rf-pp-shdw" | |
106 style="opacity: 0.1; height: 100px; left: 5px; top: 5px; bottom: -5px;"> | |
107 </div> | |
108 <div class="rf-pp-hdr " style="cursor: default;"> | |
88 | 109 <div class="rf-pp-hdr-cnt">Bibliographical Reference</div> |
7 | 110 </div> |
111 | |
112 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"> | |
113 <h:panelGrid columns="1" class="rf-pp-cnt"> | |
114 | |
115 <h:panelGrid columns="2"> | |
88 | 116 <h:outputLabel value="ISMI Bibliography" /> |
117 <h:outputLink value="https://ismi.mpiwg-berlin.mpg.de/drupal-ismi/search/biblio" | |
118 target="_blank"> | |
119 Search Bibliography | |
120 </h:outputLink> | |
121 | |
122 <h:outputLabel value="Reference ID" /> | |
123 <h:inputText value="#{cc.attrs.entityForm.endNoteRefTable.ref.endNoteId}" | |
124 size="50"/> | |
7 | 125 |
88 | 126 <h:outputLabel value="Reference text (optional)" /> |
7 | 127 <h:inputTextarea |
128 value="#{cc.attrs.entityForm.endNoteRefTable.ref.endNoteContent}" | |
88 | 129 rows="6" cols="50" /> |
7 | 130 |
88 | 131 <h:outputLabel value="Additional information" /> |
7 | 132 <h:inputTextarea |
133 value="#{cc.attrs.entityForm.endNoteRefTable.ref.addInformation}" | |
134 rows="3" cols="50" /> | |
135 | |
136 <h:outputText /> | |
137 <h:panelGrid columns="2"> | |
138 | |
139 <a4j:commandButton value="Save" | |
140 actionListener="#{cc.attrs.entityForm.endNoteRefTable.actionListenerSave}" | |
141 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"> | |
142 <a4j:ajax event="click" render="refArea" /> | |
143 </a4j:commandButton> | |
144 | |
145 <a4j:commandButton value="Cancel" | |
146 actionListener="#{cc.attrs.entityForm.endNoteRefTable.listenerCancel}"> | |
147 <a4j:ajax event="click" render="refArea" /> | |
148 </a4j:commandButton> | |
149 | |
150 </h:panelGrid> | |
151 </h:panelGrid> | |
152 | |
153 </h:panelGrid> | |
154 </h:panelGrid> | |
155 </h:panelGrid> | |
156 </h:panelGroup> | |
157 | |
158 | |
159 </h:panelGrid> | |
160 | |
161 </composite:implementation> | |
162 </html> |