mercredi 5 avril 2017

Display Tick Mark instead of "0" or "1"

I currently have a page pulling info from a database. Right now, the value of a field is displayed as 0 (no) or 1 (yes). Instead of displaying 0 or 1, I'd like to display ☐ (no) or ☑ (yes) instead. I'd think this would be simply, but my brain just isn't comprehending the right way to work it.

Here's my code.

<li>
    <p class='ui-li-lbl'>
        <span class='ui-li-val'>
            <%= model.get('leadcontacted_c') %>
        </span>
    &nbsp;Contacted By Corporate
    </p>
</li>




Aucun commentaire:

Enregistrer un commentaire