Merge pull request 'bugfix/187-nan-date' (#193) from bugfix/187-nan-date into release
Reviewed-on: https://gitea.pangea.org/trustchain-oc1-orchestral/IdHub/pulls/193
This commit is contained in:
commit
2608b16466
|
@ -248,6 +248,7 @@ class ImportForm(forms.Form):
|
||||||
# convert dates to iso 8601
|
# convert dates to iso 8601
|
||||||
for col in df.select_dtypes(include='datetime').columns:
|
for col in df.select_dtypes(include='datetime').columns:
|
||||||
df[col] = df[col].dt.strftime("%Y-%m-%d")
|
df[col] = df[col].dt.strftime("%Y-%m-%d")
|
||||||
|
df.fillna('', inplace=True)
|
||||||
|
|
||||||
# convert numbers to strings if this is indicate in schema
|
# convert numbers to strings if this is indicate in schema
|
||||||
for col in props.keys():
|
for col in props.keys():
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
"identityNumber": "{{ identityNumber }}",
|
"identityNumber": "{{ identityNumber }}",
|
||||||
"organisation": "{{ organisation }}",
|
"organisation": "{{ organisation }}",
|
||||||
"membershipType": "{{ membershipType }}",
|
"membershipType": "{{ membershipType }}",
|
||||||
"membershipId": "{{ vc_id }}",
|
"membershipId": "{{ membershipId }}",
|
||||||
"affiliatedSince": "{{ affiliatedSince }}",
|
"affiliatedSince": "{{ affiliatedSince }}",
|
||||||
"affiliatedUntil": "{{ affiliatedUntil }}"
|
"affiliatedUntil": "{{ affiliatedUntil }}"
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="col text-end">
|
<div class="col text-end">
|
||||||
{% if object.get_status == 'Issued' %}
|
{% if object.status == 2 %}
|
||||||
<a class="btn btn-green-admin me-2" href="{% url 'idhub:admin_credential_json' object.id %}">{% trans 'Download as JSON' %}</a>
|
<a class="btn btn-green-admin me-2" href="{% url 'idhub:admin_credential_json' object.id %}">{% trans 'Download as JSON' %}</a>
|
||||||
<a class="btn btn-yellow" class="btn btn-orange" data-bs-toggle="modal" data-bs-target="#confirm-revoke" href="javascript:void()">{% trans 'Revoke' %}</a>
|
<a class="btn btn-yellow" class="btn btn-orange" data-bs-toggle="modal" data-bs-target="#confirm-revoke" href="javascript:void()">{% trans 'Revoke' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.get_status == 'Enabled' %}
|
{% if object.status == 1 %}
|
||||||
<a class="btn btn-orange" class="btn btn-orange" data-bs-toggle="modal" data-bs-target="#confirm-delete" href="javascript:void()">{% trans 'Delete' %}</a>
|
<a class="btn btn-orange" class="btn btn-orange" data-bs-toggle="modal" data-bs-target="#confirm-delete" href="javascript:void()">{% trans 'Delete' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<strong>{% trans 'Status' %}:</strong>
|
<strong>{% trans 'Status' %}:</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="col bg-light text-secondary">
|
<div class="col bg-light text-secondary">
|
||||||
{{ object.get_status}}
|
{{ object.get_status }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{{ subtitle }}
|
{{ subtitle }}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
{% if object.get_status == 'Issued' %}
|
{% if object.status == 2 %}
|
||||||
{% if object.eidas1_did and admin_validated %}
|
{% if object.eidas1_did and admin_validated %}
|
||||||
<div class="col text-end">
|
<div class="col text-end">
|
||||||
<a class="btn btn-green-user me-2" href="{{ url_ca }}">{% trans 'Download as PDF (Catalan)' %}</a>
|
<a class="btn btn-green-user me-2" href="{{ url_ca }}">{% trans 'Download as PDF (Catalan)' %}</a>
|
||||||
|
@ -20,12 +20,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="col text-end">
|
<div class="col text-end">
|
||||||
{% if object.get_status == 'Issued' %}
|
{% if object.status == 2 %}
|
||||||
{% if object.eidas1_did and admin_validated %}
|
{% if object.eidas1_did and admin_validated %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="btn btn-green-user" href="{% url 'idhub:user_credential_json' object.id %}">{% trans 'Download as JSON' %}</a>
|
<a class="btn btn-green-user" href="{% url 'idhub:user_credential_json' object.id %}">{% trans 'Download as JSON' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.get_status == 'Enabled' %}
|
{% if object.status == 1 %}
|
||||||
<a class="btn btn-green-user" href="{% url 'idhub:user_credentials_request' %}">{% trans 'Request credential' %}</a>
|
<a class="btn btn-green-user" href="{% url 'idhub:user_credentials_request' %}">{% trans 'Request credential' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
<strong>{% trans 'Status' %}:</strong>
|
<strong>{% trans 'Status' %}:</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="col bg-light text-secondary">
|
<div class="col bg-light text-secondary">
|
||||||
{{ object.get_status}}
|
{{ object.get_status }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue