2017-04-27 14:29:31 +00:00
|
|
|
<div class="app flex-row align-items-center">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="card mx-4">
|
|
|
|
<div class="card-block p-4">
|
2017-05-22 10:41:48 +00:00
|
|
|
<h1>Register</h1>
|
2017-04-27 14:29:31 +00:00
|
|
|
<p class="text-muted">Create your account</p>
|
2017-05-09 12:39:48 +00:00
|
|
|
|
2017-06-01 16:03:16 +00:00
|
|
|
<!-- <div class="input-group mb-3">
|
2017-05-12 11:58:12 +00:00
|
|
|
<span class="input-group-addon"><i class="icon-people"></i></span>
|
|
|
|
<select required class="form-control" type="text" formControlName="usertype">
|
|
|
|
<option value=''>Please select</option>
|
|
|
|
<option value='organisation'>Organisation</option>
|
2017-06-01 16:03:16 +00:00
|
|
|
<option value='customer'>Customer</option>
|
2017-05-12 11:58:12 +00:00
|
|
|
</select>
|
2017-06-01 16:03:16 +00:00
|
|
|
</div> -->
|
2017-06-05 14:22:51 +00:00
|
|
|
<form [formGroup]="signupForm.getForm()">
|
2017-05-22 10:41:48 +00:00
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-key"></i></span>
|
|
|
|
<input type="text" class="form-control" formControlName="token" placeholder="Token">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon">@</span>
|
|
|
|
<input type="text" class="form-control" formControlName="email" placeholder="Email">
|
|
|
|
</div>
|
2017-05-12 12:30:17 +00:00
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
2017-05-22 10:41:48 +00:00
|
|
|
<span class="input-group-addon"><i class="icon-lock"></i></span>
|
|
|
|
<input type="password" class="form-control" formControlName="password" placeholder="Password">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group mb-4">
|
|
|
|
<span class="input-group-addon"><i class="icon-lock"></i></span>
|
|
|
|
<input type="password" class="form-control" formControlName="confirmpassword" placeholder="Repeat password">
|
|
|
|
</div>
|
2017-05-09 12:39:48 +00:00
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
2017-06-01 16:03:16 +00:00
|
|
|
<span class="input-group-addon"><i class="icon-people"></i></span>
|
|
|
|
<select required class="form-control" type="text" formControlName="usertype">
|
|
|
|
<option value=''>Please select</option>
|
|
|
|
<option value='organisation'>Organisation</option>
|
|
|
|
<option value='customer'>Customer</option>
|
|
|
|
</select>
|
2017-05-12 12:30:17 +00:00
|
|
|
</div>
|
2017-06-01 16:03:16 +00:00
|
|
|
</form>
|
2017-05-12 12:30:17 +00:00
|
|
|
|
2017-06-05 14:22:51 +00:00
|
|
|
<div [ngSwitch]="signupForm.getForm().value.usertype">
|
2017-06-01 16:03:16 +00:00
|
|
|
<div *ngSwitchCase="'customer'" >
|
2017-06-05 14:22:51 +00:00
|
|
|
<form [formGroup]="customerForm.getForm()" (ngSubmit)="onSubmitCustomer()">
|
2017-05-12 12:30:17 +00:00
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-user"></i></span>
|
2017-06-01 16:03:16 +00:00
|
|
|
<input type="text" class="form-control" formControlName="display_name" placeholder="Display Name">
|
2017-05-22 10:41:48 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-user"></i></span>
|
2017-06-01 16:03:16 +00:00
|
|
|
<input type="text" class="form-control" formControlName="full_name" placeholder="Full Name">
|
2017-05-12 12:30:17 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-user"></i></span>
|
2017-05-10 12:50:54 +00:00
|
|
|
<input type="text" class="form-control" formControlName="postcode" placeholder="Postcode">
|
2017-05-09 12:39:48 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
2017-05-09 16:43:48 +00:00
|
|
|
<span class="input-group-addon">Age Range</span>
|
|
|
|
<select class="form-control" type="text" formControlName="age_range">
|
|
|
|
<option *ngFor="let range of ageRanges" [value]="range.id">{{ range.string }}</option>
|
2017-05-09 12:39:48 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-06-01 16:03:16 +00:00
|
|
|
<button type="submit" class="btn btn-block btn-success">Create Account</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div *ngSwitchCase="'organisation'">
|
2017-06-05 14:22:51 +00:00
|
|
|
<form [formGroup]="organisationForm.getForm()" (ngSubmit)="onSubmitOrganisation()">
|
2017-06-01 16:03:16 +00:00
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-user"></i></span>
|
2017-06-05 14:22:51 +00:00
|
|
|
<input type="text" class="form-control" formControlName="name" placeholder="Organisation Name">
|
2017-04-27 14:29:31 +00:00
|
|
|
</div>
|
2017-06-01 16:03:16 +00:00
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<span class="input-group-addon"><i class="icon-user"></i></span>
|
2017-06-05 14:22:51 +00:00
|
|
|
<input type="text" class="form-control" formControlName="street_name" placeholder="Street Name">
|
2017-06-01 16:03:16 +00:00
|
|
|
</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">
|
2017-04-27 14:29:31 +00:00
|
|
|
</div>
|
|
|
|
|
2017-05-12 11:58:12 +00:00
|
|
|
<button type="submit" class="btn btn-block btn-success">Create Account</button>
|
2017-05-09 16:43:48 +00:00
|
|
|
</form>
|
2017-06-01 16:03:16 +00:00
|
|
|
</div>
|
|
|
|
<div heading="Pending" *ngSwitchDefault>Please Select a User Type</div>
|
|
|
|
</div>
|
2017-05-09 16:43:48 +00:00
|
|
|
</div>
|
2017-04-27 14:29:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|