Show warning message when no Factor exists
This commit is contained in:
parent
54427f7c68
commit
9b131b619f
|
@ -76,9 +76,13 @@
|
||||||
<div class="card-pf-body">
|
<div class="card-pf-body">
|
||||||
<p class="card-pf-aggregate-status-notifications">
|
<p class="card-pf-aggregate-status-notifications">
|
||||||
<span class="card-pf-aggregate-status-notification">
|
<span class="card-pf-aggregate-status-notification">
|
||||||
<a href="{% url 'passbook_admin:factors' %}">
|
{% if factor_count < 1 %}
|
||||||
<span class="pficon pficon-ok"></span>{{ factor_count }}
|
<span class="pficon-error-circle-o" data-toggle="tooltip" data-placement="right"
|
||||||
</a>
|
title="{% trans 'No Factors configured. No Users will be able to login.' %}"></span>
|
||||||
|
{{ factor_count }}
|
||||||
|
{% else %}
|
||||||
|
<span class="pficon pficon-ok"></span>{{ worker_count }}
|
||||||
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue