mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use buttons isntead of links
This commit is contained in:
parent
70341d6745
commit
58f35ebc56
@ -195,9 +195,9 @@
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h5>{% trans "Change factors" %}</h5>
|
<h5>{% trans "Change factors" %}</h5>
|
||||||
<a href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifactor" %}</a>
|
<button href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifactor" %}</button>
|
||||||
{% if user.staticdevice_set.all or user.totpdevice_set.all %}
|
{% if user.staticdevice_set.all or user.totpdevice_set.all %}
|
||||||
<a href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifactor" %}</a>
|
<button href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifactor" %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user