Commit 4cfe83f4 authored by Fabian van den Broek's avatar Fabian van den Broek
Browse files

Added done page after issuance

parent 9a42c200
......@@ -2,6 +2,8 @@ $(function() {
var translTable = {"zipcode": "Postcode", "address":"Adres" , "city":"Stad", "initials":"Initialen",
"familyName":"Achternaam", "gender":"Geslacht", "dateOfBirth":"Geboortedatum", "country":"Land", "telephone":"Telefoonnummer", "email":"e-mailadres"};
var doneURL = "done.html";
function addTableLine(head, data){
if (data !== null) {
$('#attributeTable')
......@@ -24,9 +26,21 @@ $(function() {
// Clear errors
$(".form-group").removeClass("has-error");
$("#alert_box").empty();
IRMA.issue(Cookies.get("jwt"),function() {
showSuccess("iDIN data successfully issued");
}, showWarning, showError);
//disable enroll button
$("#enroll").prop('disabled',true);
IRMA.issue(Cookies.get("jwt"),
function() {
showSuccess("iDIN data successfully issued");
window.location.replace(doneURL);
},
function() {
$("#enroll").prop('disabled',false);
showWarning;
},
function() {
$("#enroll").prop('disabled', false);
showError;
});
});
//decode the issuing JWT and show the values in a table
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<title>iDIN Attributen uitgegeven</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-8 col-lg-6 col-md-offset-2 col-lg-offset-3">
<h2>Het uitgeven van iDIN attributen is geslaagd.</h2>
<div id="alert_box"></div>
<p>
Gefeliciteerd! Je attributen zijn successvol in je IRMA app geladen.
Daar zijn ze nu zichtbaar.
</p>
<p>
Je kunt ze nu gebruiken op iedere website die deze attributen accepteert.
</p>
<a href="https://privacybydesign.foundation/irma/">Keer terug naar de Privacy by Design Foundation.</a>
</div>
</div>
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment