Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/1739 - Change backdoor from radio to checkbox #2001

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,20 @@ <h2>Enter password</h2>
<div class="grid" *ngIf="report?.report_version">
<div class="col-12">
<div class="field">
<app-yes-no-radio-input
[form]="form"
[formSubmitted]="formSubmitted"
controlName="backdoorYesNo"
label="Do you need to use a backdoor code? (OPTIONAL)"
ariaLabelYes="You need to use a backdoor code"
ariaLabelNo="You do not need to use a backdoor code"
[tooltipText]="backdoorCodeHelpText"
[tooltipEscape]="false"
></app-yes-no-radio-input>
<p-checkbox [binary]="true" inputId="backdoor-check" formControlName="backdoorYesNo"></p-checkbox>
<label for="backdoor-check" class="mb-0 ml-2">
ADD A BACKDOOR CODE <span class="optional-text">(OPTIONAL)</span>
</label>
<span
class="pi pi-info-circle"
style="font-size: 1.5rem; margin-left: 0.5rem"
pTooltip="Do you need to use a backdoor code?"
></span>
<ng-container *ngIf="showBackdoorCode">
<div class="grid">
<div class="col-4">
<div class="field">
<label for="backdoor_code">BACKDOOR CODE</label>
<label for="backdoor_code" class="d-none">BACKDOOR CODE</label>
<input type="text" pInputText id="backdoor_code" formControlName="backdoor_code" />
<app-error-messages
[form]="form"
Expand Down
4 changes: 4 additions & 0 deletions front-end/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -462,3 +462,7 @@ table {
.card {
border: 0;
}

.optional-text {
color: #aeb0b5;
}