I have an Orders model containing a Status property. Depending on the value of Status, I'd like to set the CSS of multiple elements in the dom.
<span class = "green">ORDERED</span>
<span class = "orange">SHIPPED</span>
<span class = "gray">RECEIVED</span>
I'd like to set those green/orange/gray classes according to the value of Order.Status, within the Details view. How can I do this?