Mercurial > hg > ismi-richfaces
comparison src/main/webapp/events/transferEvent.xhtml @ 112:59f26a5ef2b3
AliasListenerObject adds aliases to ListenerObject. Change all forms to enable ALIAS for (historical) PLACE fields. Remove REPOSITORY from event forms.
author | casties |
---|---|
date | Tue, 13 Dec 2016 19:04:45 +0100 |
parents | 764f47286679 |
children | 07e4eae9027f |
comparison
equal
deleted
inserted
replaced
111:22a18bfc66b0 | 112:59f26a5ef2b3 |
---|---|
32 <a4j:ajax event="change" render="selectedWitness1" /> | 32 <a4j:ajax event="change" render="selectedWitness1" /> |
33 </h:selectOneMenu> | 33 </h:selectOneMenu> |
34 | 34 |
35 <h:panelGrid id="selectedWitness1" style="width: 500px;" columns="1" | 35 <h:panelGrid id="selectedWitness1" style="width: 500px;" columns="1" |
36 rendered="#{Session.transferEventForm.witness != null}"> | 36 rendered="#{Session.transferEventForm.witness != null}"> |
37 <h:outputLabel value="Witness associated:" /> | 37 <h:outputLabel value="Witness:" /> |
38 <h:outputLabel | 38 <h:outputLabel |
39 value="#{Session.transferEventForm.witness.ownValue} [ID=#{Session.transferEventForm.witness.id}]" /> | 39 value="#{Session.transferEventForm.witness.ownValue} [ID=#{Session.transferEventForm.witness.id}]" /> |
40 </h:panelGrid> | 40 </h:panelGrid> |
41 <h:outputLabel rendered="#{Session.transferEventForm.witness != null}" /> | 41 <h:outputLabel rendered="#{Session.transferEventForm.witness != null}" /> |
42 </a4j:outputPanel> | 42 </a4j:outputPanel> |
43 | 43 |
44 </h:panelGrid> | 44 </h:panelGrid> |
45 | 45 |
46 | 46 |
47 <h:outputLabel value="From"/> | 47 <h:outputLabel value="From"/> |
48 <h:panelGrid columns="1"> | 48 <h:panelGrid> |
49 <a4j:commandLink | 49 <h:outputLabel value="Person from whom transfer was made"/> |
50 value="#{(Session.transferEventForm.selectedPersonFrom) ? 'Change to institution' : 'Change to person'}" | 50 <ismi:autocomplete lo="#{Session.transferEventForm.personFromLo}" /> |
51 actionListener="#{Session.transferEventForm.listenerChangeSelectionFrom}" | |
52 render="fromPanel"/> | |
53 | |
54 <h:panelGrid | |
55 columns="1" | |
56 id="fromPanel"> | |
57 | |
58 <h:panelGrid rendered="#{Session.transferEventForm.selectedPersonFrom}"> | |
59 <h:outputLabel value="Person from whom transfer was made"/> | |
60 <ismi:autocomplete lo="#{Session.transferEventForm.personFromLo}" /> | |
61 </h:panelGrid> | |
62 | |
63 <h:panelGrid rendered="#{!Session.transferEventForm.selectedPersonFrom}"> | |
64 <h:outputLabel value="Institution from which transfer was made"/> | |
65 <ismi:autocomplete lo="#{Session.transferEventForm.repositoryFromLo}" /> | |
66 </h:panelGrid> | |
67 </h:panelGrid> | |
68 | |
69 | |
70 </h:panelGrid> | 51 </h:panelGrid> |
71 | 52 |
72 <h:outputLabel value="To"/> | 53 <h:outputLabel value="To"/> |
73 <h:panelGrid columns="1"> | 54 <h:panelGrid > |
74 | 55 <h:outputLabel value="Person to whom transfer was made"/> |
75 <a4j:commandLink | 56 <ismi:autocomplete lo="#{Session.transferEventForm.personToLo}" /> |
76 value="#{(Session.transferEventForm.selectedPersonTo) ? 'Change to institution' : 'Change to person'}" | |
77 actionListener="#{Session.transferEventForm.listenerChangeSelectionTo}" | |
78 render="toPanel"/> | |
79 | |
80 <h:panelGrid | |
81 columns="1" | |
82 id="toPanel"> | |
83 | |
84 <h:panelGrid rendered="#{Session.transferEventForm.selectedPersonTo}"> | |
85 <h:outputLabel value="Person to whom transfer was made"/> | |
86 <ismi:autocomplete lo="#{Session.transferEventForm.personToLo}" /> | |
87 </h:panelGrid> | |
88 | |
89 <h:panelGrid rendered="#{!Session.transferEventForm.selectedPersonTo}"> | |
90 <h:outputLabel value="Institution to which transfer was made"/> | |
91 <ismi:autocomplete lo="#{Session.transferEventForm.repositoryToLo}" /> | |
92 </h:panelGrid> | |
93 | |
94 </h:panelGrid> | |
95 | |
96 </h:panelGrid> | 57 </h:panelGrid> |
97 | 58 |
98 <h:outputLabel value="Options for transfer"/> | 59 <h:outputLabel value="Options for transfer"/> |
99 <h:selectOneMenu | 60 <h:selectOneMenu |
100 value="#{Session.transferEventForm.attributes['options_for_transfer']}"> | 61 value="#{Session.transferEventForm.attributes['options_for_transfer']}"> |
101 <f:selectItems value="#{Session.transferEventForm.suggestedTransferOptions}"/> | 62 <f:selectItems value="#{Session.transferEventForm.suggestedTransferOptions}"/> |
102 </h:selectOneMenu> | 63 </h:selectOneMenu> |
103 | 64 |
104 <h:outputLabel value="Price"/> | 65 <h:outputLabel value="Price"/> |
105 <h:inputText value="#{Session.transferEventForm.attributes['price']}"/> | 66 <h:inputText value="#{Session.transferEventForm.attributes['price']}"/> |
106 | 67 |
107 <h:outputLabel value="Original location"/> | 68 <h:outputLabel value="Original location"/> |
108 <h:panelGrid columns="1"> | 69 <ismi:autocomplete lo="#{Session.transferEventForm.placeOriginalLocationLo}" /> |
109 <a4j:commandLink | |
110 value="#{(Session.transferEventForm.selectedPlaceOriginalLocation) ? 'Change to institution' : 'Change to place'}" | |
111 actionListener="#{Session.transferEventForm.listenerChangeSelectionOriginalLocation}" | |
112 render="originalLocationPanel"/> | |
113 | |
114 <h:panelGrid columns="1" | |
115 id="originalLocationPanel"> | |
116 | |
117 <h:panelGrid rendered="#{Session.transferEventForm.selectedPlaceOriginalLocation}"> | |
118 <h:outputLabel value="Place"/> | |
119 <ismi:autocomplete lo="#{Session.transferEventForm.placeOriginalLocationLo}" /> | |
120 </h:panelGrid> | |
121 | |
122 <h:panelGrid rendered="#{!Session.transferEventForm.selectedPlaceOriginalLocation}"> | |
123 <h:outputLabel value="Institution"/> | |
124 <ismi:autocomplete lo="#{Session.transferEventForm.repositoryOriginalLocationLo}" /> | |
125 </h:panelGrid> | |
126 | |
127 </h:panelGrid> | |
128 | |
129 </h:panelGrid> | |
130 | 70 |
131 <h:outputLabel value="New location"/> | 71 <h:outputLabel value="New location"/> |
132 <h:panelGrid columns="1"> | 72 <ismi:autocomplete lo="#{Session.transferEventForm.placeNewLocationLo}" /> |
133 <a4j:commandLink | |
134 value="#{(Session.transferEventForm.selectedPlaceNewLocation) ? 'Change to institution' : 'Change to place'}" | |
135 actionListener="#{Session.transferEventForm.listenerChangeSelectionNewLocation}" | |
136 render="newLocationPanel"/> | |
137 | |
138 <h:panelGrid columns="1" | |
139 id="newLocationPanel"> | |
140 | |
141 <h:panelGrid rendered="#{Session.transferEventForm.selectedPlaceNewLocation}"> | |
142 <h:outputLabel value="Place"/> | |
143 <ismi:autocomplete lo="#{Session.transferEventForm.placeNewLocationLo}" /> | |
144 </h:panelGrid> | |
145 | |
146 <h:panelGrid rendered="#{!Session.transferEventForm.selectedPlaceNewLocation}"> | |
147 <h:outputLabel value="Institution"/> | |
148 <ismi:autocomplete lo="#{Session.transferEventForm.repositoryNewLocationLo}" /> | |
149 </h:panelGrid> | |
150 | |
151 </h:panelGrid> | |
152 | |
153 </h:panelGrid> | |
154 | 73 |
155 <h:outputLabel value="Notes"/> | 74 <h:outputLabel value="Notes"/> |
156 <h:inputTextarea cols="80" rows="5" | 75 <h:inputTextarea cols="80" rows="5" |
157 value="#{Session.transferEventForm.attributes['notes']}"/> | 76 value="#{Session.transferEventForm.attributes['notes']}"/> |
158 | 77 |
162 <h:outputLabel/> | 81 <h:outputLabel/> |
163 <h:commandButton | 82 <h:commandButton |
164 value="#{(empty Session.transferEventForm.event.id) ? 'Create' : 'Change'}" | 83 value="#{(empty Session.transferEventForm.event.id) ? 'Create' : 'Change'}" |
165 actionListener="#{Session.transferEventForm.listenerSave}"/> | 84 actionListener="#{Session.transferEventForm.listenerSave}"/> |
166 | 85 |
167 | |
168 </h:panelGrid> | 86 </h:panelGrid> |
169 | 87 |
170 </ui:composition> | 88 </ui:composition> |
171 </body> | 89 </body> |
172 </html> | 90 </html> |