feat: add components for external services (#376)

- Add sms and edit-sms component
- Add notification and edit-notification component
- Add email and edit-email component
- Add amazon-s3 and edit-amazon-s3 component

Fixes: #182 and Fixes: #183
This commit is contained in:
Chirag Gupta
2019-04-21 20:07:24 +05:30
committed by Abhay Chawla
parent cbd8a5a44f
commit fbb7a1583a
40 changed files with 1303 additions and 10 deletions
@@ -0,0 +1,48 @@
<div class="container">
<mat-card>
<form [formGroup]="amazonS3ConfigurationForm" (ngSubmit)="submit()">
<mat-card-content>
<div fxLayout="column">
<mat-form-field>
<mat-label>S3 Access Key</mat-label>
<input matInput required formControlName="s3_access_key">
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.hasError('required')">
S3 Access Key is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Bucket Name</mat-label>
<input matInput required formControlName="s3_bucket_name">
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_bucket_name.hasError('required')">
S3 Bucket Name is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Secret Key</mat-label>
<input matInput required formControlName="s3_secret_key">
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_secret_key.hasError('required')">
S3 Secret Key is <strong>required</strong>
</mat-error>
</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" [disabled]="!amazonS3ConfigurationForm.valid || amazonS3ConfigurationForm.pristine">Submit</button>
</mat-card-actions>
</form>
</mat-card>
</div>