Header / Footer editor added - Right now linked to products permission, which should be changed

This commit is contained in:
2020-11-11 09:55:51 +05:30
parent 77fb8e8428
commit 8db9a7d757
19 changed files with 435 additions and 1 deletions

View File

@ -0,0 +1,45 @@
<div fxLayout="row" fxFlex="50%" fxLayoutAlign="space-around center" class="example-card">
<mat-card fxFlex>
<mat-card-title-group>
<mat-card-title>Header / Footer</mat-card-title>
</mat-card-title-group>
<mat-card-content>
<form [formGroup]="form" fxLayout="column">
<div
fxLayout="row"
fxLayoutAlign="space-around start"
fxLayout.lt-md="column"
fxLayoutGap="20px"
fxLayoutGap.lt-md="0px"
>
<mat-form-field fxFlex>
<mat-label>Header / Footer</mat-label>
<mat-select
placeholder="Header / Footer"
formControlName="id"
(selectionChange)="show($event)"
>
<mat-option *ngFor="let s of list" [value]="s.id">
{{ s.name }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<mat-form-field>
<mat-label>Text</mat-label>
<textarea
matInput
matAutosizeMinRows="5"
placeholder="Text"
formControlName="text"
></textarea>
</mat-form-field>
<mat-divider></mat-divider>
</form>
</mat-card-content>
<mat-card-actions>
<button mat-raised-button color="primary" (click)="save()">Save</button>
</mat-card-actions>
</mat-card>
</div>