Skip to content

Commit

Permalink
Merge pull request #2886 from lpegoraro/eng-1778-orblive-and-orbcommu…
Browse files Browse the repository at this point in the history
…nity-privacy-policy-update-with-newer

feat(ui): add privacy policy.
  • Loading branch information
lpegoraro authored Dec 19, 2023
2 parents 6bb1914 + 6c0c461 commit 7380bd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/app/auth/pages/register/register.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,20 @@ <h1 class="title" id="title">Create an account</h1>
</div>

<div class="form-control-group accept-group" *ngIf="getConfigValue('forms.register.terms')">
<div class="accept-group-display">
<input type="checkbox" name="terms" id="input-terms" #terms="ngModel" [(ngModel)]="user.terms"
[required]="getConfigValue('forms.register.terms')" />
<label class="label" for="input-terms">
I agree to the NetBox Labs
I agree to the NetBox Labs
<a href="https://netboxlabs.com/privacy" target="_blank">
<strong>Privacy Policy</strong>
</a>
and
<a href="https://netboxlabs.com/terms-of-service" target="_blank">
<strong>Terms & Conditions</strong>
</a>
</label>
</div>
<ng-container *ngIf="terms.invalid && terms.touched">
<p *ngIf="terms.errors?.required" class="caption status-danger mb-1">
You must agree to the terms of service!
Expand Down
9 changes: 9 additions & 0 deletions ui/src/app/auth/pages/register/register.component.scss
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
@import '../login/login.component';

.accept-group-display{
display: inline-flex;
margin-top: 0.5rem;
align-items: stretch;
.label {
margin-top: 0.9rem;
}
}

0 comments on commit 7380bd6

Please sign in to comment.