Highlight ingredient group on detail view
This commit is contained in:
parent
2d2109c17c
commit
9e7e68f657
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user