parent
50a07f0f6d
commit
e624eae79d
3 changed files with 211 additions and 145 deletions
@ -1,87 +1,88 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<ui:composition template="/WEB-INF/layout/layout.xhtml" |
<ui:composition template="/WEB-INF/layout/layout.xhtml" |
||||||
xmlns:c="http://java.sun.com/jsp/jstl/core" |
xmlns:h="http://xmlns.jcp.org/jsf/html" |
||||||
xmlns:f="http://xmlns.jcp.org/jsf/core" |
xmlns:f="http://xmlns.jcp.org/jsf/core" |
||||||
xmlns:ui="http://java.sun.com/jsf/facelets" |
xmlns:ui="http://java.sun.com/jsf/facelets" |
||||||
xmlns:tc="http://myfaces.apache.org/tobago/component" |
xmlns:p="http://primefaces.org/ui" |
||||||
|
xmlns:c="http://xmlns.jcp.org/jstl" |
||||||
> |
> |
||||||
<!-- Print Recipe --> |
<!-- Print Recipe --> |
||||||
<ui:define name="title">Gourmet Recipe Manager</ui:define> |
<ui:define name="title">Gourmet Recipe Manager</ui:define> |
||||||
<ui:define name="content"> |
<ui:define name="content"> |
||||||
<tc:messages /> |
<h:messages /> |
||||||
<tc:section level="2" |
<img id="bigpix" |
||||||
label="#{recipeDetailBean.recipe.title}" |
SRC="/img/picture/#{recipeDetailBean.recipe.id}" |
||||||
> |
/> |
||||||
<tc:flexLayout columns="auto 6em auto"> |
<p:button value="<- Back" action="main" /> |
||||||
<tc:image id="bigpix" |
<p:panelGrid columns="2"> |
||||||
value="/gourmetj/img/picture/#{recipeDetailBean.recipe.id}" |
<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" |
||||||
/> |
/> |
||||||
<tc:button label="<- Back" action="main"> |
</f:facet> |
||||||
<tc:style width="5em" height="2em"/> |
<p:dataTable id="ingredients" |
||||||
</tc:button> |
showDirectLinksArrows="true" |
||||||
<tc:gridLayout columns="15em 15em"> |
value="#{recipeDetailBean.ingredients}" |
||||||
<tc:out label="Category: " |
var="ingredient" |
||||||
value="#{adminMainBean.formatCategories(recipeDetailBean.recipe)}" |
> |
||||||
|
<p:column label="Amt" style="text-align: right"> |
||||||
|
<h:outputText |
||||||
|
value="#{ingredient.displayAmount}" |
||||||
/> |
/> |
||||||
<tc:out label="Cuisine: " |
</p:column> |
||||||
value="#{recipeDetailBean.recipe.cuisine}" |
<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}" |
||||||
/> |
/> |
||||||
<tc:out label="Prep Time: " |
</p:column> |
||||||
value="#{recipeDetailBean.recipe.preptime}" |
</p:dataTable> |
||||||
/> |
</p:panelGrid> |
||||||
<tc:out label="Cook Time: " |
<h:outputText |
||||||
value="#{recipeDetailBean.recipe.preptime}" |
value="Recipe ID: #{recipeDetailBean.recipe.id}" |
||||||
/> |
/> |
||||||
</tc:gridLayout> |
<p:panelGrid columns="1"> |
||||||
</tc:flexLayout> |
<f:facet name="header"> |
||||||
<!-- --> |
<h:outputText styleClass="subtitle" |
||||||
<tc:section id="ingredientsc" label="Ingredients"> |
value="Instructions" |
||||||
<tc:sheet id="ingredients" |
|
||||||
showDirectLinksArrows="true" |
|
||||||
value="#{recipeDetailBean.ingredients}" |
|
||||||
var="ingredient" |
|
||||||
> |
|
||||||
<tc:row> |
|
||||||
<tc:style |
|
||||||
customClass="#{item.ingGroup ? 'stGroup' : ''}" |
|
||||||
/> |
|
||||||
</tc:row> |
|
||||||
<tc:column label="Amt" align="right"> |
|
||||||
<tc:out |
|
||||||
value="#{ingredient.displayAmount}" |
|
||||||
/> |
|
||||||
</tc:column> |
|
||||||
<tc:column label="Units"> |
|
||||||
<tc:out value="#{ingredient.unit}" /> |
|
||||||
</tc:column> |
|
||||||
<tc:column label="Item"> |
|
||||||
<tc:out value="#{ingredient.item}" /> |
|
||||||
</tc:column> |
|
||||||
<tc:column label="Optional" align="center"> |
|
||||||
<tc:selectBooleanCheckbox readonly="true" |
|
||||||
value="#{ingredient.optional}" |
|
||||||
/> |
|
||||||
</tc:column> |
|
||||||
</tc:sheet> |
|
||||||
<tc:out |
|
||||||
value="Recipe ID: #{recipeDetailBean.recipe.id}" |
|
||||||
/> |
/> |
||||||
</tc:section> |
</f:facet> |
||||||
<tc:segmentLayout medium="7seg 5seg"> |
<!-- --> |
||||||
<tc:panel id="summ"> |
<h:outputText id="instructions" escape="false" |
||||||
<!-- --> |
value="#{recipeDetailBean.instructions}" |
||||||
<tc:box label="Instructions"> |
/> |
||||||
<tc:out id="instructions" escape="false" |
</p:panelGrid> |
||||||
value="#{recipeDetailBean.instructions}" |
<p:panelGrid columns="1"> |
||||||
/> |
<f:facet name="header"> |
||||||
</tc:box> |
<h:outputText styleClass="subtitle" value="Notes" /> |
||||||
<tc:box label="Notes"> |
</f:facet> |
||||||
<tc:out escape="false" |
<h:outputText escape="false" |
||||||
value="#{recipeDetailBean.modifications}" |
value="#{recipeDetailBean.modifications}" |
||||||
/> |
/> |
||||||
</tc:box> |
</p:panelGrid> |
||||||
</tc:panel> |
|
||||||
</tc:segmentLayout> |
|
||||||
</tc:section> |
|
||||||
</ui:define> |
</ui:define> |
||||||
</ui:composition> |
</ui:composition> |
Loading…
Reference in new issue