149 lines
4.6 KiB
HTML
149 lines
4.6 KiB
HTML
<div class="container" [class.small-width-container]="userType.value === 'Existing User'">
|
|
|
|
<mat-card>
|
|
|
|
<mat-card-header class="m-b-20">
|
|
<mat-radio-group fxLayout="row" fxLayoutGap="20px" [formControl]="userType">
|
|
<mat-radio-button *ngFor="let type of userTypes" [value]="type">
|
|
{{ type }}
|
|
</mat-radio-button>
|
|
</mat-radio-group>
|
|
</mat-card-header>
|
|
|
|
<div *ngIf="userType.value === 'Existing User'">
|
|
|
|
<form>
|
|
|
|
<mat-card-content>
|
|
|
|
<div fxLayout="column">
|
|
|
|
<mat-form-field>
|
|
<mat-label>Office</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let office of officeData" [value]="office">
|
|
{{ office }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>Staff</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let staff of staffData" [value]="staff">
|
|
{{ staff }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>Client</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let client of clientData" [value]="client">
|
|
{{ client }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
|
|
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
|
|
<button mat-raised-button color="accent">
|
|
<fa-icon icon="lock-open" class="m-r-10"></fa-icon>
|
|
Activate Self Service User
|
|
</button>
|
|
</mat-card-actions>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="userType.value === 'New User'">
|
|
|
|
<form>
|
|
|
|
<mat-card-content>
|
|
|
|
<div fxLayout="row wrap" fxLayoutGap="2%" fxLayout.lt-md="column">
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Office</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let office of officeData" [value]="office">
|
|
{{ office }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Staff</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let staff of staffData" [value]="staff">
|
|
{{ staff }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Username</mat-label>
|
|
<input type="text" matInput>
|
|
</mat-form-field>
|
|
|
|
<span fxFlex="48%" fxHide.lt-md></span>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>First Name</mat-label>
|
|
<input type="text" matInput>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Last Name</mat-label>
|
|
<input type="text" matInput>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Gender</mat-label>
|
|
<mat-select>
|
|
<mat-option *ngFor="let gender of genderData" [value]="gender">
|
|
{{ gender }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%" (click)="dateOfBirthDatePicker.open()">
|
|
<mat-label>Date of Birth</mat-label>
|
|
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="dateOfBirthDatePicker">
|
|
<mat-datepicker-toggle matSuffix [for]="dateOfBirthDatePicker"></mat-datepicker-toggle>
|
|
<mat-datepicker #dateOfBirthDatePicker></mat-datepicker>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Email</mat-label>
|
|
<input type="email" matInput>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field fxFlex="48%">
|
|
<mat-label>Mobile No</mat-label>
|
|
<input type="tel" matInput>
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
|
|
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
|
|
<button mat-raised-button color="primary">Submit</button>
|
|
</mat-card-actions>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</mat-card>
|
|
|
|
</div>
|