From b4a929accf576edc733fde75a81dfad9a3d288ed Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Jul 2018 11:01:53 +0200 Subject: Add "agree to the terms" checkbox in registration form --- client/src/app/signup/signup.component.html | 11 +++++++++++ client/src/app/signup/signup.component.scss | 3 +++ client/src/app/signup/signup.component.ts | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) (limited to 'client/src/app/signup') diff --git a/client/src/app/signup/signup.component.html b/client/src/app/signup/signup.component.html index 2fe9a4281..565b695d9 100644 --- a/client/src/app/signup/signup.component.html +++ b/client/src/app/signup/signup.component.html @@ -54,6 +54,17 @@ +
+ + +
+ {{ formErrors.terms }} +
+
+ diff --git a/client/src/app/signup/signup.component.scss b/client/src/app/signup/signup.component.scss index 8ea4ec997..e6d484297 100644 --- a/client/src/app/signup/signup.component.scss +++ b/client/src/app/signup/signup.component.scss @@ -10,6 +10,9 @@ } } +.form-group-terms { + margin: 30px 0; +} input:not([type=submit]) { @include peertube-input-text(340px); diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts index 53d144572..076dac454 100644 --- a/client/src/app/signup/signup.component.ts +++ b/client/src/app/signup/signup.component.ts @@ -38,7 +38,8 @@ export class SignupComponent extends FormReactive implements OnInit { this.buildForm({ username: this.userValidatorsService.USER_USERNAME, password: this.userValidatorsService.USER_PASSWORD, - email: this.userValidatorsService.USER_EMAIL + email: this.userValidatorsService.USER_EMAIL, + terms: this.userValidatorsService.USER_TERMS }) this.serverService.configLoaded -- cgit v1.2.3