Mercurial > hg > ismi-richfaces
diff src/main/webapp/events/transferEvent.xhtml @ 213:38c13c8e9b78
change transfer event from witness to codex.
author | casties |
---|---|
date | Tue, 03 Dec 2019 19:08:31 +0100 |
parents | 07e4eae9027f |
children |
line wrap: on
line diff
--- a/src/main/webapp/events/transferEvent.xhtml Mon Nov 04 15:45:56 2019 +0100 +++ b/src/main/webapp/events/transferEvent.xhtml Tue Dec 03 19:08:31 2019 +0100 @@ -22,29 +22,113 @@ <h:outputLabel value="Own value" /> <h:outputLabel value="#{Session.transferEventForm.event.ownValue}" /> - <h:outputLabel value="Text"/> - <h:panelGrid columns="1"> - <ismi:autocomplete lo="#{Session.transferEventForm.textLo}" /> - - <a4j:outputPanel ajaxRendered="true"> - <h:selectOneMenu - rendered="#{Session.transferEventForm.textLo.statusImage.ok}" - value="#{Session.transferEventForm.witnessId}" - valueChangeListener="#{Session.transferEventForm.listenerChangeWitness}"> - <f:selectItems value="#{Session.transferEventForm.witnessList}" /> - <a4j:ajax event="change" render="selectedWitness1" /> - </h:selectOneMenu> - - <h:panelGrid id="selectedWitness1" style="width: 500px;" columns="1" - rendered="#{Session.transferEventForm.witness != null}"> - <h:outputLabel value="Witness:" /> - <h:outputLabel - value="#{Session.transferEventForm.witness.ownValue} [ID=#{Session.transferEventForm.witness.id}]" /> - </h:panelGrid> - <h:outputLabel rendered="#{Session.transferEventForm.witness != null}" /> - </a4j:outputPanel> - - </h:panelGrid> + <h:outputText value="Codex" styleClass="titlePanel"/> + <h:panelGrid columns="4" styleClass="createPanel" + columnClasses="createPanelFirstColumn" id="digiCodexPanel"> + + <h:outputLabel value="Country" /> + <ismi:autocomplete lo="#{Session.transferEventForm.codexEditor.countryLo}" /> + <h:outputText /> + <h:panelGrid> + <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" + rendered="#{!empty Session.transferEventForm.codexEditor.countryLo.entity.id}" + actionListener="#{Session.transferEventForm.codexEditor.editThisCountryAction}" /> + </h:panelGrid> + + <h:outputLabel value="Place/City" /> + <ismi:autocomplete lo="#{Session.transferEventForm.codexEditor.cityLo}" /> + <h:panelGrid> + <h:selectOneMenu + rendered="#{!empty Session.transferEventForm.codexEditor.citiesInCurrentCountry}" + valueChangeListener="#{Session.transferEventForm.codexEditor.inCurrentCountryListener}"> + <f:selectItems value="#{Session.transferEventForm.codexEditor.citiesInCurrentCountry}" /> + <a4j:ajax event="change" render="digiCodexPanel" /> + </h:selectOneMenu> + </h:panelGrid> + <h:panelGrid> + <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" + rendered="#{!empty Session.transferEventForm.codexEditor.cityLo.entity.id}" + actionListener="#{Session.transferEventForm.codexEditor.editThisCityAction}" /> + </h:panelGrid> + + + <h:outputLabel value="Repository" /> + <ismi:autocomplete lo="#{Session.transferEventForm.codexEditor.repositoryLo}" /> + <h:panelGrid> + <h:selectOneMenu partialSubmit="true" + rendered="#{!empty Session.transferEventForm.codexEditor.repositoriesInCurrentCity}" + valueChangeListener="#{Session.transferEventForm.codexEditor.inCurrentCityListener}"> + <f:selectItems value="#{Session.transferEventForm.codexEditor.repositoriesInCurrentCity}" /> + <a4j:ajax event="change" render="digiCodexPanel" /> + </h:selectOneMenu> + <h:outputText + rendered="#{empty Session.transferEventForm.codexEditor.repositoriesInCurrentCity}" /> + </h:panelGrid> + <h:panelGrid> + <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" + rendered="#{!empty Session.transferEventForm.codexEditor.repositoryLo.entity.id}" + actionListener="#{Session.transferEventForm.codexEditor.editThisRepositoryAction}" /> + </h:panelGrid> + + + <h:outputLabel value="Collection" /> + <ismi:autocomplete lo="#{Session.transferEventForm.codexEditor.collectionLo}" /> + <h:panelGrid> + <h:selectOneMenu + rendered="#{!empty Session.transferEventForm.codexEditor.collectionsInCurrentRepository}" + valueChangeListener="#{Session.transferEventForm.codexEditor.inCurrentRepositoryListener}"> + <f:selectItems + value="#{Session.transferEventForm.codexEditor.collectionsInCurrentRepository}" /> + <a4j:ajax event="change" render="digiCodexPanel" /> + </h:selectOneMenu> + </h:panelGrid> + <h:panelGrid> + <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" + rendered="#{!empty Session.transferEventForm.codexEditor.collectionLo.entity.id}" + actionListener="#{Session.transferEventForm.codexEditor.editThisCollectionAction}" /> + </h:panelGrid> + + <h:outputLabel value="Shelf Mark / Identifier" /> + <h:panelGroup> + <h:outputText + rendered="#{!empty Session.transferEventForm.codexEditor.codexLo.attribute.ownValue}" + value="#{Session.transferEventForm.codexEditor.codexLo.term}" + style="font-style:normal; + font-size:15px; + font-weight:bold; + font-family:sans-serif;" /> + </h:panelGroup> + <h:panelGrid> + <h:selectOneMenu + rendered="#{!empty Session.transferEventForm.codexEditor.shelfMarksInCurrentCollection}" + valueChangeListener="#{Session.transferEventForm.codexEditor.identifierChangedListener}"> + <f:selectItems + value="#{Session.transferEventForm.codexEditor.shelfMarksInCurrentCollection}" /> + <a4j:ajax event="change" render="digiCodexPanel" /> + </h:selectOneMenu> + </h:panelGrid> + <h:panelGrid> + <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" + rendered="#{!empty Session.transferEventForm.codexEditor.codexLo.entity.ownValue}" + actionListener="#{Session.transferEventForm.codexEditor.editThisCodexAction}" /> + </h:panelGrid> + + + <h:outputText /> + <h:commandButton + actionListener="#{Session.transferEventForm.codexEditor.checkConsistencyFromCountryToCodex}" + value="Check Consistency From Country To Codex" /> + <h:outputText /> + <h:outputText /> + + <h:outputText /> + <h:commandButton + actionListener="#{Session.transferEventForm.codexEditor.unsetCodex}" + value="Remove Codex" /> + <h:outputText /> + <h:outputText /> + + </h:panelGrid> <h:outputLabel value="From"/>