visa
This commit is contained in:
		
							parent
							
								
									9178e6511b
								
							
						
					
					
						commit
						b898694b14
					
				@ -7,217 +7,228 @@
 | 
				
			|||||||
      <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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -229,60 +240,67 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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>
 | 
				
			||||||
    <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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -293,7 +311,7 @@
 | 
				
			|||||||
    <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>
 | 
				
			||||||
@ -306,35 +324,37 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -366,11 +386,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -379,4 +400,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- htmlpopup -->
 | 
					<!-- htmlpopup -->
 | 
				
			||||||
@ -1,227 +1,238 @@
 | 
				
			|||||||
<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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -229,7 +240,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -237,104 +248,116 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h6> List of cost_sheet</h6>
 | 
					      <h6> List of Cost Sheet</h6>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div  class="clr-row" style="margin-top: 10px;">
 | 
					      <div class="clr-row" style="margin-top: 10px;">
 | 
				
			||||||
    <table class="table">
 | 
					        <table class="table">
 | 
				
			||||||
        <thead>
 | 
					          <thead>
 | 
				
			||||||
         <tr>
 | 
					            <tr>
 | 
				
			||||||
         <th>No</th>
 | 
					              <th>No</th>
 | 
				
			||||||
          <th> File</th>
 | 
					              <th> File</th>
 | 
				
			||||||
         <th>File Name</th>
 | 
					              <th>File Name</th>
 | 
				
			||||||
           <th>Preview</th>
 | 
					              <th>Preview</th>
 | 
				
			||||||
           <th>Cancel</th>
 | 
					              <th>Cancel</th>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
          </thead>
 | 
					          </thead>
 | 
				
			||||||
          <tbody >
 | 
					          <tbody>
 | 
				
			||||||
            <tr *ngFor="let attach of FileDatacost_sheet; let i=index">
 | 
					            <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 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><input type="file" (change)="onFileChangedcost_sheet($event, i)"
 | 
				
			||||||
               </td>
 | 
					                  accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
 | 
				
			||||||
             <td>{{attach.uploadedfile_name}}</td>
 | 
					              </td>
 | 
				
			||||||
              <td >  <img [src]="attach.filePreview" alt="File Preview"  [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></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>
 | 
					              <td>
 | 
				
			||||||
                  <clr-signpost style="padding-right: 10px;">
 | 
					                <clr-signpost style="padding-right: 10px;">
 | 
				
			||||||
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
 | 
					                  <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger"
 | 
				
			||||||
 | 
					                    clrSignpostTrigger></clr-icon>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
 | 
					                  <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
 | 
				
			||||||
  <div style="text-align: center;"><b >Are you sure?</b></div>
 | 
					                    <div style="text-align: center;"><b>Are you sure?</b></div>
 | 
				
			||||||
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button> 
 | 
					                    <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button> 
 | 
				
			||||||
                      <button class="btn btn-primary"  (click)="deleteRowcost_sheet(i,attach.id)" >Delete</button>
 | 
					                    <button class="btn btn-primary" (click)="deleteRowcost_sheet(i,attach.id)">Delete</button>
 | 
				
			||||||
                    </clr-signpost-content>
 | 
					                  </clr-signpost-content>
 | 
				
			||||||
                  </clr-signpost>
 | 
					                </clr-signpost>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </tbody>
 | 
					          </tbody>
 | 
				
			||||||
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinescost_sheet()">
 | 
					          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
 | 
				
			||||||
 | 
					            (click)="onAddLinescost_sheet()">
 | 
				
			||||||
            <clr-icon shape="plus"></clr-icon>
 | 
					            <clr-icon shape="plus"></clr-icon>
 | 
				
			||||||
          </button>
 | 
					          </button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </table> </div>
 | 
					        </table>
 | 
				
			||||||
 | 
					      </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>
 | 
				
			||||||
    <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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -345,13 +368,13 @@
 | 
				
			|||||||
    <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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -360,77 +383,83 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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;">
 | 
					      <div class="clr-row" style="margin-top: 10px;">
 | 
				
			||||||
   <table class="table">
 | 
					        <table class="table">
 | 
				
			||||||
       <thead>
 | 
					          <thead>
 | 
				
			||||||
        <tr>
 | 
					            <tr>
 | 
				
			||||||
        <th>No</th>
 | 
					              <th>No</th>
 | 
				
			||||||
         <th> File</th>
 | 
					              <th> File</th>
 | 
				
			||||||
         <th>File Name</th>
 | 
					              <th>File Name</th>
 | 
				
			||||||
          <th>Preview</th>
 | 
					              <th>Preview</th>
 | 
				
			||||||
          <th>Cancel</th>
 | 
					              <th>Cancel</th>
 | 
				
			||||||
           </tr>
 | 
					            </tr>
 | 
				
			||||||
         </thead>
 | 
					          </thead>
 | 
				
			||||||
         <tbody >
 | 
					          <tbody>
 | 
				
			||||||
           <tr *ngFor="let attach of FileDatacost_sheet; let i=index">
 | 
					            <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 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" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
 | 
					              <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>
 | 
					              </td>
 | 
				
			||||||
         <td>{{attach.uploadedfile_name}}</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> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
 | 
				
			||||||
             <td>
 | 
					                  name="filePreview" width="100px" height="100px"></td>
 | 
				
			||||||
               <a  (click)="deleteRowcost_sheet(i)">
 | 
					              <td>
 | 
				
			||||||
                 <clr-icon shape="trash" class="is-error"></clr-icon>
 | 
					                <a (click)="deleteRowcost_sheet(i)">
 | 
				
			||||||
               </a>
 | 
					                  <clr-icon shape="trash" class="is-error"></clr-icon>
 | 
				
			||||||
             </td>
 | 
					                </a>
 | 
				
			||||||
           </tr>
 | 
					              </td>
 | 
				
			||||||
 | 
					            </tr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       </tbody>
 | 
					          </tbody>
 | 
				
			||||||
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinescost_sheet()">
 | 
					          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
 | 
				
			||||||
           <clr-icon shape="plus"></clr-icon>
 | 
					            (click)="onAddLinescost_sheet()">
 | 
				
			||||||
         </button>
 | 
					            <clr-icon shape="plus"></clr-icon>
 | 
				
			||||||
 | 
					          </button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       </table> </div>
 | 
					        </table>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -457,11 +486,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -472,4 +502,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- htmlpopup -->
 | 
					<!-- htmlpopup -->
 | 
				
			||||||
@ -1,244 +1,255 @@
 | 
				
			|||||||
<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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -250,7 +261,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -262,55 +273,62 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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 class="clr-col-sm-12">     
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
<label> Emails</label>
 | 
					          <label> Emails</label>
 | 
				
			||||||
								  <input id="name" class="clr-input" type="email" 
 | 
					          <input id="name" class="clr-input" type="email" [(ngModel)]="rowSelected.emails " name="emails"
 | 
				
			||||||
						 [(ngModel)]="rowSelected.emails " name="emails" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
 | 
					            pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
 | 
				
			||||||
								  <div *ngIf="rowSelected.emails && !isValidemails(rowSelected.emails )" class="error_mess">
 | 
					          <div *ngIf="rowSelected.emails && !isValidemails(rowSelected.emails )" class="error_mess">
 | 
				
			||||||
	            * Email must be a valid email address.         
 | 
					            * Email must be a valid email address.
 | 
				
			||||||
  </div> </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="clr-col-sm-12"> 
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
<label>Visa status</label>
 | 
					          <label>Visa status</label>
 | 
				
			||||||
<select name="visa_status" [(ngModel)]="rowSelected.visa_status"> 
 | 
					          <select name="visa_status" [(ngModel)]="rowSelected.visa_status">
 | 
				
			||||||
  <option [value]="null">Choose visa_status</option>
 | 
					            <option [value]="null">Choose visa_status</option>
 | 
				
			||||||
<option *ngFor=" let item of selectvisa_status" [value]="item.id">{{item.name }}</option> </select> </div>
 | 
					            <option *ngFor=" let item of selectvisa_status" [value]="item.id">{{item.name }}</option>
 | 
				
			||||||
 | 
					          </select>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="clr-col-sm-12"> 
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
<label>Nationality</label>
 | 
					          <label>Nationality</label>
 | 
				
			||||||
<select name="nationality" [(ngModel)]="rowSelected.nationality"> 
 | 
					          <select name="nationality" [(ngModel)]="rowSelected.nationality">
 | 
				
			||||||
  <option [value]="null">Choose nationality</option>
 | 
					            <option [value]="null">Choose nationality</option>
 | 
				
			||||||
<option *ngFor=" let item of selectnationality" [value]="item.id">{{item.name }}</option> </select> </div>
 | 
					            <option *ngFor=" let item of selectnationality" [value]="item.id">{{item.name }}</option>
 | 
				
			||||||
 | 
					          </select>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  </div> 
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -323,33 +341,38 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- 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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -360,13 +383,13 @@
 | 
				
			|||||||
    <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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -379,65 +402,73 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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">
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
						<label> Emails</label>
 | 
					          <label> Emails</label>
 | 
				
			||||||
<input class="clr-input" type="email" formControlName="emails" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
 | 
					          <input class="clr-input" type="email" formControlName="emails"
 | 
				
			||||||
<div *ngIf="entryForm.controls['emails'].errors" class="error_mess">
 | 
					            pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
 | 
				
			||||||
						          <div *ngIf="entryForm.controls['emails'].hasError('pattern')" class="error_mess">* Email must be a valid email address
 | 
					          <div *ngIf="entryForm.controls['emails'].errors" class="error_mess">
 | 
				
			||||||
						            </div>  </div>
 | 
					            <div *ngIf="entryForm.controls['emails'].hasError('pattern')" class="error_mess">* Email must be a valid
 | 
				
			||||||
</div>
 | 
					              email address
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="clr-col-sm-12">
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
	          <label>  Visa status</label> 
 | 
					          <label> Visa status</label>
 | 
				
			||||||
<select  formControlName="visa_status">  
 | 
					          <select formControlName="visa_status">
 | 
				
			||||||
  <option [value]="null">Choose Visa status</option>
 | 
					            <option [value]="null">Choose Visa status</option>
 | 
				
			||||||
				<option *ngFor="let item of selectvisa_status" [value]="item.id">{{item.name}}</option>
 | 
					            <option *ngFor="let item of selectvisa_status" [value]="item.id">{{item.name}}</option>
 | 
				
			||||||
	      </select>          </div>
 | 
					          </select>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="clr-col-sm-12">
 | 
					        <div class="clr-col-sm-12">
 | 
				
			||||||
	          <label>  Nationality</label> 
 | 
					          <label> Nationality</label>
 | 
				
			||||||
<select  formControlName="nationality">  
 | 
					          <select formControlName="nationality">
 | 
				
			||||||
  <option [value]="null">Choose Nationality</option>
 | 
					            <option [value]="null">Choose Nationality</option>
 | 
				
			||||||
				<option *ngFor="let item of selectnationality" [value]="item.id">{{item.name}}</option>
 | 
					            <option *ngFor="let item of selectnationality" [value]="item.id">{{item.name}}</option>
 | 
				
			||||||
	      </select>          </div>
 | 
					          </select>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 </div> 
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -475,11 +506,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -494,4 +526,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- htmlpopup -->
 | 
					<!-- htmlpopup -->
 | 
				
			||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
<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()" >
 | 
				
			||||||
@ -387,7 +387,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -681,7 +681,7 @@
 | 
				
			|||||||
</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 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
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';
 | 
				
			||||||
@ -18,10 +18,10 @@ export class Visa_applicationComponent implements OnInit {
 | 
				
			|||||||
  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;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@ -33,127 +33,84 @@ export class Visa_applicationComponent implements OnInit {
 | 
				
			|||||||
    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
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  }); // component_button200
 | 
					 | 
				
			||||||
 // form code start
 | 
					 | 
				
			||||||
    this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
 | 
					    this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
 | 
				
			||||||
      console.log(data);
 | 
					      console.log(data);
 | 
				
			||||||
      const jsonArray = data.map((str) => JSON.parse(str));
 | 
					      const jsonArray = data.map((str) => JSON.parse(str));
 | 
				
			||||||
@ -176,47 +133,21 @@ agent : [null],
 | 
				
			|||||||
    // 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();
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
this.getallgender();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
this.getallreferrer();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
this.getallnationality();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
this.getallsupplier();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
this.getallagent();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@ -264,19 +195,19 @@ this.getallagent();
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 error; 
 | 
					  error;
 | 
				
			||||||
  getData() {
 | 
					  getData() {
 | 
				
			||||||
    this.mainService.getAll().subscribe((data) => {
 | 
					    this.mainService.getAll().subscribe((data) => {
 | 
				
			||||||
      console.log(data);
 | 
					      console.log(data);
 | 
				
			||||||
      this.product = data;
 | 
					      this.product = data;
 | 
				
			||||||
 if(this.product.length==0){
 | 
					      if (this.product.length == 0) {
 | 
				
			||||||
        this.error="No Data Available"
 | 
					        this.error = "No Data Available"
 | 
				
			||||||
     }   
 | 
					      }
 | 
				
			||||||
    },(error) => {
 | 
					    }, (error) => {
 | 
				
			||||||
      console.log(error);
 | 
					      console.log(error);
 | 
				
			||||||
      if(error){
 | 
					      if (error) {
 | 
				
			||||||
       this.error="Server Error";
 | 
					        this.error = "Server Error";
 | 
				
			||||||
     }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  onEdit(row) {
 | 
					  onEdit(row) {
 | 
				
			||||||
@ -328,22 +259,21 @@ this.getallagent();
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    this.modalEdit = true;
 | 
					    this.modalEdit = true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
   onDelete(row) {
 | 
					  onDelete(row) {
 | 
				
			||||||
    this.rowSelected = row;
 | 
					    this.rowSelected = row;
 | 
				
			||||||
     this.modaldelete=true;
 | 
					    this.modaldelete = true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  delete(id)
 | 
					  delete(id) {
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    this.modaldelete = false;
 | 
					    this.modaldelete = false;
 | 
				
			||||||
    console.log("in delete  "+id);
 | 
					    console.log("in delete  " + id);
 | 
				
			||||||
    this.mainService.delete(id).subscribe(
 | 
					    this.mainService.delete(id).subscribe(
 | 
				
			||||||
      (data) => {
 | 
					      (data) => {
 | 
				
			||||||
        console.log(data);
 | 
					        console.log(data);
 | 
				
			||||||
        this.ngOnInit();
 | 
					        this.ngOnInit();
 | 
				
			||||||
  if (data) {				      this.toastr.success('Deleted successfully');      }
 | 
					        if (data) { this.toastr.success('Deleted successfully'); }
 | 
				
			||||||
    });
 | 
					      });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
    onUpdate(id) {
 | 
					  onUpdate(id) {
 | 
				
			||||||
    this.modalEdit = false;
 | 
					    this.modalEdit = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -399,9 +329,9 @@ this.getallagent();
 | 
				
			|||||||
        if (data || data.status >= 200 && data.status <= 299) {
 | 
					        if (data || data.status >= 200 && data.status <= 299) {
 | 
				
			||||||
          this.toastr.success("Update Successfully");
 | 
					          this.toastr.success("Update Successfully");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
setTimeout(() => {
 | 
					        setTimeout(() => {
 | 
				
			||||||
      this.ngOnInit();
 | 
					          this.ngOnInit();
 | 
				
			||||||
    }, 500);
 | 
					        }, 500);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -462,8 +392,8 @@ setTimeout(() => {
 | 
				
			|||||||
      this.ngOnInit();
 | 
					      this.ngOnInit();
 | 
				
			||||||
    }, 500);
 | 
					    }, 500);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
onCreate() {
 | 
					  onCreate() {
 | 
				
			||||||
     this.modalAdd=false;
 | 
					    this.modalAdd = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -508,15 +438,15 @@ onCreate() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  this.mainService.create(this.entryForm.value).subscribe(
 | 
					    this.mainService.create(this.entryForm.value).subscribe(
 | 
				
			||||||
    (data) => {
 | 
					      (data) => {
 | 
				
			||||||
      console.log(data);
 | 
					        console.log(data);
 | 
				
			||||||
  if (data || data.status >= 200 && data.status <= 299) {
 | 
					        if (data || data.status >= 200 && data.status <= 299) {
 | 
				
			||||||
          this.toastr.success("Added Successfully");
 | 
					          this.toastr.success("Added Successfully");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
setTimeout(() => {
 | 
					        setTimeout(() => {
 | 
				
			||||||
      this.ngOnInit();
 | 
					          this.ngOnInit();
 | 
				
			||||||
    }, 500);
 | 
					        }, 500);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -578,7 +508,7 @@ setTimeout(() => {
 | 
				
			|||||||
    }, 500);
 | 
					    }, 500);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  goToAdd(row) {
 | 
					  goToAdd(row) {
 | 
				
			||||||
this.modalAdd = true; this.submitted = false;
 | 
					    this.modalAdd = true; this.submitted = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -624,113 +554,114 @@ this.modalAdd = true; this.submitted = false;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 submitted = false;
 | 
					  submitted = false;
 | 
				
			||||||
onSubmit() {
 | 
					  onSubmit() {
 | 
				
			||||||
  console.log(this.entryForm.value);
 | 
					    console.log(this.entryForm.value);
 | 
				
			||||||
 this.submitted = true;
 | 
					    this.submitted = true;
 | 
				
			||||||
  if (this.entryForm.invalid) {
 | 
					    if (this.entryForm.invalid) {
 | 
				
			||||||
    return;
 | 
					      return;
 | 
				
			||||||
  }this.onCreate();
 | 
					    } this.onCreate();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} 
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rsModaldescription = false;   
 | 
					  rsModaldescription = false;
 | 
				
			||||||
goToReplaceStringdescription(row){
 | 
					  goToReplaceStringdescription(row) {
 | 
				
			||||||
this.rowSelected = row;     this.rsModaldescription  =true;   }
 | 
					    this.rowSelected = row; this.rsModaldescription = true;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
selectvisa_entry_type ;     
 | 
					  selectvisa_entry_type;
 | 
				
			||||||
getallvisa_entry_type() {
 | 
					  getallvisa_entry_type() {
 | 
				
			||||||
 this.mainService.getAllvisa_entry_type().subscribe(data=>{
 | 
					    this.mainService.getAllvisa_entry_type().subscribe(data => {
 | 
				
			||||||
this.selectvisa_entry_type = data;       
 | 
					      this.selectvisa_entry_type = data;
 | 
				
			||||||
console.log(data);
 | 
					      console.log(data);
 | 
				
			||||||
},(error) => {       console.log(error);     });   }							   
 | 
					    }, (error) => { console.log(error); });
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
selectvisa_duration ;     
 | 
					  selectvisa_duration;
 | 
				
			||||||
getallvisa_duration() {
 | 
					  getallvisa_duration() {
 | 
				
			||||||
 this.mainService.getAllvisa_duration().subscribe(data=>{
 | 
					    this.mainService.getAllvisa_duration().subscribe(data => {
 | 
				
			||||||
this.selectvisa_duration = data;       
 | 
					      this.selectvisa_duration = data;
 | 
				
			||||||
console.log(data);
 | 
					      console.log(data);
 | 
				
			||||||
},(error) => {       console.log(error);     });   }							   
 | 
					    }, (error) => { console.log(error); });
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
selectvisa_processing ;     
 | 
					  selectvisa_processing;
 | 
				
			||||||
getallvisa_processing() {
 | 
					  getallvisa_processing() {
 | 
				
			||||||
 this.mainService.getAllvisa_processing().subscribe(data=>{
 | 
					    this.mainService.getAllvisa_processing().subscribe(data => {
 | 
				
			||||||
this.selectvisa_processing = data;       
 | 
					      this.selectvisa_processing = data;
 | 
				
			||||||
console.log(data);
 | 
					      console.log('visa processing ', data);
 | 
				
			||||||
},(error) => {       console.log(error);     });   }							   
 | 
					    }, (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() {
 | 
				
			||||||
 | 
					 | 
				
			||||||
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
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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,227 +1,238 @@
 | 
				
			|||||||
<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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -229,7 +240,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -237,104 +248,116 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h6> List of visa_bundle</h6>
 | 
					      <h6> List of Visa Bundle</h6>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div  class="clr-row" style="margin-top: 10px;">
 | 
					      <div class="clr-row" style="margin-top: 10px;">
 | 
				
			||||||
    <table class="table">
 | 
					        <table class="table">
 | 
				
			||||||
        <thead>
 | 
					          <thead>
 | 
				
			||||||
         <tr>
 | 
					            <tr>
 | 
				
			||||||
         <th>No</th>
 | 
					              <th>No</th>
 | 
				
			||||||
          <th> File</th>
 | 
					              <th> File</th>
 | 
				
			||||||
         <th>File Name</th>
 | 
					              <th>File Name</th>
 | 
				
			||||||
           <th>Preview</th>
 | 
					              <th>Preview</th>
 | 
				
			||||||
           <th>Cancel</th>
 | 
					              <th>Cancel</th>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
          </thead>
 | 
					          </thead>
 | 
				
			||||||
          <tbody >
 | 
					          <tbody>
 | 
				
			||||||
            <tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
 | 
					            <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 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><input type="file" (change)="onFileChangedvisa_bundle($event, i)"
 | 
				
			||||||
               </td>
 | 
					                  accept="application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
 | 
				
			||||||
             <td>{{attach.uploadedfile_name}}</td>
 | 
					              </td>
 | 
				
			||||||
              <td >  <img [src]="attach.filePreview" alt="File Preview"  [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></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>
 | 
					              <td>
 | 
				
			||||||
                  <clr-signpost style="padding-right: 10px;">
 | 
					                <clr-signpost style="padding-right: 10px;">
 | 
				
			||||||
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
 | 
					                  <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger"
 | 
				
			||||||
 | 
					                    clrSignpostTrigger></clr-icon>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
 | 
					                  <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
 | 
				
			||||||
  <div style="text-align: center;"><b >Are you sure?</b></div>
 | 
					                    <div style="text-align: center;"><b>Are you sure?</b></div>
 | 
				
			||||||
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button> 
 | 
					                    <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button> 
 | 
				
			||||||
                      <button class="btn btn-primary"  (click)="deleteRowvisa_bundle(i,attach.id)" >Delete</button>
 | 
					                    <button class="btn btn-primary" (click)="deleteRowvisa_bundle(i,attach.id)">Delete</button>
 | 
				
			||||||
                    </clr-signpost-content>
 | 
					                  </clr-signpost-content>
 | 
				
			||||||
                  </clr-signpost>
 | 
					                </clr-signpost>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </tbody>
 | 
					          </tbody>
 | 
				
			||||||
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvisa_bundle()">
 | 
					          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
 | 
				
			||||||
 | 
					            (click)="onAddLinesvisa_bundle()">
 | 
				
			||||||
            <clr-icon shape="plus"></clr-icon>
 | 
					            <clr-icon shape="plus"></clr-icon>
 | 
				
			||||||
          </button>
 | 
					          </button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </table> </div>
 | 
					        </table>
 | 
				
			||||||
 | 
					      </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>
 | 
				
			||||||
    <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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -345,13 +368,13 @@
 | 
				
			|||||||
    <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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -360,77 +383,83 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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;">
 | 
					      <div class="clr-row" style="margin-top: 10px;">
 | 
				
			||||||
   <table class="table">
 | 
					        <table class="table">
 | 
				
			||||||
       <thead>
 | 
					          <thead>
 | 
				
			||||||
        <tr>
 | 
					            <tr>
 | 
				
			||||||
        <th>No</th>
 | 
					              <th>No</th>
 | 
				
			||||||
         <th> File</th>
 | 
					              <th> File</th>
 | 
				
			||||||
         <th>File Name</th>
 | 
					              <th>File Name</th>
 | 
				
			||||||
          <th>Preview</th>
 | 
					              <th>Preview</th>
 | 
				
			||||||
          <th>Cancel</th>
 | 
					              <th>Cancel</th>
 | 
				
			||||||
           </tr>
 | 
					            </tr>
 | 
				
			||||||
         </thead>
 | 
					          </thead>
 | 
				
			||||||
         <tbody >
 | 
					          <tbody>
 | 
				
			||||||
           <tr *ngFor="let attach of FileDatavisa_bundle; let i=index">
 | 
					            <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 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" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
 | 
					              <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>
 | 
					              </td>
 | 
				
			||||||
         <td>{{attach.uploadedfile_name}}</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> <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}"
 | 
				
			||||||
             <td>
 | 
					                  name="filePreview" width="100px" height="100px"></td>
 | 
				
			||||||
               <a  (click)="deleteRowvisa_bundle(i)">
 | 
					              <td>
 | 
				
			||||||
                 <clr-icon shape="trash" class="is-error"></clr-icon>
 | 
					                <a (click)="deleteRowvisa_bundle(i)">
 | 
				
			||||||
               </a>
 | 
					                  <clr-icon shape="trash" class="is-error"></clr-icon>
 | 
				
			||||||
             </td>
 | 
					                </a>
 | 
				
			||||||
           </tr>
 | 
					              </td>
 | 
				
			||||||
 | 
					            </tr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       </tbody>
 | 
					          </tbody>
 | 
				
			||||||
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvisa_bundle()">
 | 
					          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;"
 | 
				
			||||||
           <clr-icon shape="plus"></clr-icon>
 | 
					            (click)="onAddLinesvisa_bundle()">
 | 
				
			||||||
         </button>
 | 
					            <clr-icon shape="plus"></clr-icon>
 | 
				
			||||||
 | 
					          </button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       </table> </div>
 | 
					        </table>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -457,11 +486,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -472,4 +502,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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">               
 | 
					        <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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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>
 | 
				
			||||||
    <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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -293,48 +311,51 @@
 | 
				
			|||||||
    <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -366,11 +387,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -379,4 +401,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- htmlpopup -->
 | 
					<!-- htmlpopup -->
 | 
				
			||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
<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()" >
 | 
				
			||||||
@ -223,7 +223,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -299,7 +299,7 @@
 | 
				
			|||||||
</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 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
<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()" >
 | 
				
			||||||
@ -268,7 +268,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -408,7 +408,7 @@
 | 
				
			|||||||
</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 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
<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()" >
 | 
				
			||||||
@ -223,7 +223,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- //		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 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -299,7 +299,7 @@
 | 
				
			|||||||
</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 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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"
 | 
				
			||||||
 | 
					          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>
 | 
					 | 
				
			||||||
  <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">               
 | 
					        <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 "
 | 
				
			||||||
	           </div> 
 | 
					            placeholder="Textarea">  </textarea>
 | 
				
			||||||
 | 
					        </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>
 | 
				
			||||||
    <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 }}"
 | 
				
			||||||
        </ng-container>
 | 
					                [(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
 | 
				
			||||||
  </div>
 | 
					            </ng-container>
 | 
				
			||||||
  </div>
 | 
					          </div>
 | 
				
			||||||
</div>
 | 
					        </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- form code end -->  <div class="modal-footer">
 | 
					      <!-- form code end -->
 | 
				
			||||||
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
 | 
					      <div class="modal-footer">
 | 
				
			||||||
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</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>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -286,48 +304,50 @@
 | 
				
			|||||||
    <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -359,11 +379,12 @@
 | 
				
			|||||||
          </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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -372,4 +393,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- 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