visa
This commit is contained in:
parent
9178e6511b
commit
b898694b14
@ -7,282 +7,300 @@
|
|||||||
<h3>Agent </h3>
|
<h3>Agent </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- upload and download template -->
|
</button>
|
||||||
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)">
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export"></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Agent <!--update button -->
|
<h3 class="modal-title">Update Agent <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -293,54 +311,56 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Agent
|
<h3 class="modal-title">Add Agent
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Agent_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Agent_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -366,17 +386,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -1,340 +1,363 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Cost_Sheet</a></li>
|
<li><a href="javascript://"> Cost Sheet</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Cost_Sheet </h3>
|
<h3>Cost Sheet </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- upload and download template -->
|
</button>
|
||||||
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)">
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export"></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Cost_sheet <!--update button -->
|
<h3 class="modal-title">Update Cost Sheet <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of cost_sheet</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatacost_sheet; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedcost_sheet($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowcost_sheet(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinescost_sheet()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h6> List of Cost Sheet</h6>
|
||||||
|
|
||||||
|
<div class="clr-row" style="margin-top: 10px;">
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>No</th>
|
||||||
|
<th> File</th>
|
||||||
|
<th>File Name</th>
|
||||||
|
<th>Preview</th>
|
||||||
|
<th>Cancel</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let attach of FileDatacost_sheet; let i=index">
|
||||||
|
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
||||||
|
<td><input type="file" (change)="onFileChangedcost_sheet($event, i)"
|
||||||
|
accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
|
||||||
|
</td>
|
||||||
|
<td>{{attach.uploadedfile_name}}</td>
|
||||||
|
<td> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
|
||||||
|
name="filePreview" width="100px" height="100px"></td>
|
||||||
|
<td>
|
||||||
|
<clr-signpost style="padding-right: 10px;">
|
||||||
|
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger"
|
||||||
|
clrSignpostTrigger></clr-icon>
|
||||||
|
|
||||||
|
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
||||||
|
<div style="text-align: center;"><b>Are you sure?</b></div>
|
||||||
|
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
||||||
|
<button class="btn btn-primary" (click)="deleteRowcost_sheet(i,attach.id)">Delete</button>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
|
||||||
|
(click)="onAddLinescost_sheet()">
|
||||||
|
<clr-icon shape="plus"></clr-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -345,93 +368,99 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Cost_Sheet
|
<h3 class="modal-title">Add Cost Sheet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Cost_sheet_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Cost_sheet_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of cost_sheet</h6>
|
|
||||||
|
<h6> List of Cost Sheet</h6>
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
<div class="clr-row" style="margin-top: 10px;">
|
||||||
<thead>
|
<table class="table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>No</th>
|
<tr>
|
||||||
<th> File</th>
|
<th>No</th>
|
||||||
<th>File Name</th>
|
<th> File</th>
|
||||||
<th>Preview</th>
|
<th>File Name</th>
|
||||||
<th>Cancel</th>
|
<th>Preview</th>
|
||||||
</tr>
|
<th>Cancel</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody >
|
</thead>
|
||||||
<tr *ngFor="let attach of FileDatacost_sheet; let i=index">
|
<tbody>
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
<tr *ngFor="let attach of FileDatacost_sheet; let i=index">
|
||||||
<td><input type="file" (change)="onFileChangedcost_sheet($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
||||||
</td>
|
<td><input type="file" (change)="onFileChangedcost_sheet($event, i)"
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
</td>
|
||||||
<td>
|
<td>{{attach.uploadedfile_name}}</td>
|
||||||
<a (click)="deleteRowcost_sheet(i)">
|
<td> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
name="filePreview" width="100px" height="100px"></td>
|
||||||
</a>
|
<td>
|
||||||
</td>
|
<a (click)="deleteRowcost_sheet(i)">
|
||||||
</tr>
|
<clr-icon shape="trash" class="is-error"></clr-icon>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tbody>
|
</tr>
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinescost_sheet()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
|
||||||
</table> </div>
|
(click)="onAddLinescost_sheet()">
|
||||||
|
<clr-icon shape="plus"></clr-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -457,19 +486,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -1,355 +1,378 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Administration</a></li>
|
<li><a href="javascript://"> Visa Administration</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Administration </h3>
|
<h3>Visa Administration </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- upload and download template -->
|
</button>
|
||||||
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)">
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export"></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' emails'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Emails
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' visa_status'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Visa status
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' nationality'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Nationality
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. emails }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. visa_statusname }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. nationalityname }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' emails'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Emails
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' visa_status'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Visa status
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' nationality'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Nationality
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. emails }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. visa_statusname }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. nationalityname }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_administration <!--update button -->
|
<h3 class="modal-title">Update Visa Administration <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Emails</label>
|
|
||||||
<input id="name" class="clr-input" type="email"
|
|
||||||
[(ngModel)]="rowSelected.emails " name="emails" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
|
|
||||||
<div *ngIf="rowSelected.emails && !isValidemails(rowSelected.emails )" class="error_mess">
|
|
||||||
* Email must be a valid email address.
|
|
||||||
</div> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label>Visa status</label>
|
|
||||||
<select name="visa_status" [(ngModel)]="rowSelected.visa_status">
|
|
||||||
<option [value]="null">Choose visa_status</option>
|
|
||||||
<option *ngFor=" let item of selectvisa_status" [value]="item.id">{{item.name }}</option> </select> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label>Nationality</label>
|
|
||||||
<select name="nationality" [(ngModel)]="rowSelected.nationality">
|
|
||||||
<option [value]="null">Choose nationality</option>
|
|
||||||
<option *ngFor=" let item of selectnationality" [value]="item.id">{{item.name }}</option> </select> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Emails</label>
|
||||||
|
<input id="name" class="clr-input" type="email" [(ngModel)]="rowSelected.emails " name="emails"
|
||||||
|
pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
|
||||||
|
<div *ngIf="rowSelected.emails && !isValidemails(rowSelected.emails )" class="error_mess">
|
||||||
|
* Email must be a valid email address.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>Visa status</label>
|
||||||
|
<select name="visa_status" [(ngModel)]="rowSelected.visa_status">
|
||||||
|
<option [value]="null">Choose visa_status</option>
|
||||||
|
<option *ngFor=" let item of selectvisa_status" [value]="item.id">{{item.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>Nationality</label>
|
||||||
|
<select name="nationality" [(ngModel)]="rowSelected.nationality">
|
||||||
|
<option [value]="null">Choose nationality</option>
|
||||||
|
<option *ngFor=" let item of selectnationality" [value]="item.id">{{item.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -360,96 +383,104 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Administration
|
<h3 class="modal-title">Add Visa Administration
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_administration_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']"
|
||||||
|
[queryParams]="{ formCode: 'Visa_administration_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Emails</label>
|
<div class="clr-col-sm-12">
|
||||||
<input class="clr-input" type="email" formControlName="emails" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
|
<label> Emails</label>
|
||||||
<div *ngIf="entryForm.controls['emails'].errors" class="error_mess">
|
<input class="clr-input" type="email" formControlName="emails"
|
||||||
<div *ngIf="entryForm.controls['emails'].hasError('pattern')" class="error_mess">* Email must be a valid email address
|
pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
|
||||||
</div> </div>
|
<div *ngIf="entryForm.controls['emails'].errors" class="error_mess">
|
||||||
</div>
|
<div *ngIf="entryForm.controls['emails'].hasError('pattern')" class="error_mess">* Email must be a valid
|
||||||
|
email address
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="clr-col-sm-12">
|
</div>
|
||||||
<label> Visa status</label>
|
|
||||||
<select formControlName="visa_status">
|
|
||||||
<option [value]="null">Choose Visa status</option>
|
|
||||||
<option *ngFor="let item of selectvisa_status" [value]="item.id">{{item.name}}</option>
|
<div class="clr-col-sm-12">
|
||||||
</select> </div>
|
<label> Visa status</label>
|
||||||
|
<select formControlName="visa_status">
|
||||||
|
<option [value]="null">Choose Visa status</option>
|
||||||
|
<option *ngFor="let item of selectvisa_status" [value]="item.id">{{item.name}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Nationality</label>
|
|
||||||
<select formControlName="nationality">
|
|
||||||
<option [value]="null">Choose Nationality</option>
|
|
||||||
<option *ngFor="let item of selectnationality" [value]="item.id">{{item.name}}</option>
|
|
||||||
</select> </div>
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Nationality</label>
|
||||||
|
<select formControlName="nationality">
|
||||||
|
<option [value]="null">Choose Nationality</option>
|
||||||
|
<option *ngFor="let item of selectnationality" [value]="item.id">{{item.name}}</option>
|
||||||
</div>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -475,23 +506,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -1,27 +1,27 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Application</a></li>
|
<li><a href="javascript://"> Visa Application</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Application </h3>
|
<h3>Visa Application </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
||||||
</button>
|
</button>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
</div></div>
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
||||||
<clr-dg-placeholder>
|
<clr-dg-placeholder>
|
||||||
<ng-template #loadingSpinner>
|
<ng-template #loadingSpinner>
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
</clr-dg-placeholder>
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
@ -111,13 +111,13 @@
|
|||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
@ -186,157 +186,157 @@
|
|||||||
<clr-dg-cell>{{user. agentname }}</clr-dg-cell>
|
<clr-dg-cell>{{user. agentname }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
</clr-signpost-content>
|
</clr-signpost-content>
|
||||||
</clr-signpost>
|
</clr-signpost>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
<!-- who colmn -->
|
<!-- who colmn -->
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
<clr-dg-action-overflow>
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
</clr-dg-action-overflow>
|
</clr-dg-action-overflow>
|
||||||
</clr-dg-row>
|
</clr-dg-row>
|
||||||
<clr-dg-footer>
|
<clr-dg-footer>
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
of {{pagination.totalItems}} users
|
of {{pagination.totalItems}} users
|
||||||
</clr-dg-pagination>
|
</clr-dg-pagination>
|
||||||
</clr-dg-footer>
|
</clr-dg-footer>
|
||||||
</clr-datagrid> </ng-container>
|
</clr-datagrid> </ng-container>
|
||||||
<ng-template #showInfo>
|
<ng-template #showInfo>
|
||||||
<div class="alert alert-info" role="alert">
|
<div class="alert alert-info" role="alert">
|
||||||
<div class="alert-items">
|
<div class="alert-items">
|
||||||
<div class="alert-item static">
|
<div class="alert-item static">
|
||||||
<span class="alert-text">
|
<span class="alert-text">
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
Data could be found. Loading..
|
Data could be found. Loading..
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
[style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
>
|
>
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
<div *ngIf="item.name == 'Image'"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -385,9 +385,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_application <!--update button -->
|
<h3 class="modal-title">Update Visa Application <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -431,11 +431,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
@ -638,50 +638,50 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
<br>
|
<br>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end --> <div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h1 class="delete">Are You Sure Want to delete?</h1>
|
<h1 class="delete">Are You Sure Want to delete?</h1>
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Application
|
<h3 class="modal-title">Add Visa Application
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -726,18 +726,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_application_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_application_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a> </h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm" >
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
@ -952,37 +952,37 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
<br>
|
<br>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-input" />
|
class="clr-input" />
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-input" />
|
class="clr-input" />
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-checkbox" />
|
class="clr-checkbox" />
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end --> <div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
@ -1028,4 +1028,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -1,193 +1,156 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ToastrService } from 'ngx-toastr';
|
import { ToastrService } from 'ngx-toastr';
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
import { Visa_applicationservice} from './Visa_application.service';
|
import { Visa_applicationservice } from './Visa_application.service';
|
||||||
import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
|
import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
|
||||||
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
||||||
import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
|
import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
|
||||||
import { Visa_applicationcardvariable } from './Visa_application_cardvariable';
|
import { Visa_applicationcardvariable } from './Visa_application_cardvariable';
|
||||||
import { UserInfoService } from 'src/app/services/user-info.service';
|
import { UserInfoService } from 'src/app/services/user-info.service';
|
||||||
declare var JsBarcode: any;
|
declare var JsBarcode: any;
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-Visa_application',
|
selector: 'app-Visa_application',
|
||||||
templateUrl: './Visa_application.component.html',
|
templateUrl: './Visa_application.component.html',
|
||||||
styleUrls: ['./Visa_application.component.scss']
|
styleUrls: ['./Visa_application.component.scss']
|
||||||
})
|
})
|
||||||
export class Visa_applicationComponent implements OnInit {
|
export class Visa_applicationComponent implements OnInit {
|
||||||
cardButton = Visa_applicationcardvariable.cardButton;
|
cardButton = Visa_applicationcardvariable.cardButton;
|
||||||
cardmodeldata = Visa_applicationcardvariable.cardmodeldata;
|
cardmodeldata = Visa_applicationcardvariable.cardmodeldata;
|
||||||
public dashboardArray: DashboardContentModel2[];
|
public dashboardArray: DashboardContentModel2[];
|
||||||
isCardview = Visa_applicationcardvariable.cardButton;
|
isCardview = Visa_applicationcardvariable.cardButton;
|
||||||
cardmodal; changeView(){
|
cardmodal; changeView() {
|
||||||
this.isCardview = !this.isCardview;
|
this.isCardview = !this.isCardview;
|
||||||
}
|
}
|
||||||
beforeText(fieldtext: string): string { // Extract the text before the first '<'
|
beforeText(fieldtext: string): string { // Extract the text before the first '<'
|
||||||
const index = fieldtext.indexOf('<');
|
const index = fieldtext.indexOf('<');
|
||||||
return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
|
return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
|
||||||
}
|
}
|
||||||
afterText(fieldtext: string): string { // Extract the text after the last '>'
|
afterText(fieldtext: string): string { // Extract the text after the last '>'
|
||||||
const index = fieldtext.lastIndexOf('>');
|
const index = fieldtext.lastIndexOf('>');
|
||||||
return index !== -1 ? fieldtext.substring(index + 1) : '';
|
return index !== -1 ? fieldtext.substring(index + 1) : '';
|
||||||
}
|
}
|
||||||
transform(fieldtext: string): string {
|
transform(fieldtext: string): string {
|
||||||
const match = fieldtext.match(/<([^>]*)>/);
|
const match = fieldtext.match(/<([^>]*)>/);
|
||||||
return match ? match[1] : ''; // Extract the text between '<' and '>'
|
return match ? match[1] : ''; // Extract the text between '<' and '>'
|
||||||
}
|
}
|
||||||
userrole;
|
userrole;
|
||||||
rowSelected :any= {};
|
rowSelected: any = {};
|
||||||
modaldelete=false;
|
modaldelete = false;
|
||||||
modalEdit=false;
|
modalEdit = false;
|
||||||
modalAdd= false;
|
modalAdd = false;
|
||||||
public entryForm: FormGroup;
|
public entryForm: FormGroup;
|
||||||
loading = false;
|
loading = false;
|
||||||
product;
|
product;
|
||||||
modalOpenedforNewLine = false;
|
modalOpenedforNewLine = false;
|
||||||
newLine:any;
|
newLine: any;
|
||||||
additionalFieldsFromBackend: any[] = [];
|
additionalFieldsFromBackend: any[] = [];
|
||||||
formcode = 'Visa_application_formCode'
|
formcode = 'Visa_application_formCode'
|
||||||
tableName = 'Visa_application'; checkFormCode; selected: any[] = []; constructor(
|
tableName = 'Visa_application'; checkFormCode; selected: any[] = []; constructor(
|
||||||
private extensionService: ExtensionService,
|
private extensionService: ExtensionService,
|
||||||
private userInfoService:UserInfoService,
|
private userInfoService: UserInfoService,
|
||||||
private mainService:Visa_applicationservice,
|
private mainService: Visa_applicationservice,
|
||||||
private alertService: AlertService,
|
private alertService: AlertService,
|
||||||
private toastr: ToastrService,
|
private toastr: ToastrService,
|
||||||
private _fb: FormBuilder,
|
private _fb: FormBuilder,
|
||||||
) { }
|
) { }
|
||||||
// component button
|
// component button
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if(this.cardmodeldata !== ''){
|
if (this.cardmodeldata !== '') {
|
||||||
this.cardmodal = JSON.parse(this.cardmodeldata);
|
this.cardmodal = JSON.parse(this.cardmodeldata);
|
||||||
this.dashboardArray = this.cardmodal.dashboard.slice();
|
this.dashboardArray = this.cardmodal.dashboard.slice();
|
||||||
console.log(this.dashboardArray)
|
console.log(this.dashboardArray)
|
||||||
}
|
}
|
||||||
this.userrole=this.userInfoService.getRoles();
|
this.userrole = this.userInfoService.getRoles();
|
||||||
this.getData();
|
this.getData();
|
||||||
this.entryForm = this._fb.group({
|
this.entryForm = this._fb.group({
|
||||||
name : [null],
|
name: [null],
|
||||||
|
|
||||||
description : [null],
|
description: [null],
|
||||||
|
|
||||||
active : [false],
|
active: [false],
|
||||||
|
|
||||||
visa_entry_type : [null],
|
visa_entry_type: [null],
|
||||||
|
|
||||||
visa_duration : [null],
|
visa_duration: [null],
|
||||||
|
|
||||||
visa_processing : [null],
|
visa_processing: [null],
|
||||||
|
|
||||||
travel_start_date : [null],
|
travel_start_date: [null],
|
||||||
|
|
||||||
travel_end_date : [null],
|
travel_end_date: [null],
|
||||||
|
|
||||||
passport_number : [null,[Validators.required]],
|
passport_number: [null, [Validators.required]],
|
||||||
|
|
||||||
passport_issue_date : [null],
|
passport_issue_date: [null],
|
||||||
|
|
||||||
passport_expiry_date : [null],
|
passport_expiry_date: [null],
|
||||||
|
|
||||||
email : [null],
|
email: [null],
|
||||||
|
|
||||||
phone_number: ['+91'],
|
phone_number: ['+91'],
|
||||||
|
|
||||||
birth_place : [null],
|
birth_place: [null],
|
||||||
|
|
||||||
date_of_birth : [null],
|
date_of_birth: [null],
|
||||||
|
|
||||||
gender : [null],
|
gender: [null],
|
||||||
|
|
||||||
profession : [null],
|
profession: [null],
|
||||||
|
|
||||||
visa_cost : [null, { updateOn: 'blur' }],
|
visa_cost: [null, { updateOn: 'blur' }],
|
||||||
|
|
||||||
referrer : [null],
|
referrer: [null],
|
||||||
|
|
||||||
nationality : [null],
|
nationality: [null],
|
||||||
|
|
||||||
supplier : [null],
|
supplier: [null],
|
||||||
|
|
||||||
agent : [null],
|
agent: [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}); // component_button200
|
||||||
|
// form code start
|
||||||
|
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||||
|
console.log(data);
|
||||||
|
const jsonArray = data.map((str) => JSON.parse(str));
|
||||||
|
this.additionalFieldsFromBackend = jsonArray;
|
||||||
|
this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Visa_application_formCode");
|
||||||
|
console.log(this.checkFormCode);
|
||||||
|
console.log(this.additionalFieldsFromBackend);
|
||||||
|
if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
|
||||||
|
this.additionalFieldsFromBackend.forEach(field => {
|
||||||
|
if (field.formCode === this.formcode) {
|
||||||
|
if (!this.entryForm.contains(field.extValue)) {
|
||||||
|
// Add the control only if it doesn't exist in the form
|
||||||
|
this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}); // component_button200
|
|
||||||
// form code start
|
|
||||||
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
|
||||||
console.log(data);
|
|
||||||
const jsonArray = data.map((str) => JSON.parse(str));
|
|
||||||
this.additionalFieldsFromBackend = jsonArray;
|
|
||||||
this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Visa_application_formCode");
|
|
||||||
console.log(this.checkFormCode);
|
|
||||||
console.log(this.additionalFieldsFromBackend);
|
|
||||||
if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
|
|
||||||
this.additionalFieldsFromBackend.forEach(field => {
|
|
||||||
if (field.formCode === this.formcode) {
|
|
||||||
if (!this.entryForm.contains(field.extValue)) {
|
|
||||||
// Add the control only if it doesn't exist in the form
|
|
||||||
this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
console.log(this.entryForm.value);
|
|
||||||
// form code end
|
// form code end
|
||||||
|
|
||||||
|
|
||||||
|
this.getallvisa_entry_type();
|
||||||
|
|
||||||
|
this.getallvisa_duration();
|
||||||
|
|
||||||
|
this.getallvisa_processing();
|
||||||
|
|
||||||
|
this.getallgender();
|
||||||
|
|
||||||
this.getallvisa_entry_type();
|
this.getallreferrer();
|
||||||
|
|
||||||
this.getallvisa_duration();
|
this.getallnationality();
|
||||||
|
|
||||||
this.getallvisa_processing();
|
this.getallsupplier();
|
||||||
|
|
||||||
|
this.getallagent();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -204,22 +167,15 @@ this.getallvisa_processing();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.getallgender();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.getallreferrer();
|
|
||||||
|
|
||||||
this.getallnationality();
|
|
||||||
|
|
||||||
this.getallsupplier();
|
|
||||||
|
|
||||||
this.getallagent();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -239,47 +195,22 @@ this.getallagent();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
error;
|
||||||
|
getData() {
|
||||||
|
this.mainService.getAll().subscribe((data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.product = data;
|
||||||
|
if (this.product.length == 0) {
|
||||||
|
this.error = "No Data Available"
|
||||||
|
}
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error) {
|
||||||
|
this.error = "Server Error";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onEdit(row) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
error;
|
|
||||||
getData() {
|
|
||||||
this.mainService.getAll().subscribe((data) => {
|
|
||||||
console.log(data);
|
|
||||||
this.product = data;
|
|
||||||
if(this.product.length==0){
|
|
||||||
this.error="No Data Available"
|
|
||||||
}
|
|
||||||
},(error) => {
|
|
||||||
console.log(error);
|
|
||||||
if(error){
|
|
||||||
this.error="Server Error";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
onEdit(row) {
|
|
||||||
this.rowSelected = row;
|
this.rowSelected = row;
|
||||||
|
|
||||||
|
|
||||||
@ -325,27 +256,25 @@ this.getallagent();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
|
||||||
}
|
|
||||||
onDelete(row) {
|
|
||||||
this.rowSelected = row;
|
|
||||||
this.modaldelete=true;
|
|
||||||
}
|
|
||||||
delete(id)
|
|
||||||
{
|
|
||||||
this.modaldelete = false;
|
|
||||||
console.log("in delete "+id);
|
|
||||||
this.mainService.delete(id).subscribe(
|
|
||||||
(data) => {
|
|
||||||
console.log(data);
|
|
||||||
this.ngOnInit();
|
|
||||||
if (data) { this.toastr.success('Deleted successfully'); }
|
|
||||||
});
|
|
||||||
}
|
|
||||||
onUpdate(id) {
|
|
||||||
this.modalEdit = false;
|
|
||||||
|
|
||||||
|
this.modalEdit = true;
|
||||||
|
}
|
||||||
|
onDelete(row) {
|
||||||
|
this.rowSelected = row;
|
||||||
|
this.modaldelete = true;
|
||||||
|
}
|
||||||
|
delete(id) {
|
||||||
|
this.modaldelete = false;
|
||||||
|
console.log("in delete " + id);
|
||||||
|
this.mainService.delete(id).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.ngOnInit();
|
||||||
|
if (data) { this.toastr.success('Deleted successfully'); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onUpdate(id) {
|
||||||
|
this.modalEdit = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -389,20 +318,20 @@ this.getallagent();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log("in update");
|
|
||||||
console.log("id " + id);
|
|
||||||
console.log(this.rowSelected);
|
|
||||||
//console.log("out update");
|
|
||||||
this.mainService.update(id, this.rowSelected).subscribe(
|
|
||||||
(data) => {
|
|
||||||
console.log(data);
|
|
||||||
if (data || data.status >= 200 && data.status <= 299) {
|
|
||||||
this.toastr.success("Update Successfully");
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
|
||||||
this.ngOnInit();
|
|
||||||
}, 500);
|
|
||||||
|
|
||||||
|
//console.log("in update");
|
||||||
|
console.log("id " + id);
|
||||||
|
console.log(this.rowSelected);
|
||||||
|
//console.log("out update");
|
||||||
|
this.mainService.update(id, this.rowSelected).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Update Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -446,77 +375,25 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
|
||||||
console.log(error);
|
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
|
||||||
// this.toastr.success("update Succesfully");
|
|
||||||
}
|
|
||||||
if (error.status >= 400 && error.status <= 499) {
|
|
||||||
this.toastr.error("Not Updated");
|
|
||||||
}
|
|
||||||
if (error.status >= 500 && error.status <= 599) {
|
|
||||||
this.toastr.error("Not Updated");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
|
||||||
this.ngOnInit();
|
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
onCreate() {
|
|
||||||
this.modalAdd=false;
|
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("update Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.create(this.entryForm.value).subscribe(
|
|
||||||
(data) => {
|
|
||||||
console.log(data);
|
|
||||||
if (data || data.status >= 200 && data.status <= 299) {
|
|
||||||
this.toastr.success("Added Successfully");
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
|
||||||
this.ngOnInit();
|
|
||||||
}, 500);
|
}, 500);
|
||||||
|
}
|
||||||
|
onCreate() {
|
||||||
|
this.modalAdd = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -560,26 +437,16 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
|
||||||
console.log(error);
|
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
|
||||||
// this.toastr.success("Added Succesfully");
|
|
||||||
}
|
|
||||||
if (error.status >= 400 && error.status <= 499) {
|
|
||||||
this.toastr.error("Not Added");
|
|
||||||
}
|
|
||||||
if (error.status >= 500 && error.status <= 599) {
|
|
||||||
this.toastr.error("Not Added");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
|
||||||
this.ngOnInit();
|
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
goToAdd(row) {
|
|
||||||
this.modalAdd = true; this.submitted = false;
|
|
||||||
|
|
||||||
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Added Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -622,45 +489,31 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
submitted = false;
|
|
||||||
onSubmit() {
|
|
||||||
console.log(this.entryForm.value);
|
|
||||||
this.submitted = true;
|
|
||||||
if (this.entryForm.invalid) {
|
|
||||||
return;
|
|
||||||
}this.onCreate();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
rsModaldescription = false;
|
}, (error) => {
|
||||||
goToReplaceStringdescription(row){
|
console.log(error);
|
||||||
this.rowSelected = row; this.rsModaldescription =true; }
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("Added Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
goToAdd(row) {
|
||||||
|
this.modalAdd = true; this.submitted = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
selectvisa_entry_type ;
|
|
||||||
getallvisa_entry_type() {
|
|
||||||
this.mainService.getAllvisa_entry_type().subscribe(data=>{
|
|
||||||
this.selectvisa_entry_type = data;
|
|
||||||
console.log(data);
|
|
||||||
},(error) => { console.log(error); }); }
|
|
||||||
|
|
||||||
selectvisa_duration ;
|
|
||||||
getallvisa_duration() {
|
|
||||||
this.mainService.getAllvisa_duration().subscribe(data=>{
|
|
||||||
this.selectvisa_duration = data;
|
|
||||||
console.log(data);
|
|
||||||
},(error) => { console.log(error); }); }
|
|
||||||
|
|
||||||
selectvisa_processing ;
|
|
||||||
getallvisa_processing() {
|
|
||||||
this.mainService.getAllvisa_processing().subscribe(data=>{
|
|
||||||
this.selectvisa_processing = data;
|
|
||||||
console.log(data);
|
|
||||||
},(error) => { console.log(error); }); }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -672,65 +525,143 @@ console.log(data);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
isValidemail(email: string): boolean {
|
|
||||||
const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
||||||
return emailPattern.test(email); }
|
|
||||||
|
|
||||||
isValidPhone_number(phone: string): boolean {
|
|
||||||
const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/;
|
|
||||||
return phonePattern.test(phone);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
selectgender ;
|
|
||||||
getallgender() {
|
|
||||||
this.mainService.getAllgender().subscribe(data=>{
|
|
||||||
this.selectgender = data;
|
|
||||||
console.log(data);
|
|
||||||
},(error) => { console.log(error); }); }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//currency field start
|
|
||||||
formatCurrencyvisa_cost () {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
submitted = false;
|
||||||
|
onSubmit() {
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
this.submitted = true;
|
||||||
|
if (this.entryForm.invalid) {
|
||||||
|
return;
|
||||||
|
} this.onCreate();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
rsModaldescription = false;
|
||||||
|
goToReplaceStringdescription(row) {
|
||||||
|
this.rowSelected = row; this.rsModaldescription = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
selectvisa_entry_type;
|
||||||
|
getallvisa_entry_type() {
|
||||||
|
this.mainService.getAllvisa_entry_type().subscribe(data => {
|
||||||
|
this.selectvisa_entry_type = data;
|
||||||
|
console.log(data);
|
||||||
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
|
selectvisa_duration;
|
||||||
|
getallvisa_duration() {
|
||||||
|
this.mainService.getAllvisa_duration().subscribe(data => {
|
||||||
|
this.selectvisa_duration = data;
|
||||||
|
console.log(data);
|
||||||
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
|
selectvisa_processing;
|
||||||
|
getallvisa_processing() {
|
||||||
|
this.mainService.getAllvisa_processing().subscribe(data => {
|
||||||
|
this.selectvisa_processing = data;
|
||||||
|
console.log('visa processing ', data);
|
||||||
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
|
isValidemail(email: string): boolean {
|
||||||
|
const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
||||||
|
return emailPattern.test(email);
|
||||||
|
}
|
||||||
|
|
||||||
|
isValidPhone_number(phone: string): boolean {
|
||||||
|
const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/;
|
||||||
|
return phonePattern.test(phone);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
selectgender;
|
||||||
|
getallgender() {
|
||||||
|
this.mainService.getAllgender().subscribe(data => {
|
||||||
|
this.selectgender = data;
|
||||||
|
console.log(data);
|
||||||
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//currency field start
|
||||||
|
formatCurrencyvisa_cost() {
|
||||||
// Format the currency with two decimal places
|
// Format the currency with two decimal places
|
||||||
this.rowSelected.visa_cost = Number(this.rowSelected.visa_cost ).toFixed(2);
|
this.rowSelected.visa_cost = Number(this.rowSelected.visa_cost).toFixed(2);
|
||||||
// Remove commas from the formatted currency
|
// Remove commas from the formatted currency
|
||||||
this.rowSelected.visa_cost = this.rowSelected.visa_cost?.replace(/,/g, ''); }
|
this.rowSelected.visa_cost = this.rowSelected.visa_cost?.replace(/,/g, '');
|
||||||
|
}
|
||||||
//currency field end
|
//currency field end
|
||||||
|
|
||||||
selectreferrer ;
|
selectreferrer;
|
||||||
getallreferrer() {
|
getallreferrer() {
|
||||||
this.mainService.getAllreferrer().subscribe(data=>{
|
this.mainService.getAllreferrer().subscribe(data => {
|
||||||
this.selectreferrer = data;
|
this.selectreferrer = data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
},(error) => { console.log(error); }); }
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
selectnationality ;
|
selectnationality;
|
||||||
getallnationality() {
|
getallnationality() {
|
||||||
this.mainService.getAllnationality().subscribe(data=>{
|
this.mainService.getAllnationality().subscribe(data => {
|
||||||
this.selectnationality = data;
|
this.selectnationality = data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
},(error) => { console.log(error); }); }
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
selectsupplier ;
|
selectsupplier;
|
||||||
getallsupplier() {
|
getallsupplier() {
|
||||||
this.mainService.getAllsupplier().subscribe(data=>{
|
this.mainService.getAllsupplier().subscribe(data => {
|
||||||
this.selectsupplier = data;
|
this.selectsupplier = data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
},(error) => { console.log(error); }); }
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
selectagent ;
|
selectagent;
|
||||||
getallagent() {
|
getallagent() {
|
||||||
this.mainService.getAllagent().subscribe(data=>{
|
this.mainService.getAllagent().subscribe(data => {
|
||||||
this.selectagent = data;
|
this.selectagent = data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
},(error) => { console.log(error); }); }
|
}, (error) => { console.log(error); });
|
||||||
|
}
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,34 +1,34 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable } from "rxjs";
|
import { Observable } from "rxjs";
|
||||||
import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
|
import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
|
||||||
import { ApiRequestService } from "src/app/services/api/api-request.service";
|
import { ApiRequestService } from "src/app/services/api/api-request.service";
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class Visa_applicationservice{
|
export class Visa_applicationservice{
|
||||||
private baseURL = "Visa_application/Visa_application" ; constructor(
|
private baseURL = "Visa_application/Visa_application" ; constructor(
|
||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
private apiRequest: ApiRequestService,
|
private apiRequest: ApiRequestService,
|
||||||
) { }
|
) { }
|
||||||
getAll(page?: number, size?: number): Observable<any> {
|
getAll(page?: number, size?: number): Observable<any> {
|
||||||
return this.apiRequest.get(this.baseURL);
|
return this.apiRequest.get(this.baseURL);
|
||||||
}
|
}
|
||||||
getById(id: number): Observable<any> {
|
getById(id: number): Observable<any> {
|
||||||
const _http = this.baseURL + "/" + id;
|
const _http = this.baseURL + "/" + id;
|
||||||
return this.apiRequest.get(_http);
|
return this.apiRequest.get(_http);
|
||||||
}
|
}
|
||||||
create(data: any): Observable<any> {
|
create(data: any): Observable<any> {
|
||||||
return this.apiRequest.post(this.baseURL, data);
|
return this.apiRequest.post(this.baseURL, data);
|
||||||
}
|
}
|
||||||
update(id: number, data: any): Observable<any> {
|
update(id: number, data: any): Observable<any> {
|
||||||
const _http = this.baseURL + "/" + id;
|
const _http = this.baseURL + "/" + id;
|
||||||
return this.apiRequest.put(_http, data);
|
return this.apiRequest.put(_http, data);
|
||||||
}
|
}
|
||||||
delete(id: number): Observable<any> {
|
delete(id: number): Observable<any> {
|
||||||
const _http = this.baseURL + "/" + id;
|
const _http = this.baseURL + "/" + id;
|
||||||
return this.apiRequest.delete(_http);
|
return this.apiRequest.delete(_http);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ getAllvisa_duration(): Observable<any> {
|
|||||||
return this.apiRequest.get("Visa_duration_ListFilter1/Visa_duration_ListFilter1"); }
|
return this.apiRequest.get("Visa_duration_ListFilter1/Visa_duration_ListFilter1"); }
|
||||||
|
|
||||||
getAllvisa_processing(): Observable<any> {
|
getAllvisa_processing(): Observable<any> {
|
||||||
return this.apiRequest.get("Visa_Processing_ListFilter1/Visa_Processing_ListFilter1"); }
|
return this.apiRequest.get("Visa_processing_ListFilter1/Visa_processing_ListFilter1"); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,340 +1,363 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Bundle</a></li>
|
<li><a href="javascript://"> Visa Bundle</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Bundle </h3>
|
<h3>Visa Bundle </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- upload and download template -->
|
</button>
|
||||||
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)">
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export"></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_bundle <!--update button -->
|
<h3 class="modal-title">Update Visa Bundle <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of visa_bundle</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedvisa_bundle($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowvisa_bundle(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvisa_bundle()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h6> List of Visa Bundle</h6>
|
||||||
|
|
||||||
|
<div class="clr-row" style="margin-top: 10px;">
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>No</th>
|
||||||
|
<th> File</th>
|
||||||
|
<th>File Name</th>
|
||||||
|
<th>Preview</th>
|
||||||
|
<th>Cancel</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
|
||||||
|
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
||||||
|
<td><input type="file" (change)="onFileChangedvisa_bundle($event, i)"
|
||||||
|
accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
|
||||||
|
</td>
|
||||||
|
<td>{{attach.uploadedfile_name}}</td>
|
||||||
|
<td> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
|
||||||
|
name="filePreview" width="100px" height="100px"></td>
|
||||||
|
<td>
|
||||||
|
<clr-signpost style="padding-right: 10px;">
|
||||||
|
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger"
|
||||||
|
clrSignpostTrigger></clr-icon>
|
||||||
|
|
||||||
|
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
||||||
|
<div style="text-align: center;"><b>Are you sure?</b></div>
|
||||||
|
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
||||||
|
<button class="btn btn-primary" (click)="deleteRowvisa_bundle(i,attach.id)">Delete</button>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
|
||||||
|
(click)="onAddLinesvisa_bundle()">
|
||||||
|
<clr-icon shape="plus"></clr-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -345,93 +368,99 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Bundle
|
<h3 class="modal-title">Add Visa Bundle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_bundle_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_bundle_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of visa_bundle</h6>
|
|
||||||
|
<h6> List of Visa Bundle</h6>
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
<div class="clr-row" style="margin-top: 10px;">
|
||||||
<thead>
|
<table class="table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>No</th>
|
<tr>
|
||||||
<th> File</th>
|
<th>No</th>
|
||||||
<th>File Name</th>
|
<th> File</th>
|
||||||
<th>Preview</th>
|
<th>File Name</th>
|
||||||
<th>Cancel</th>
|
<th>Preview</th>
|
||||||
</tr>
|
<th>Cancel</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody >
|
</thead>
|
||||||
<tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
|
<tbody>
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
<tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
|
||||||
<td><input type="file" (change)="onFileChangedvisa_bundle($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
||||||
</td>
|
<td><input type="file" (change)="onFileChangedvisa_bundle($event, i)"
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
</td>
|
||||||
<td>
|
<td>{{attach.uploadedfile_name}}</td>
|
||||||
<a (click)="deleteRowvisa_bundle(i)">
|
<td> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
name="filePreview" width="100px" height="100px"></td>
|
||||||
</a>
|
<td>
|
||||||
</td>
|
<a (click)="deleteRowvisa_bundle(i)">
|
||||||
</tr>
|
<clr-icon shape="trash" class="is-error"></clr-icon>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tbody>
|
</tr>
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvisa_bundle()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
|
||||||
</table> </div>
|
(click)="onAddLinesvisa_bundle()">
|
||||||
|
<clr-icon shape="plus"></clr-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -457,19 +486,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -1,288 +1,306 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_duration</a></li>
|
<li><a href="javascript://"> Visa Duration</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_duration </h3>
|
<h3>Visa Duration </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- upload and download template -->
|
</button>
|
||||||
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)">
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export"></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_duration <!--update button -->
|
<h3 class="modal-title">Update Visa Duration <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -293,54 +311,57 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_duration
|
<h3 class="modal-title">Add Visa Duration
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_duration_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']"
|
||||||
|
[queryParams]="{ formCode: 'Visa_duration_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -366,17 +387,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -1,15 +1,15 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_entry</a></li>
|
<li><a href="javascript://"> Visa Entry</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_entry </h3>
|
<h3>Visa Entry </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template -->
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
@ -29,37 +29,37 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
</clr-dg-placeholder>
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
@ -75,8 +75,8 @@
|
|||||||
</clr-signpost>
|
</clr-signpost>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
<!-- who colmn -->
|
<!-- who colmn -->
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
<clr-dg-action-overflow>
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
@ -211,51 +211,51 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div></clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_entry <!--update button -->
|
<h3 class="modal-title">Update Visa Entry <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@ -299,13 +299,13 @@
|
|||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_entry
|
<h3 class="modal-title">Add Visa Entry
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
@ -318,29 +318,29 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm" >
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -372,11 +372,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -1,34 +1,34 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Prices</a></li>
|
<li><a href="javascript://"> Visa Prices</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Prices </h3>
|
<h3>Visa Prices </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template -->
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
<button class="btn btn-outline" (click)="downloadCSV(tableName)" >
|
||||||
<clr-icon shape="export" ></clr-icon> Download
|
<clr-icon shape="export" ></clr-icon> Download
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template end here--> <!-- button -->
|
<!-- upload and download template end here--> <!-- button -->
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
</div></div>
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
||||||
<clr-dg-placeholder>
|
<clr-dg-placeholder>
|
||||||
<ng-template #loadingSpinner>
|
<ng-template #loadingSpinner>
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
</clr-dg-placeholder>
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
@ -62,13 +62,13 @@
|
|||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
@ -95,157 +95,157 @@
|
|||||||
<clr-dg-cell>{{user. cost }}</clr-dg-cell>
|
<clr-dg-cell>{{user. cost }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
</clr-signpost-content>
|
</clr-signpost-content>
|
||||||
</clr-signpost>
|
</clr-signpost>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
<!-- who colmn -->
|
<!-- who colmn -->
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
<clr-dg-action-overflow>
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
</clr-dg-action-overflow>
|
</clr-dg-action-overflow>
|
||||||
</clr-dg-row>
|
</clr-dg-row>
|
||||||
<clr-dg-footer>
|
<clr-dg-footer>
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
of {{pagination.totalItems}} users
|
of {{pagination.totalItems}} users
|
||||||
</clr-dg-pagination>
|
</clr-dg-pagination>
|
||||||
</clr-dg-footer>
|
</clr-dg-footer>
|
||||||
</clr-datagrid> </ng-container>
|
</clr-datagrid> </ng-container>
|
||||||
<ng-template #showInfo>
|
<ng-template #showInfo>
|
||||||
<div class="alert alert-info" role="alert">
|
<div class="alert alert-info" role="alert">
|
||||||
<div class="alert-items">
|
<div class="alert-items">
|
||||||
<div class="alert-item static">
|
<div class="alert-item static">
|
||||||
<span class="alert-text">
|
<span class="alert-text">
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
Data could be found. Loading..
|
Data could be found. Loading..
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
[style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
{{beforeText(item.fieldtext)}}
|
{{beforeText(item.fieldtext)}}
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
{{afterText(item.fieldtext)}}
|
{{afterText(item.fieldtext)}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
>
|
>
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
<div *ngIf="item.name == 'Image'"
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -266,9 +266,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_prices <!--update button -->
|
<h3 class="modal-title">Update Visa Prices <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -284,11 +284,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
@ -365,50 +365,50 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
<br>
|
<br>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end --> <div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h1 class="delete">Are You Sure Want to delete?</h1>
|
<h1 class="delete">Are You Sure Want to delete?</h1>
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Prices
|
<h3 class="modal-title">Add Visa Prices
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -425,18 +425,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_prices_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_prices_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a> </h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm" >
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
@ -517,37 +517,37 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
<br>
|
<br>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-input" />
|
class="clr-input" />
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-input" />
|
class="clr-input" />
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
class="clr-checkbox" />
|
class="clr-checkbox" />
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end --> <div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
@ -565,4 +565,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Processing</a></li>
|
<li><a href="javascript://"> Visa Processing</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Processing </h3>
|
<h3>Visa Processing </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
||||||
</button>
|
</button>
|
||||||
<!-- upload and download template -->
|
<!-- upload and download template -->
|
||||||
<button class="btn btn-outline" (click)="goToDataM()">
|
<button class="btn btn-outline" (click)="goToDataM()">
|
||||||
Upload
|
Upload
|
||||||
@ -29,37 +29,37 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
</clr-dg-placeholder>
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
@ -75,8 +75,8 @@
|
|||||||
</clr-signpost>
|
</clr-signpost>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
<!-- who colmn -->
|
<!-- who colmn -->
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
<clr-dg-action-overflow>
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
@ -211,51 +211,51 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div></clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_processing <!--update button -->
|
<h3 class="modal-title">Update Visa Processing <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form >
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@ -299,13 +299,13 @@
|
|||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Processing
|
<h3 class="modal-title">Add Visa Processing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
@ -318,29 +318,29 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm" >
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -372,11 +372,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -1,281 +1,299 @@
|
|||||||
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
<li><a href="javascript://"> Visa_Status</a></li>
|
<li><a href="javascript://"> Visa Status</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>Visa_Status </h3>
|
<h3>Visa Status </h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
</button>
|
shape="bars"></clr-icon>
|
||||||
<!-- button -->
|
</button>
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<!-- button -->
|
||||||
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div></div>
|
|
||||||
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
|
|
||||||
<clr-dg-placeholder>
|
|
||||||
<ng-template #loadingSpinner>
|
|
||||||
<clr-spinner>Loading ... </clr-spinner>
|
|
||||||
</ng-template>
|
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
|
||||||
</clr-dg-placeholder>
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
<!-- end -->
|
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
|
||||||
<clr-dg-cell>
|
|
||||||
<clr-signpost>
|
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
|
||||||
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
|
||||||
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
|
||||||
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
|
||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
</clr-dg-cell>
|
|
||||||
|
|
||||||
<!-- who colmn -->
|
|
||||||
|
|
||||||
<clr-dg-action-overflow>
|
|
||||||
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
|
||||||
</clr-dg-action-overflow>
|
|
||||||
</clr-dg-row>
|
|
||||||
<clr-dg-footer>
|
|
||||||
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
|
||||||
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
|
||||||
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
|
||||||
of {{pagination.totalItems}} users
|
|
||||||
</clr-dg-pagination>
|
|
||||||
</clr-dg-footer>
|
|
||||||
</clr-datagrid> </ng-container>
|
|
||||||
<ng-template #showInfo>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<div class="alert-items">
|
|
||||||
<div class="alert-item static">
|
|
||||||
<span class="alert-text">
|
|
||||||
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
|
||||||
Data could be found. Loading..
|
|
||||||
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ng-template><ng-container *ngIf="isCardview">
|
|
||||||
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
|
||||||
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
|
||||||
<div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
|
||||||
<div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
|
||||||
<ng-container *ngFor="let item of dashboardArray">
|
|
||||||
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
|
|
||||||
[style.gridRowEnd]="item.y + item.rows + 1">
|
|
||||||
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] }}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ] | date}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'" [style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
|
||||||
{{beforeText(item.fieldtext)}}
|
|
||||||
{{ app[transform(item.fieldtext) ]}}
|
|
||||||
{{afterText(item.fieldtext)}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
>
|
|
||||||
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="item.name == 'Image'"
|
|
||||||
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
|
||||||
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
|
||||||
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
|
||||||
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
|
||||||
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
|
||||||
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
|
||||||
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
|
||||||
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
|
||||||
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
|
||||||
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
|
||||||
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor"> <img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
|
||||||
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
|
||||||
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
</div>
|
[(clrDgSelected)]="selected">
|
||||||
</div>
|
<clr-dg-placeholder>
|
||||||
</div>
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="' active'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Active
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringdescription (user.description)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user. active }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
</div></clr-modal>
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Visa_status <!--update button -->
|
<h3 class="modal-title">Update Visa Status <!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<form >
|
<form>
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>Name</label>
|
<label>Name</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Description</label>
|
|
||||||
<textarea cols="10" rows="2"[(ngModel)]="rowSelected.description" name="description " placeholder="Textarea"> </textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Active</label>
|
|
||||||
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" /> </div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
|
||||||
<div *ngIf="checkFormCode">
|
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
|
||||||
<br>
|
|
||||||
<hr>
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
|
||||||
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
|
||||||
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
|
||||||
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
|
||||||
|
|
||||||
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
|
||||||
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" col="10" row="2"></textarea>
|
|
||||||
|
|
||||||
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
|
||||||
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<div class="clr-col-sm-12">
|
||||||
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
<label> Description</label>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
<textarea cols="10" rows="2" [(ngModel)]="rowSelected.description" name="description "
|
||||||
|
placeholder="Textarea"> </textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> Active</label>
|
||||||
|
<input type="checkbox" name="active" clrToggle [(ngModel)]="rowSelected.active" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -286,54 +304,56 @@
|
|||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
<!-- ADD FORM ..... -->
|
<!-- ADD FORM ..... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Add Visa_Status
|
<h3 class="modal-title">Add Visa Status
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
class="tooltip tooltip-sm tooltip-bottom-left">
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_status_formCode' }">
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Visa_status_formCode' }">
|
||||||
<clr-icon shape="airplane" size="32"></clr-icon>
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
</a>
|
</a>
|
||||||
<span class="tooltip-content">Form Extension</span>
|
<span class="tooltip-content">Form Extension</span>
|
||||||
</a> </h3>
|
</a>
|
||||||
|
</h3>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form [formGroup]="entryForm" >
|
<form [formGroup]="entryForm">
|
||||||
<div class="clr-row" style="height: fit-content;">
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Name</label>
|
<label> Name</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Description</label>
|
<label> Description</label>
|
||||||
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
<textarea cols="10" rows="2" formControlName="description" placeholder="Textarea"> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Active</label>
|
<label> Active</label>
|
||||||
<input type="checkbox" formControlName="active" clrToggle/> </div>
|
<input type="checkbox" formControlName="active" clrToggle />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -359,17 +379,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- form code end --> <div class="modal-footer">
|
<!-- form code end -->
|
||||||
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
@ -10,7 +10,8 @@ export const environment = {
|
|||||||
// changeblelocal configs url
|
// changeblelocal configs url
|
||||||
captchaSiteKey: '6LfrdSUpAAAAALkYDmnvdX3GLLCArgPWNHfXasjP',
|
captchaSiteKey: '6LfrdSUpAAAAALkYDmnvdX3GLLCArgPWNHfXasjP',
|
||||||
|
|
||||||
backport:'31701/visaproject36808/back',backendUrl:'/visaproject36808/back',
|
// backport:'31701/visaproject36808/back',
|
||||||
|
backendUrl:'http://localhost:9292/back',
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user