Show status icon for pending and verified only

This commit is contained in:
PCoder 2019-12-26 13:58:50 +05:30
parent b284ed70a6
commit 2038d719f0

View file

@ -29,7 +29,7 @@
{% if form.instance.vat_number %} {% if form.instance.vat_number %}
{% if form.instance.vat_validation_status == "verified" %} {% if form.instance.vat_validation_status == "verified" %}
<span class="fa fa-fw fa-check-circle" aria-hidden="true" title='{% trans "Your VAT number has been verified" %}'></span> <span class="fa fa-fw fa-check-circle" aria-hidden="true" title='{% trans "Your VAT number has been verified" %}'></span>
{% else %} {% else if form.instance.vat_validation_status == "pending" %}
<span class="fa fa-fw fa-info-circle" aria-hidden="true" title='{% trans "Your VAT number is under validation. VAT will be adjusted, once the validation is complete." %}'></span> <span class="fa fa-fw fa-info-circle" aria-hidden="true" title='{% trans "Your VAT number is under validation. VAT will be adjusted, once the validation is complete." %}'></span>
{% endif %} {% endif %}
{% endif %} {% endif %}