Highlight ingredient group on detail view

This commit is contained in:
Tim Holloway 2022-01-11 10:13:21 -05:00
parent 2d2109c17c
commit 9e7e68f657

View File

@ -144,9 +144,8 @@
style="width: 25%; vertical-align: top;"
>
<p:dataTable id="ingredients"
showDirectLinksArrows="true"
value="#{recipeDetailBean.ingredients}"
var="ingredient"
var="item"
rowStyleClass="#{item.ingGroup ? 'displayIngGroupRow' : null}"
>
<f:facet name="header">
@ -166,21 +165,21 @@
style="width: 3em; text-align: right"
>
<h:outputText
value="#{ingredient.displayAmount}"
value="#{item.displayAmount}"
/>
</p:column>
<p:column label="Units"
style="width: 5em"
>
<h:outputText
value="#{ingredient.unit}"
value="#{item.unit}"
/>
</p:column>
<p:column label="Item"
style="width: 20em"
>
<h:outputText
value="#{ingredient.item}"
value="#{item.item}"
/>
</p:column>
<p:column label="Optional"
@ -188,7 +187,7 @@
>
<p:selectBooleanCheckbox
readonly="true"
value="#{ingredient.optionalCB}"
value="#{item.optionalCB}"
/>
</p:column>
</p:dataTable>