|
|
@ -44,8 +44,8 @@ |
|
|
|
<p:panelGrid id="pnlDetails" |
|
|
|
<p:panelGrid id="pnlDetails" |
|
|
|
columns="2" |
|
|
|
columns="2" |
|
|
|
> |
|
|
|
> |
|
|
|
<p:commandButton |
|
|
|
<p:commandButton value="Back" |
|
|
|
value="Back" ajax="false" |
|
|
|
ajax="false" |
|
|
|
icon="ui-icon-arrowthick-1-w" |
|
|
|
icon="ui-icon-arrowthick-1-w" |
|
|
|
action="main.jsf" |
|
|
|
action="main.jsf" |
|
|
|
immediate="true" |
|
|
|
immediate="true" |
|
|
@ -127,17 +127,10 @@ |
|
|
|
action="#{recipeDetailBean.editNotes}" |
|
|
|
action="#{recipeDetailBean.editNotes}" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</p:panelGrid> |
|
|
|
</p:panelGrid> |
|
|
|
<p:button id="ctlDelete" |
|
|
|
<p:commandButton id="ctlDelete" |
|
|
|
value="Delete Recipe" |
|
|
|
value="Delete Recipe" |
|
|
|
action="#{recipeDetailBean.doDelete}" |
|
|
|
onclick="PF('okDeleteDlg').show()" |
|
|
|
immediate="true" |
|
|
|
/> |
|
|
|
> |
|
|
|
|
|
|
|
<f:facet name="confirmation"> |
|
|
|
|
|
|
|
<h:outputText |
|
|
|
|
|
|
|
value="Delete this recipe. Are you sure?" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</f:facet> |
|
|
|
|
|
|
|
</p:button> |
|
|
|
|
|
|
|
</p:column> |
|
|
|
</p:column> |
|
|
|
<!-- ====== Ingredients ============================ --> |
|
|
|
<!-- ====== Ingredients ============================ --> |
|
|
|
<p:column id="ingredientsc" |
|
|
|
<p:column id="ingredientsc" |
|
|
@ -199,5 +192,24 @@ |
|
|
|
</p:panelGrid> |
|
|
|
</p:panelGrid> |
|
|
|
</p:panelGrid> |
|
|
|
</p:panelGrid> |
|
|
|
</h:form> |
|
|
|
</h:form> |
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
<h:form id="frmDelete"> |
|
|
|
|
|
|
|
<p:confirmDialog closable="false" id="okDeleteDlg" |
|
|
|
|
|
|
|
header="Confirm Deletion" |
|
|
|
|
|
|
|
message="OK to delete this recipe?" |
|
|
|
|
|
|
|
severity="alert" |
|
|
|
|
|
|
|
widgetVar="okDeleteDlg" |
|
|
|
|
|
|
|
style="z-index: 25000" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<p:commandButton id="dlgOK" value="OK" |
|
|
|
|
|
|
|
oncomplete="PF('okDeleteDlg').hide()" |
|
|
|
|
|
|
|
action="#{recipeDetailBean.doDelete}" |
|
|
|
|
|
|
|
immediate="true" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<p:commandButton id="dlgCancel" value="Cancel" |
|
|
|
|
|
|
|
onclick="PF('okDeleteDlg').hide()" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</p:confirmDialog> |
|
|
|
|
|
|
|
</h:form> |
|
|
|
</ui:define> |
|
|
|
</ui:define> |
|
|
|
</ui:composition> |
|
|
|
</ui:composition> |