beid: don't propose to add a second one
This commit is contained in:
parent
693450fa65
commit
1efaefa13d
|
@ -0,0 +1,35 @@
|
|||
{% load i18n beid %}
|
||||
<h4 id="a2-beid-certificate-profile" class="a2-bied-certificate-profile-title">
|
||||
{% trans "Belgian eID card" %}
|
||||
</h4>
|
||||
|
||||
<div class="a2-beid-certificate-profile-body">
|
||||
<ul class="a2-beid-certificate-list">
|
||||
{% for certificate in certificates %}
|
||||
<li class="a2-ssl-certificate-item">
|
||||
<form action="{% url "delete_beid" certificate_pk=certificate.pk %}"
|
||||
method="post">
|
||||
{% csrf_token %}
|
||||
<p class="a2-ssl-certificate-dn">
|
||||
<dl class="a2-ssl-certificate-dn-parts">
|
||||
{% for k, v in certificate.explode_subject_dn %}
|
||||
<dt class="a2-ssl-certificate-dn-part-name">{{ k }}</dt>
|
||||
<dd class="a2-ssl-certificate-dn-part-value">{{ v }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</p>
|
||||
<input type="submit" class="submit-button a2-ssl-certificate-submit-button" value="{% trans "Delete" %}">
|
||||
</form>
|
||||
</p>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if not certificates %}
|
||||
<p>
|
||||
<form action="{% beid_url request %}{% url "add_beid" %}" method="get">
|
||||
<label for="id_del_cert">{% trans "Have a belgian eID card?" %}</label>
|
||||
<input type="hidden" name="next" value="{% url "account_management" %}#a2-beid-certificate-profile" />
|
||||
<input type="submit" class="submit-button a2-ssl-certificate-submit-button" value="{% trans "Link it to your account" %}">
|
||||
</form>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
Reference in New Issue