Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/place.xhtml @ 155:f2c1e5be355c
changing images.rasi.mcgill.ca URLs again.
| author | casties |
|---|---|
| date | Wed, 18 Oct 2017 15:03:39 +0200 |
| parents | 22a18bfc66b0 |
| children |
| rev | line source |
|---|---|
| 7 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 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:ismi="http://java.sun.com/jsf/composite/components/ismi"> | |
| 9 | |
| 10 <body> | |
| 11 <ui:composition> | |
| 12 | |
| 13 <h:panelGrid> | |
| 89 | 14 <h:outputText value="Place - #{CurrentCity.entity.ownValue}" |
| 7 | 15 rendered="#{!empty CurrentCity.entity.ownValue}" |
| 16 styleClass="titlePanel"/> | |
| 89 | 17 <h:outputText value="Place" |
| 7 | 18 rendered="#{empty CurrentCity.entity.ownValue}" |
| 19 styleClass="titlePanel"/> | |
| 20 </h:panelGrid> | |
| 21 | |
| 22 <h:panelGrid columns="3" styleClass="createPanel" | |
| 23 columnClasses="createPanelFirstColumn" id="placePanel"> | |
| 24 | |
| 89 | 25 <h:outputText id="name" value="Name" /> |
| 7 | 26 <h:inputText size="100" value="#{CurrentCity.attributes['name']}" /> |
| 27 <h:outputText /> | |
| 28 | |
| 89 | 29 <h:outputText value="Type" /> |
|
111
22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
casties
parents:
107
diff
changeset
|
30 <h:selectOneMenu value="#{CurrentCity.attributes['type']}"> |
| 7 | 31 <f:selectItems value="#{CurrentCity.suggestedTypes}" /> |
|
111
22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
casties
parents:
107
diff
changeset
|
32 </h:selectOneMenu> |
| 7 | 33 <h:outputText /> |
| 34 | |
| 89 | 35 <h:outputText value="This place is part of" /> |
| 36 <ismi:autocomplete lo="#{CurrentCity.countryLo}" /> | |
| 37 <h:panelGrid> | |
| 38 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
| 39 rendered="#{!empty CurrentCity.countryLo.entity.id}" | |
| 40 actionListener="#{CurrentCity.editThisCountryAction}" /> | |
| 41 <h:commandButton alt="edit" image="#{ApplicationBean1.imgRemove16}" | |
| 42 rendered="#{!empty CurrentCity.countryLo.entity.id}" | |
| 43 actionListener="#{CurrentCity.removeThisCountryAction}" /> | |
| 44 </h:panelGrid> | |
| 45 | |
| 46 <h:outputText value="Places that are part of this"/> | |
| 7 | 47 <h:panelGrid columns="2" id="placePartOfThisPanel"> |
| 48 <rich:dataGrid var="place" style="border:none;" | |
| 49 value="#{CurrentCity.placesPartOfThis}"> | |
| 50 <h:column style="border:none;"> | |
| 51 <h:selectBooleanCheckbox | |
| 52 value="#{place.selected}" /> | |
| 53 </h:column> | |
| 54 <h:column> | |
| 55 <h:outputText value="#{place.label}" /> | |
| 56 </h:column> | |
| 57 </rich:dataGrid> | |
| 58 </h:panelGrid> | |
| 59 <h:panelGrid columns="1"> | |
| 60 <a4j:commandButton | |
| 61 value="Remove" | |
| 62 actionListener="#{CurrentCity.listenerRemovePlacesPartOfThis}" | |
| 63 render="placePartOfThisPanel" | |
| 64 rendered="#{!empty CurrentCity.placesPartOfThis}"/> | |
| 65 </h:panelGrid> | |
| 66 | |
| 107 | 67 <h:outputText value="Aliases" /> |
| 68 <h:panelGrid columns="1"> | |
| 69 <h:panelGrid columns="2"> | |
| 70 <h:dataTable value="#{CurrentCity.aliasList.entities}" var="item" | |
| 71 rendered="#{!empty CurrentCity.aliasList.entities}"> | |
| 72 <h:column> | |
| 73 <h:outputText value="#{item.ownValue}" /> | |
| 74 </h:column> | |
| 75 <h:column> | |
| 76 <h:selectBooleanCheckbox | |
| 77 value="#{CurrentCity.aliasList.selections[item.id]}" /> | |
| 78 </h:column> | |
| 79 </h:dataTable> | |
| 80 <h:commandButton value="Remove Selected" | |
| 81 actionListener="#{CurrentCity.aliasList.listenerRemoveSelection}" | |
| 82 rendered="#{!empty CurrentCity.aliasList.entities}" /> | |
| 83 </h:panelGrid> | |
| 84 | |
| 85 <h:panelGrid columns="2"> | |
| 86 <h:inputText value="#{CurrentCity.aliasList.input}" /> | |
| 87 <h:commandButton value="CREATE" | |
| 88 actionListener="#{CurrentCity.aliasList.listenerCreate}" /> | |
| 89 </h:panelGrid> | |
| 90 </h:panelGrid> | |
| 91 <h:outputText /> | |
| 92 | |
| 7 | 93 </h:panelGrid> |
| 94 | |
| 95 <ismi:refWidget entityForm="#{CurrentCity}" /> | |
| 96 | |
| 97 <h:commandButton value="#{CurrentCity.saveButtonLabel}" | |
| 98 rendered="#{CurrentCity.renderSaveButton}" | |
| 99 onclick="#{ApplicationBean1.JSConfirmationSave}" | |
| 100 action="#{CurrentCity.save}" /> | |
| 101 <h:commandButton value="Clear Form" | |
| 102 action="#{CurrentCity.clearAction}" | |
| 103 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
| 104 | |
| 105 <h:outputText rendered="#{CurrentCity.create_error}" | |
| 89 | 106 value="Place already exists - not saved!" /> |
| 7 | 107 |
| 108 <!-- Unity Warning --> | |
| 109 <h:panelGrid id="placeUnityWarningPP"> | |
| 110 <h:panelGroup | |
| 111 rendered="#{CurrentCity.renderUnityCheckerDialog}"> | |
| 112 <div style="z-index: 100;" class="rf-pp-shade"> | |
| 113 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
| 114 </div> | |
| 115 | |
| 116 <h:panelGrid columns="1" class="rf-pp-cntr" | |
| 117 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;"> | |
| 118 | |
| 119 <div class="rf-pp-shdw" | |
| 120 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> | |
| 121 </div> | |
| 122 <div class="rf-pp-hdr " style="cursor: default;"> | |
| 123 <div class="rf-pp-hdr-cnt">Unity Warning</div> | |
| 124 </div> | |
| 125 | |
| 126 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" | |
| 127 style="width: 300px; height: 200px;"> | |
| 128 | |
| 129 <h:outputText value="#{CurrentCity.unityCheckerMsg}"/> | |
| 130 <h:panelGrid> | |
| 131 <a4j:commandButton value="Load Entity" action="#{CurrentCity.loadCloneEntity}"/> | |
| 132 <a4j:commandButton value="Continue Editing" action="#{CurrentCity.hideUnityCheckerDialog}" /> | |
| 133 </h:panelGrid> | |
| 134 | |
| 135 </h:panelGrid> | |
| 136 </h:panelGrid> | |
| 137 | |
| 138 </h:panelGroup> | |
| 139 </h:panelGrid> | |
| 140 | |
| 141 </ui:composition> | |
| 142 </body> | |
| 143 </html> |
