Skip to content

Commit

Permalink
add (non-functional) checkboxes to consent page
Browse files Browse the repository at this point in the history
  • Loading branch information
al3xlapo committed Sep 28, 2023
1 parent e70d50f commit b8fb450
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function toggleInput(value) {
}

function deselectAllInputs() {
const inputs = document.querySelectorAll('input');
const inputs = document.querySelectorAll('input:not([type=checkbox])');
inputs.forEach(input => input.disabled = true);
disableSubmitButtons();
}
Expand Down
10 changes: 10 additions & 0 deletions public/styles/inspect.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ tr:nth-child(even) {
background-color: #f2f2f2;
}

tr td:last-child {
text-align: center;
}

.scopeCheckbox {
accent-color: #003476;
width: 16px;
height: 16px;
}


section.layout {
display: flex;
Expand Down
2 changes: 2 additions & 0 deletions views/issuer/consent.pug
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ block layout-content
b #{row.name}
td
div #{row.value}
td
input(type="checkbox" class="scopeCheckbox" id=row.name name=row.name value=row.value checked)
br
if grant_type != "authorization_code"
img(src=`${credential.credentialOfferQR}` height=250 width=250)
Expand Down

0 comments on commit b8fb450

Please sign in to comment.