|
|
|
@ -9,80 +9,118 @@ |
|
|
|
|
<!-- Print Recipe --> |
|
|
|
|
<ui:define name="title">Gourmet Recipe Manager</ui:define> |
|
|
|
|
<ui:define name="content"> |
|
|
|
|
<h:messages /> |
|
|
|
|
<img id="bigpix" |
|
|
|
|
SRC="/img/picture/#{recipeDetailBean.recipe.id}" |
|
|
|
|
/> |
|
|
|
|
<p:commandButton value="<- Back" action="main.jsf" /> |
|
|
|
|
<p:panelGrid columns="2"> |
|
|
|
|
<h:outputLabel for="@next" value="Category: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{adminMainBean.formatCategories(recipeDetailBean.recipe)}" |
|
|
|
|
/> |
|
|
|
|
<h:outputLabel for="@next" value="Cuisine: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{recipeDetailBean.recipe.cuisine}" |
|
|
|
|
/> |
|
|
|
|
<h:outputLabel for="@next" value="Prep Time: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{userSession.formatTime(recipeDetailBean.recipe.preptime)}" |
|
|
|
|
/> |
|
|
|
|
<h:outputLabel for="@next" value="Cook Time: " /> |
|
|
|
|
<h:outputText label="Cook Time: " |
|
|
|
|
value="#{userSession.formatTime(recipeDetailBean.recipe.cooktime)}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<!-- --> |
|
|
|
|
<p:panelGrid columns="1" id="ingredientsc"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" |
|
|
|
|
value="Ingredients" |
|
|
|
|
/> |
|
|
|
|
</f:facet> |
|
|
|
|
<p:dataTable id="ingredients" |
|
|
|
|
showDirectLinksArrows="true" |
|
|
|
|
value="#{recipeDetailBean.ingredients}" |
|
|
|
|
var="ingredient" |
|
|
|
|
<h:form id="printForm"> |
|
|
|
|
<h:messages /> |
|
|
|
|
<p:panelGrid |
|
|
|
|
style="margin-bottom: 5px; border-style: none" |
|
|
|
|
> |
|
|
|
|
<p:column label="Amt" style="text-align: right"> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{ingredient.displayAmount}" |
|
|
|
|
<p:column> |
|
|
|
|
<img id="bigpix" |
|
|
|
|
SRC="/img/picture/#{recipeDetailBean.recipe.id}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column label="Units"> |
|
|
|
|
<h:outputText value="#{ingredient.unit}" /> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column label="Item"> |
|
|
|
|
<h:outputText value="#{ingredient.item}" /> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column label="Optional" align="center"> |
|
|
|
|
<p:selectBooleanCheckbox readonly="true" |
|
|
|
|
value="#{ingredient.optionalCB}" |
|
|
|
|
<p:column |
|
|
|
|
style="vertical-align: middle; text-align: left; border: none" |
|
|
|
|
> |
|
|
|
|
<p:commandButton value="<- Back" |
|
|
|
|
style="margin-left: 2em" immediate="true" |
|
|
|
|
action="/main.jsf" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
</p:dataTable> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<h:outputText |
|
|
|
|
value="Recipe ID: #{recipeDetailBean.recipe.id}" |
|
|
|
|
/> |
|
|
|
|
<p:panelGrid columns="1"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" |
|
|
|
|
value="Instructions" |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panelGrid columns="2"> |
|
|
|
|
<h:outputLabel for="@next" value="Category: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{userSession.formatCategories(recipeDetailBean.recipe)}" |
|
|
|
|
/> |
|
|
|
|
<h:outputLabel for="@next" value="Cuisine: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{recipeDetailBean.recipe.cuisine}" |
|
|
|
|
/> |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputLabel for="@next" value="Prep Time: " /> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{userSession.formatTime(recipeDetailBean.recipe.preptime)}" |
|
|
|
|
/> |
|
|
|
|
<h:outputLabel for="@next" value="Cook Time: " /> |
|
|
|
|
<h:outputText label="Cook Time: " |
|
|
|
|
value="#{userSession.formatTime(recipeDetailBean.recipe.cooktime)}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<!-- --> |
|
|
|
|
<h:outputText id="instructions" escape="false" |
|
|
|
|
value="#{recipeDetailBean.instructions}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panelGrid columns="1"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" value="Notes" /> |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText escape="false" |
|
|
|
|
value="#{recipeDetailBean.modifications}" |
|
|
|
|
<p:panelGrid id="ingredientsc"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" |
|
|
|
|
value="Ingredients" |
|
|
|
|
/> |
|
|
|
|
</f:facet> |
|
|
|
|
<p:column style="padding: 0px 4px"> |
|
|
|
|
<p:dataTable id="ingredients" |
|
|
|
|
showDirectLinksArrows="true" |
|
|
|
|
value="#{recipeDetailBean.ingredients}" |
|
|
|
|
var="ingredient" |
|
|
|
|
> |
|
|
|
|
<p:column |
|
|
|
|
style="text-align: right; width: 2em" |
|
|
|
|
> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Amt. |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{ingredient.displayAmount}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column style="width: 6em"> |
|
|
|
|
<f:facet name="header">Units</f:facet> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{ingredient.unit}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Item |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText |
|
|
|
|
value="#{ingredient.item}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column align="center" |
|
|
|
|
style="width: 2em" |
|
|
|
|
> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Opt. |
|
|
|
|
</f:facet> |
|
|
|
|
<p:selectBooleanCheckbox |
|
|
|
|
readonly="true" |
|
|
|
|
value="#{ingredient.optionalCB}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
</p:dataTable> |
|
|
|
|
</p:column> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<h:outputText |
|
|
|
|
value="Recipe ID: #{recipeDetailBean.recipe.id}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panelGrid columns="1"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" |
|
|
|
|
value="Instructions" |
|
|
|
|
/> |
|
|
|
|
</f:facet> |
|
|
|
|
<!-- --> |
|
|
|
|
<h:outputText id="instructions" escape="false" |
|
|
|
|
value="#{recipeDetailBean.instructions}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panelGrid columns="1"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
<h:outputText styleClass="subtitle" |
|
|
|
|
value="Notes" |
|
|
|
|
/> |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText escape="false" |
|
|
|
|
value="#{recipeDetailBean.modifications}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
</h:form> |
|
|
|
|
</ui:define> |
|
|
|
|
</ui:composition> |