Cleanup on Recipe View page
This commit is contained in:
parent
3817173e5c
commit
3e5b622f51
2
pom.xml
2
pom.xml
|
@ -7,7 +7,7 @@
|
|||
|
||||
<groupId>com.mousetech.gourmet</groupId>
|
||||
<artifactId>gourmetj</artifactId>
|
||||
<version>2.0.30</version>
|
||||
<version>2.0.37</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>GourmetJ</name>
|
||||
|
|
|
@ -35,84 +35,98 @@
|
|||
/>
|
||||
</f:facet>
|
||||
<p:panel id="leftCol" style="width: auto;">
|
||||
<p:panelGrid columns="2">
|
||||
<p:panelGrid id="picButtons" columns="2">
|
||||
<img id="bigpix"
|
||||
style="width: 132px;"
|
||||
src="/img/picture/#{recipeDetailBean.recipe.id}"
|
||||
/>
|
||||
<p:panelGrid id="pnlButtons"
|
||||
columns="2" style="width: 220px;"
|
||||
>
|
||||
<!-- TODO: ask if we should save -->
|
||||
<p:commandButton value="Home"
|
||||
ajax="false"
|
||||
icon="ui-icon-home"
|
||||
action="home"
|
||||
immediate="true"
|
||||
<p:panelGrid>
|
||||
<p:row>
|
||||
<p:column style="width: 136px;">
|
||||
<p:graphicImage id="bigpix"
|
||||
style="width: 132px;"
|
||||
value="/img/picture/#{recipeDetailBean.recipe.id}"
|
||||
/>
|
||||
<p:commandButton ajax="false"
|
||||
value="Print"
|
||||
icon="ui-icon-print"
|
||||
action="/recipePrint.jsf?faces-redirect=true"
|
||||
styleClass="ui-button-print"
|
||||
immediate="true"
|
||||
/>
|
||||
<p:commandButton id="ctlShop"
|
||||
icon="ui-icon-cart"
|
||||
value="Shop" immediate="true"
|
||||
styleClass="#{recipeDetailBean.shop ? 'greenButton' : null}"
|
||||
action="#{recipeDetailBean.doShop}"
|
||||
update="ctlShop"
|
||||
/>
|
||||
<p:commandButton
|
||||
icon="ui-icon-wrench"
|
||||
value="Edit"
|
||||
action="#{recipeDetailBean.editDescription}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Categories:"
|
||||
/>
|
||||
<h:outputText label="Category: "
|
||||
value="#{userSession.formatCategories(recipeDetailBean.recipe)}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Cuisine:"
|
||||
/>
|
||||
<h:outputText label="Cuisine: "
|
||||
value="#{recipeDetailBean.recipe.cuisine}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Prep Time:"
|
||||
/>
|
||||
<h:outputText label="Prep Time: "
|
||||
value="#{recipeDetailBean.recipe.preptime}"
|
||||
converter="com.mousetech.gourmetj.utils.TimeConverter"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Cook Time:"
|
||||
/>
|
||||
<h:outputText label="Cook Time: "
|
||||
value="#{recipeDetailBean.recipe.cooktime}"
|
||||
converter="com.mousetech.gourmetj.utils.TimeConverter"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Servings:"
|
||||
/>
|
||||
<h:outputText
|
||||
value="#{recipeDetailBean.recipe.servings}"
|
||||
/>
|
||||
</p:panelGrid>
|
||||
</p:panelGrid>
|
||||
<p:panel id="sources">
|
||||
<h:outputText value="#{recipeDetailBean.recipe.source}"/>
|
||||
<br/>
|
||||
<h:outputLink value="#{recipeDetailBean.recipe.link}"
|
||||
rendered="#{not empty recipeDetailBean.recipe.link}"
|
||||
</p:column>
|
||||
<p:column style="width: 18em;">
|
||||
<p:panelGrid id="pnlButtons"
|
||||
columns="2"
|
||||
>
|
||||
<!-- TODO: ask if we should save -->
|
||||
<p:commandButton value="Home"
|
||||
ajax="false"
|
||||
icon="ui-icon-home"
|
||||
action="home"
|
||||
immediate="true"
|
||||
/>
|
||||
<p:commandButton ajax="false"
|
||||
value="Print"
|
||||
icon="ui-icon-print"
|
||||
action="/recipePrint.jsf?faces-redirect=true"
|
||||
styleClass="ui-button-print"
|
||||
immediate="true"
|
||||
/>
|
||||
<p:commandButton id="ctlShop"
|
||||
icon="ui-icon-cart"
|
||||
value="Shop"
|
||||
immediate="true"
|
||||
styleClass="#{recipeDetailBean.shop ? 'greenButton' : null}"
|
||||
action="#{recipeDetailBean.doShop}"
|
||||
update="ctlShop"
|
||||
/>
|
||||
<p:commandButton
|
||||
icon="ui-icon-wrench"
|
||||
value="Edit"
|
||||
action="#{recipeDetailBean.editDescription}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Categories:"
|
||||
/>
|
||||
<h:outputText
|
||||
label="Category: "
|
||||
value="#{userSession.formatCategories(recipeDetailBean.recipe)}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Cuisine:"
|
||||
/>
|
||||
<h:outputText
|
||||
label="Cuisine: "
|
||||
value="#{recipeDetailBean.recipe.cuisine}"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Prep Time:"
|
||||
/>
|
||||
<h:outputText
|
||||
label="Prep Time: "
|
||||
value="#{recipeDetailBean.recipe.preptime}"
|
||||
converter="com.mousetech.gourmetj.utils.TimeConverter"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Cook Time:"
|
||||
/>
|
||||
<h:outputText
|
||||
label="Cook Time: "
|
||||
value="#{recipeDetailBean.recipe.cooktime}"
|
||||
converter="com.mousetech.gourmetj.utils.TimeConverter"
|
||||
/>
|
||||
<p:outputLabel for="@next"
|
||||
value="Servings:"
|
||||
/>
|
||||
<h:outputText
|
||||
value="#{recipeDetailBean.recipe.servings}"
|
||||
/>
|
||||
</p:panelGrid>
|
||||
</p:column>
|
||||
<p:column>
|
||||
<p:panel id="sources" style="width: fit-content;">
|
||||
<h:outputText
|
||||
value="#{recipeDetailBean.recipe.source}"
|
||||
/>
|
||||
<br />
|
||||
<h:outputLink
|
||||
value="#{recipeDetailBean.recipe.link}"
|
||||
rendered="#{not empty recipeDetailBean.recipe.link}"
|
||||
>
|
||||
#{recipeDetailBean.recipe.link}
|
||||
</h:outputLink>
|
||||
</p:panel>
|
||||
</p:panel>
|
||||
</p:column>
|
||||
</p:row>
|
||||
</p:panelGrid>
|
||||
<!-- -->
|
||||
<p:panel id="pnlInstr">
|
||||
|
|
Loading…
Reference in New Issue
Block a user