46 lines
2 KiB
HTML
46 lines
2 KiB
HTML
|
<div class="animated fadeIn">
|
||
|
<div class="row">
|
||
|
<div class="col-lg-12">
|
||
|
<div class="card">
|
||
|
<div class="card-header">
|
||
|
<strong>Submit Transaction</strong>
|
||
|
<small>Required Data marked in <strong>bold</strong>.</small>
|
||
|
</div>
|
||
|
<form class="form-horizontal" [formGroup]="feedbackForm" (ngSubmit)="onSubmit()">
|
||
|
<div class="card-block">
|
||
|
<div class="form-group row">
|
||
|
<label class="col-md-3 form-control-label" for="text-input"><strong>Email</strong></label>
|
||
|
<div class="col-md-9">
|
||
|
<input type="text" class="form-control" formControlName="email" [(ngModel)]="loggedInEmail" [readonly]="loggedIn">
|
||
|
<span class="help-block">Enter your account email if it is not shown here.</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group row">
|
||
|
<label class="col-md-3 form-control-label" for="text-input"><strong>Enter Feedback Here</strong></label>
|
||
|
<div class="col-md-9">
|
||
|
<textarea rows="7" class="form-control" formControlName="feedbacktext">
|
||
|
<span class="help-block">Please enter your feedback in this textbox.</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group row">
|
||
|
<div class="col-md-9">
|
||
|
<div [ngSwitch]="feedbackFormStatus">
|
||
|
<div *ngSwitchCase="'success'" class="alert alert-success" role="alert">
|
||
|
Submit Succeeded.
|
||
|
</div>
|
||
|
<div *ngSwitchCase="'send_failed'" class="alert alert-danger" role="alert">
|
||
|
{{feedbackFormStatusError}}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-footer">
|
||
|
<button type="submit" [disabled]="!payrollForm.valid" class="btn btn-sm btn-primary"><i class="fa fa-dot-circle-o"></i> Submit</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div><!--/.row-->
|
||
|
</div>
|