Added registration entries for organisations

This commit is contained in:
piratefinn 2017-05-12 13:30:17 +01:00
parent 400608e8dd
commit 84d644636a
2 changed files with 18 additions and 0 deletions

View file

@ -23,6 +23,11 @@
<div class="input-group mb-3"> <div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span> <span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" class="form-control" formControlName="name" placeholder="Organisation Name">
</div>
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" class="form-control" formControlName="full_name" placeholder="Username"> <input type="text" class="form-control" formControlName="full_name" placeholder="Username">
</div> </div>
@ -38,6 +43,16 @@
<div class="input-group mb-3"> <div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span> <span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" class="form-control" formControlName="street_name" placeholder="Street Name">
</div>
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" class="form-control" formControlName="town" placeholder="Town">
</div>
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" class="form-control" formControlName="postcode" placeholder="Postcode"> <input type="text" class="form-control" formControlName="postcode" placeholder="Postcode">
</div> </div>

View file

@ -29,10 +29,13 @@ export class RegisterComponent {
this.signup = this.formBuilder.group({ this.signup = this.formBuilder.group({
token: ['', [Validators.required]], token: ['', [Validators.required]],
usertype: ['', [Validators.required]], usertype: ['', [Validators.required]],
name: ['', [Validators.required]],
full_name: ['', [Validators.required]], full_name: ['', [Validators.required]],
display_name: ['', [Validators.required]], display_name: ['', [Validators.required]],
email: ['', [Validators.required]], email: ['', [Validators.required]],
postcode: ['', [Validators.required]], postcode: ['', [Validators.required]],
street_name: ['', [Validators.required]],
town: ['', [Validators.required]],
age_range: ['', [Validators.required]], age_range: ['', [Validators.required]],
password: ['', [Validators.required]], password: ['', [Validators.required]],
}); });