|
|
|
@ -8,23 +8,13 @@ |
|
|
|
|
> |
|
|
|
|
<!-- === Edit ingkey/shopcat === --> |
|
|
|
|
<h:form id="frmIsk"> |
|
|
|
|
<p:panelGrid> |
|
|
|
|
<p:row> |
|
|
|
|
<p:column> |
|
|
|
|
<p:outputLabel for="ctlScSel" |
|
|
|
|
value="Shopping Category" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<p:outputLabel for="ctlIngkeySel" |
|
|
|
|
value="Ingredient Key" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
</p:row> |
|
|
|
|
<p:row style="vertical-align: top"> |
|
|
|
|
<p:column> |
|
|
|
|
<p:panelGrid columns="2" style="width: 30em;"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText value="Shopping Categories"/> |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText value="Shopping Category"/> |
|
|
|
|
<h:outputText value="Ingredient key"/> |
|
|
|
|
<p:selectOneListbox id="ctlScSel" |
|
|
|
|
style="width: 240px" |
|
|
|
|
value="#{shoppingListBean.selectedShopcat}" |
|
|
|
|
> |
|
|
|
|
<f:selectItems |
|
|
|
@ -32,10 +22,8 @@ |
|
|
|
|
/> |
|
|
|
|
<p:ajax update="ctlIngkeySel" event="change" /> |
|
|
|
|
</p:selectOneListbox> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<h:selectManyListbox id="ctlIngkeySel" |
|
|
|
|
style="width: 240px" |
|
|
|
|
style="width: 12em;" |
|
|
|
|
value="#{shoppingListBean.selectedIngkey}" |
|
|
|
|
label="Ingcat" |
|
|
|
|
> |
|
|
|
@ -44,34 +32,21 @@ |
|
|
|
|
/> |
|
|
|
|
<p:ajax event="change" update="ctlChangeCat"/> |
|
|
|
|
</h:selectManyListbox> |
|
|
|
|
</p:column> |
|
|
|
|
</p:row> |
|
|
|
|
<p:row> |
|
|
|
|
<p:column> |
|
|
|
|
<p:outputLabel |
|
|
|
|
value="Change shopping category to:" |
|
|
|
|
value="Change selected ingredient key category to:" |
|
|
|
|
style="width: 10em;" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<p:autoComplete |
|
|
|
|
value="#{shoppingListBean.newShopcat}" |
|
|
|
|
autoSelection="false" forceSelection="false" |
|
|
|
|
maxResults="12" |
|
|
|
|
completeMethod="#{shoppingListBean.suggestShopcat}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
</p:row> |
|
|
|
|
<p:row> |
|
|
|
|
<p:column> |
|
|
|
|
<p:commandButton id="ctlChangeCat" value="Change..." |
|
|
|
|
disabled="#{empty shoppingListBean.selectedIngkey}" |
|
|
|
|
onclick="PF('dlgOkRecat').show()" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<h:outputText value="" /> |
|
|
|
|
</p:column> |
|
|
|
|
</p:row> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
</h:form> |
|
|
|
|
<!-- --> |
|
|
|
|