Mercurial > hg > ismi-richfaces
view 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 source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi"> <body> <ui:composition> <a4j:commandButton value="Create new transfer event" actionListener="#{Session.listenerCreateTransferEvent}" /> <h:panelGrid columns="2" styleClass="createPanel" columnClasses="createPanelFirstColumn"> <h:outputText value="ID" /> <h:outputText value="#{Session.transferEventForm.event.id}" /> <h:outputLabel value="Own value" /> <h:outputLabel value="#{Session.transferEventForm.event.ownValue}" /> <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"/> <h:panelGrid> <h:outputLabel value="Person from whom transfer was made"/> <ismi:autocomplete lo="#{Session.transferEventForm.personFromLo}" /> </h:panelGrid> <h:outputLabel value="To"/> <h:panelGrid > <h:outputLabel value="Person to whom transfer was made"/> <ismi:autocomplete lo="#{Session.transferEventForm.personToLo}" /> </h:panelGrid> <h:outputLabel value="Options for transfer"/> <h:selectOneMenu value="#{Session.transferEventForm.attributes['options_for_transfer']}"> <f:selectItems value="#{Session.transferEventForm.suggestedTransferOptions}"/> </h:selectOneMenu> <h:outputLabel value="Price"/> <h:inputText value="#{Session.transferEventForm.attributes['price']}"/> <h:outputLabel value="Original location"/> <ismi:autocomplete lo="#{Session.transferEventForm.placeOriginalLocationLo}" /> <h:outputLabel value="New location"/> <ismi:autocomplete lo="#{Session.transferEventForm.placeNewLocationLo}" /> <h:outputLabel value="Notes"/> <h:inputTextarea cols="80" rows="5" value="#{Session.transferEventForm.attributes['notes']}"/> <h:outputLabel value="Date of Event"/> <ismi:date date="#{Session.transferEventForm.date}"/> <h:outputLabel/> <h:commandButton value="#{(empty Session.transferEventForm.event.id) ? 'Create' : 'Change'}" actionListener="#{Session.transferEventForm.listenerSave}"/> </h:panelGrid> </ui:composition> </body> </html>