You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
3.6 KiB
87 lines
3.6 KiB
<?xml version="1.0"?>
|
|
<ui:composition template="/WEB-INF/layout/layout.xhtml"
|
|
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:tc="http://myfaces.apache.org/tobago/component"
|
|
>
|
|
<!-- Print Recipe -->
|
|
<ui:define name="title">Gourmet Recipe Manager</ui:define>
|
|
<ui:define name="content">
|
|
<tc:messages />
|
|
<tc:section level="2"
|
|
label="#{recipeDetailBean.recipe.title}"
|
|
>
|
|
<tc:flexLayout columns="auto 6em auto">
|
|
<tc:image id="bigpix"
|
|
value="/gourmetj/img/picture/#{recipeDetailBean.recipe.id}"
|
|
/>
|
|
<tc:button label="<- Back" action="main">
|
|
<tc:style width="5em" height="2em"/>
|
|
</tc:button>
|
|
<tc:gridLayout columns="15em 15em">
|
|
<tc:out label="Category: "
|
|
value="#{adminMainBean.formatCategories(recipeDetailBean.recipe)}"
|
|
/>
|
|
<tc:out label="Cuisine: "
|
|
value="#{recipeDetailBean.recipe.cuisine}"
|
|
/>
|
|
<tc:out label="Prep Time: "
|
|
value="#{recipeDetailBean.recipe.preptime}"
|
|
/>
|
|
<tc:out label="Cook Time: "
|
|
value="#{recipeDetailBean.recipe.preptime}"
|
|
/>
|
|
</tc:gridLayout>
|
|
</tc:flexLayout>
|
|
<!-- -->
|
|
<tc:section id="ingredientsc" label="Ingredients">
|
|
<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>
|
|
<tc:segmentLayout medium="7seg 5seg">
|
|
<tc:panel id="summ">
|
|
<!-- -->
|
|
<tc:box label="Instructions">
|
|
<tc:out id="instructions" escape="false"
|
|
value="#{recipeDetailBean.instructions}"
|
|
/>
|
|
</tc:box>
|
|
<tc:box label="Notes">
|
|
<tc:out escape="false"
|
|
value="#{recipeDetailBean.modifications}"
|
|
/>
|
|
</tc:box>
|
|
</tc:panel>
|
|
</tc:segmentLayout>
|
|
</tc:section>
|
|
</ui:define>
|
|
</ui:composition> |