%
// Check to see if the card was created with at least minimum data, not just a peerID, which would indicate a server error.
const loaded = !!ob.name;
/* Disable the card if it is invalid and the controls should be shown, and it is not selected. This allow the user to de-select invalid cards.
The view should prevent the invalid card from being selected again, disabling it is redundant but important visually. */
const isDisabled = (!ob.valid && !ob.controlsOnInvalid ) || (!ob.valid && ob.controlsOnInvalid && ob.cardState !== 'selected') || !loaded ? 'disabled' : '';
const style = ob.verified ? 'verified clrBrAlert2 clrBAlert2Grad' : '';
%>
<% if (ob.radioStyle) { %>
<% const act = ob.cardState === 'selected' ? 'active' : 'inactive'; %>
<% // the card state may be set on render or set on the fly by the view %>