Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean fields not showing icons True/False in admin #440

Open
Yatchman1 opened this issue Mar 22, 2020 · 1 comment
Open

Boolean fields not showing icons True/False in admin #440

Yatchman1 opened this issue Mar 22, 2020 · 1 comment

Comments

@Yatchman1
Copy link

Yatchman1 commented Mar 22, 2020

Hi guys,

the issue is that boolean felds are not showing icons if True or False. All other icons within interface are showing well and even if I "turn off" Jet to display default Django admin, the icons are showing normally.

Any idea?

@ljluestc
Copy link

{% extends "admin/includes/fieldset.html" %}

{% block field %}
    <div class="field-box">
        <div class="field-box__label">{{ field.label }}</div>
        <div class="field-box__value">
            {% if field.value %}
                <span class="icon icon-yes"></span>
            {% else %}
                <span class="icon icon-no"></span>
            {% endif %}
            {{ field.contents }}
        </div>
    </div>
{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants