<ol class="breadcrumb breadcrumb-arrow font-trirong">
  <li><a href="javascript://"> Forma</a></li>
</ol>
<div class="dg-wrapper">
  <div class="clr-row">
    <div class="clr-col-8">
      <h3>Forma </h3>
    </div>
    <div class="clr-col-4" style="text-align: right;">
 <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>
      </button>
        <!-- button -->
     <button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
        <clr-icon shape="plus"></clr-icon>ADD
      </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]="' names'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Names
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' numbertest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Numbertest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' phonetest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Phonetest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' paragraphtest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Paragraphtest
						    </ng-container></clr-dg-column>


 <clr-dg-column [clrDgField]="'passwordss'"> <ng-container *clrDgHideableColumn="{hidden: false}">Passwordss
						 </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' textareatest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Textareatest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' datetest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Datetest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' datetimetest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Datetimetest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' emailtest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Emailtest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' toggletest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Toggletest
						    </ng-container></clr-dg-column>


 <clr-dg-column [clrDgField]="'urltest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Urltest
						 </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' decimaltest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Decimaltest
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' percentagess'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Percentagess
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' recaptchass'"> <ng-container *clrDgHideableColumn="{hidden: false}"> recaptchass
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' documentss'"> <ng-container *clrDgHideableColumn="{hidden: false}"> documentss
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' selectstat'"> <ng-container *clrDgHideableColumn="{hidden: false}"> selectstat
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="' radiotest'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Radiotest
						    </ng-container></clr-dg-column>

 
 
 
<clr-dg-column [clrDgField]="' test1'"> <ng-container *clrDgHideableColumn="{hidden: false}"> test1
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' test2'"> <ng-container *clrDgHideableColumn="{hidden: false}"> test2
						    </ng-container></clr-dg-column>
   












<clr-dg-column [clrDgField]="' currencyss'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Currencyss
						    </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. names }}</clr-dg-cell>


<clr-dg-cell>{{user. numbertest }}</clr-dg-cell>


<clr-dg-cell>{{user. phonetest }}</clr-dg-cell>


<clr-dg-cell (click)="goToReplaceStringparagraphtest(user.paragraphtest)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon></clr-dg-cell>


<clr-dg-cell>{{user. passwordss }}</clr-dg-cell>


<clr-dg-cell (click)="goToReplaceStringtextareatest (user.textareatest)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
</clr-dg-cell>


<clr-dg-cell>{{user. datetest }}</clr-dg-cell>


<clr-dg-cell>{{user. datetimetest }}</clr-dg-cell>


<clr-dg-cell>{{user. emailtest }}</clr-dg-cell>


<clr-dg-cell>{{user. toggletest }}</clr-dg-cell>


<clr-dg-cell (click)="goTourltestUrl(user.urltest)" style="cursor: pointer; color: rgb(108, 108, 194);">{{user.urltest}}</clr-dg-cell>


<clr-dg-cell>{{user. decimaltest }}</clr-dg-cell>


<clr-dg-cell>{{user. percentagess }}</clr-dg-cell>


<clr-dg-cell>{{user. recaptchass }}</clr-dg-cell>


<clr-dg-cell>{{user. documentss }}</clr-dg-cell>


<clr-dg-cell>{{user. selectstat }}</clr-dg-cell>


<clr-dg-cell>{{user. radiotest }}</clr-dg-cell>



 
<clr-dg-cell>{{user. test1}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user. test2}}</clr-dg-cell>
   












<clr-dg-cell>{{user. currencyss }}</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>
</div>







<clr-modal [(clrModalOpen)]="rsModalparagraphtest" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
						  <div class="modal-body">
						    <textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
						  </div></clr-modal>




<clr-modal [(clrModalOpen)]="rsModaltextareatest" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
						  <div class="modal-body">
						    <textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
						  </div></clr-modal>



































<!-- //		EDIT DATA......... -->
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <h3 class="modal-title">Update Forma
 <!--update button -->













































</h3>
  <div class="modal-body" *ngIf="rowSelected.id">
    <h2 class="heading">{{rowSelected.id}}</h2>
<!-- button -->
    <form >
<div class="clr-row"> 
<div class="clr-col-sm-12">       
<label>Names</label>
	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.names" name="names" />
	      </div>

<div class="clr-col-sm-12">       
<label>Numbertest</label>
	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.numbertest" name="numbertest" />
	      </div>

<div class="clr-col-sm-12">         
<label> Phonetest</label>
	        <input id="name" class="clr-input" type="Text" [(ngModel)]="rowSelected.phonetest " name="phonetest" pattern="((\\+)?([1-9]{2}))?[1-9]{1}[0-9]{9}$" />
	        <div *ngIf="rowSelected.phonetest  && !isValidPhonetest(rowSelected.phonetest)" class="error_mess">
	          * Please Follow your pattern,+91 Enter 10 digit Mobile Number.
	        </div>       </div> 

<div class="clr-col-sm-12">         
<label> Paragraphtest</label>
	        <input id="name"  type="Text" class="form-control" style="border: none; outline: none; height:33px !important;" [(ngModel)]="rowSelected.paragraphtest" name=" paragraphtest " />       </div>

<div class="clr-col-sm-12">       
<label> Passwordss</label><br>      
 <div><input [type]="newpHidepasswordss ? 'password': 'text'" class="clr-input" style="width: 93% !important;" [(ngModel)]="rowSelected.passwordss" name="passwordss">&nbsp;
	      <clr-icon [attr.shape]="newIconpasswordss" (click)="newShapeChangerpasswordss()"></clr-icon></div>
	    </div>

<div class="clr-col-sm-12">               
<label> Textareatest</label>
	              <textarea cols="10" rows="2"[(ngModel)]="rowSelected.textareatest" name="textareatest " placeholder="Textarea">  </textarea>
	           </div> 

<div class="clr-col-sm-12">       
<label>Datetest</label>
	        <input id="name" class="clr-input"  type="date" [(ngModel)]="rowSelected.datetest" name="datetest" />
	      </div>

<div class="clr-col-sm-12">       
<label>Datetimetest</label>
	        <input  class="clr-input"  type="datetime-local" [(ngModel)]="rowSelected.datetimetest" name="datetimetest" />
	      </div>

<div class="clr-col-sm-12">     
<label> Emailtest</label>
								  <input id="name" class="clr-input" type="email" 
						 [(ngModel)]="rowSelected.emailtest " name="emailtest" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
								  <div *ngIf="rowSelected.emailtest && !isValidemailtest(rowSelected.emailtest )" class="error_mess">
	            * Email must be a valid email address.         
  </div> </div>

<div class="clr-col-sm-12"> 
<label> Toggletest</label> 
<input type="checkbox" name="toggletest" clrToggle [(ngModel)]="rowSelected.toggletest" /> </div>

<div class="clr-col-sm-12">         
<label> Urltest</label>
	        <input type="url" name="urltest" [(ngModel)]="rowSelected.urltest" placeholder="Enter URL" class="clr-input" pattern="https?://.+">
	        <div *ngIf="!isValidurltest(rowSelected.urltest )" class="error_mess">  * Please enter a valid URL.         </div>     </div>

<div class="clr-col-sm-12">        
<label> Decimaltest</label>
          <input  class="clr-input" type="number" step ="0.01" [(ngModel)]="rowSelected.decimaltest" name="decimaltest" /> </div>

<div class="clr-col-sm-12">       
<label>Percentagess</label>
	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.percentagess" name="percentagess" />
	      </div>

<div class="clr-col-sm-12">            
 <label> recaptchass</label>   <div><b>{{ recaptchassCode }}</b> &nbsp; <button  class="btn btn-icon btn-primary btn-sm" (click)="generaterecaptchass()">
<clr-icon shape="refresh"></clr-icon>   </button></div>
	            <input type="text" name="recaptchass" [(ngModel)]="rowSelected.recaptchass" (ngModelChange)="checkrecaptchassEdit()" class="clr-input">
	            <div *ngIf=" recaptchassMismatch" class="error_mess">
	              <div class="error_mess"> recaptchass  not valid.</div>
	            </div>         
</div> 



<div class="clr-col-sm-12">
 <label> selectstat</label> 
<select name="selectstat" [(ngModel)]="rowSelected.selectstat">
    <option [value]="null">Selectselectstat
    </option>


    
 

    <option> a </option>
     

 

    <option> b </option>
     

 

    <option> c </option>
     


  </select> </div>

 <div class="clr-col-sm-12">            
            <label> Radiotest</label>             
           <clr-radio-container clrInline style="margin-top: 0;">
               
 
               <clr-radio-wrapper>
                                 <input type="radio" clrRadio  (change)="updateradiotestEdit('female')" [checked]="rowSelected.radiotest  === 'female'" />
                                 <label>female</label>
                               </clr-radio-wrapper>
                

 
               <clr-radio-wrapper>
                                 <input type="radio" clrRadio  (change)="updateradiotestEdit('male')" [checked]="rowSelected.radiotest  === 'male'" />
                                 <label>male</label>
                               </clr-radio-wrapper>
                

               </clr-radio-container>           </div>

<!-- multiselect checkbox field start -->
<div class="clr-col-sm-12">
 <label> checkboxtest</label>
  <div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
    <div class="clr-control-container">
      
 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="test1" name="test1" [(ngModel)]="rowSelected.test1" class="clr-checkbox" /> 
<label for="test1" class="clr-control-label"> test1</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="test2" name="test2" [(ngModel)]="rowSelected.test2" class="clr-checkbox" /> 
<label for="test2" class="clr-control-label"> test2</label> </div>

       


    </div>
  </div>
</div>
<!-- multiselect checkbox field end -->









<!-- currency field start -->
<div class="clr-col-sm-12">
  <label> Currencyss</label>
  <input type="number" class="clr-input" [(ngModel)]="rowSelected.currencyss" name="currencyss" (blur)="formatCurrencycurrencyss()" [value]="rowSelected.currencyss  | removeCommas">
</div>
<!-- currency field end -->

  </div> 




































<h6> List of fileuploadtest</h6>

  <div  class="clr-row" style="margin-top: 10px;">
    <table class="table">
        <thead>
         <tr>
         <th>No</th>
          <th> File</th>
         <th>File Name</th>
           <th>Preview</th>
           <th>Cancel</th>
            </tr>
          </thead>
          <tbody >
            <tr *ngFor="let attach of FileDatafileuploadtest; let i=index">
              <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
              <td><input type="file" (change)="onFileChangedfileuploadtest($event, i)"  accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
               </td>
             <td>{{attach.uploadedfile_name}}</td>
              <td >  <img [src]="attach.filePreview" alt="File Preview"  [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
              <td>
                  <clr-signpost style="padding-right: 10px;">
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
                 
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
  <div style="text-align: center;"><b >Are you sure?</b></div>
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>&nbsp;
                      <button class="btn btn-primary"  (click)="deleteRowfileuploadtest(i,attach.id)" >Delete</button>
                    </clr-signpost-content>
                  </clr-signpost>
                
              </td>
            </tr>
 
 
        </tbody>
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesfileuploadtest()">
            <clr-icon shape="plus"></clr-icon>
          </button>
 
        </table> </div>

<h6> List of imageuploadtest</h6>

  <div  class="clr-row" style="margin-top: 10px;">
    <table class="table">
        <thead>
         <tr>
         <th>No</th>
          <th> File</th>
         <th>File Name</th>
           <th>Preview</th>
           <th>Cancel</th>
            </tr>
          </thead>
          <tbody >
            <tr *ngFor="let attach of FileDataimageuploadtest; let i=index">
              <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
              <td><input type="file" (change)="onFileChangedimageuploadtest($event, i)"  accept="image/*" />
               </td>
             <td>{{attach.uploadedfile_name}}</td>
              <td >  <img [src]="attach.filePreview" alt="File Preview"  [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
              <td>
                  <clr-signpost style="padding-right: 10px;">
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
                 
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
                  <div style="text-align: center;"><b >Are you sure?</b></div>
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>&nbsp;
                      <button class="btn btn-primary"  (click)="deleteRowimageuploadtest(i,attach.id)" >Delete</button>
                    </clr-signpost-content>
                  </clr-signpost>
                
              </td>
            </tr>
 
 
        </tbody>
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesimageuploadtest()">
            <clr-icon shape="plus"></clr-icon>
          </button>
 
        </table> </div>

<h6> List of audiotest</h6>

  <div  class="clr-row" style="margin-top: 10px;">
    <table class="table">
        <thead>
         <tr>
         <th>No</th>
          <th> File</th>
         <th>File Name</th>
           <th>Preview</th>
           <th>Cancel</th>
            </tr>
          </thead>
          <tbody >
            <tr *ngFor="let attach of FileDataaudiotest; let i=index">
              <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
              <td><input type="file" (change)="onFileChangedaudiotest($event, i)"  accept="audio/*" />
               </td>
             <td>{{attach.uploadedfile_name}}</td>
              <td >  <audio *ngIf="attach.filePreview" [src]="attach.filePreview" controls></audio></td>
              <td>
                  <clr-signpost style="padding-right: 10px;">
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
                 
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
                  <div style="text-align: center;"><b >Are you sure?</b></div>
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>&nbsp;
                      <button class="btn btn-primary"  (click)="deleteRowaudiotest(i,attach.id)" >Delete</button>
                    </clr-signpost-content>
                  </clr-signpost>
                
              </td>
            </tr>
 
 
        </tbody>
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesaudiotest()">
            <clr-icon shape="plus"></clr-icon>
          </button>
 
        </table> </div>

<h6> List of videotest</h6>

  <div  class="clr-row" style="margin-top: 10px;">
    <table class="table">
        <thead>
         <tr>
         <th>No</th>
          <th> File</th>
         <th>File Name</th>
           <th>Preview</th>
           <th>Cancel</th>
            </tr>
          </thead>
          <tbody >
            <tr *ngFor="let attach of FileDatavideotest; let i=index">
              <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
              <td><input type="file" (change)="onFileChangedvideotest($event, i)"  accept="video/*" />
               </td>
             <td>{{attach.uploadedfile_name}}</td>
              <td >            <video *ngIf="attach.filePreview" [src]="attach.filePreview" width="100px" height="100px" controls></video></td>
              <td>
                  <clr-signpost style="padding-right: 10px;">
                      <clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
                 
                    <clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
                  <div style="text-align: center;"><b >Are you sure?</b></div>
                      <button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>&nbsp;
                      <button class="btn btn-primary"  (click)="deleteRowvideotest(i,attach.id)" >Delete</button>
                    </clr-signpost-content>
                  </clr-signpost>
                
              </td>
            </tr>
 
 
        </tbody>
          <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvideotest()">
            <clr-icon shape="plus"></clr-icon>
          </button>
 
        </table> </div>



<!-- form code start -->
  <div *ngIf="checkFormCode">
    <h4 style="font-weight: 300;display: inline;">Extension</h4>
    <br>
    <hr>
    <div class="clr-row">
      <div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
        <ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
          <!-- Text Input -->    <label  *ngSwitchCase="'text'">{{ field.fieldName }}</label>
          <input *ngSwitchCase="'text'" [type]="field.fieldType"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
  
          <!-- Date Input -->    <label  *ngSwitchCase="'date'">{{ field.fieldName }}</label>
          <input *ngSwitchCase="'date'" [type]="field.fieldType"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  class="clr-input" />
  
          <!-- Textarea -->    <label  *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
          <textarea *ngSwitchCase="'textarea'"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  col="10" row="2"></textarea>
  
          <!-- Checkbox -->    <label  *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
          <input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  class="clr-checkbox" />
        </ng-container>
  </div>
  </div>
</div>

  <!-- form code end -->  <div class="modal-footer">
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</button>
      </div>
    </form>
  </div>
</clr-modal>
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <div class="modal-body" *ngIf="rowSelected.id">
    <h1 class="delete">Are You Sure Want to delete?</h1>
    <h2 class="heading">{{rowSelected.id}}</h2>
    <div class="modal-footer">
      <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>
    </div>
  </div>
</clr-modal>
<!-- ADD FORM ..... -->
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <h3 class="modal-title">Add Forma 














































  <!-- aeroplane icon -->
    &nbsp; &nbsp; &nbsp; &nbsp;
    <a *ngIf="userrole.includes('ROLE_ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
      class="tooltip tooltip-sm tooltip-bottom-left">
      <a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Forma_formCode' }">
        <clr-icon shape="airplane" size="32"></clr-icon>
      </a>
      <span class="tooltip-content">Form Extension</span>
    </a> </h3>
  <div class="modal-body">
     <form [formGroup]="entryForm" >
   <div class="clr-row" style="height: fit-content;">

<div class="clr-col-sm-12">
 <label>  Names</label>
 <input class="clr-input"  type="text"  formControlName="names" />       
 </div>

<div class="clr-col-sm-12">
 <label>  Numbertest</label>
 <input class="clr-input"  type="number"  formControlName="numbertest" />      
 <div *ngIf="submitted && entryForm.controls.numbertest.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.numbertest.errors.required" class="error_mess">*This field is Required</div>
</div>  
 </div>

<div class="clr-col-sm-12">        
<label>  Phonetest</label>        
<input class="clr-input" type="text" formControlName="phonetest" pattern="((\+)?([1-9]{2}))?[1-9]{1}[0-9]{9}$" />
	        <div *ngIf="submitted && entryForm.controls['phonetest'].errors" class="error_mess">
	          <div *ngIf="submitted && entryForm.controls['phonetest'].hasError('pattern')" class="error_mess">* Please Follow your pattern,+91 Enter 10 digit Mobile Number.
	          </div>      </div>      </div>

<div class="clr-col-sm-12">        
 <label>Paragraphtest</label>      
   <input class="form-control" type="Text" formControlName="paragraphtest" style="border: none; outline: none; height:33px !important;" />
	      </div>

<div class="clr-col-sm-12">       
	<label>Passwordss</label><br>
	<div><input class="clr-input" style="width: 93% !important;" [type]="newaddpHidepasswordss ? 'password': 'text'" formControlName="passwordss" autocomplete >&nbsp;
		<clr-icon [attr.shape]="newaddIconpasswordss" (click)="newaddChangerpasswordss()"></clr-icon></div>
	</div>

          <div class="clr-col-sm-12">
<label>Confirm Passwordss</label><br>
           <input type="password" class="clr-input" formControlName="confirmpasswordss" autocomplete >
           <div *ngIf="entryForm.controls.confirmpasswordss.errors" class="error_mess">
            <div *ngIf="entryForm.controls.confirmpasswordss.errors.confirmedpasswordssValidator" class="error_mess">* Password and Confirm Password must be match.</div>
        </div>
          </div>

<div class="clr-col-sm-12">             
 <label>  Textareatest</label>             
 <textarea cols="10" rows="2" formControlName="textareatest" placeholder="Textarea">  </textarea>
	            </div>

<div class="clr-col-sm-12">
 <label>  Datetest</label>
 <input class="clr-input"  type="date"  formControlName="datetest" />       
 </div>

<div class="clr-col-sm-12">
 <label>  Datetimetest</label>
 <input class="clr-input"  type="datetime-local"  formControlName="datetimetest" />       
 </div>

<div class="clr-col-sm-12">
						<label> Emailtest</label>
<input class="clr-input" type="email" formControlName="emailtest" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
<div *ngIf="entryForm.controls['emailtest'].errors" class="error_mess">
						          <div *ngIf="entryForm.controls['emailtest'].hasError('pattern')" class="error_mess">* Email must be a valid email address
						            </div>  </div>
</div>

<div class="clr-col-sm-12">            
 <label> Toggletest</label>            
  <input type="checkbox" formControlName="toggletest" clrToggle/>            </div>

<div class="clr-col-sm-12">        
	 <label> Urltest </label>
		<input type="url" formControlName="urltest" class="clr-input" pattern="https?://.+">
		<div *ngIf="entryForm.controls['urltest'].errors" class="error_mess">          
			 <div *ngIf="entryForm.controls['urltest'].hasError('pattern')" class="error_mess">    * Please enter a valid URL.</div>
						      </div>     </div>

<div class="clr-col-sm-12">           
<label> Decimaltest</label>          
 <input type="number" step ="0.01"  formControlName="decimaltest" /> 
 <div *ngIf="submitted && entryForm.controls.decimaltest.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.decimaltest.errors.required" class="error_mess">*This field is Required</div>
</div> 
        </div>


<div class="clr-col-sm-12">
 <label>  Percentagess</label>
 <input class="clr-input"  type="number"  formControlName="percentagess" />      
 <div *ngIf="submitted && entryForm.controls.percentagess.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.percentagess.errors.required" class="error_mess">*This field is Required</div>
</div>  
 </div>

<div class="clr-col-sm-12">            
<label> recaptchass</label><div><b>{{ recaptchassCode }}</b> &nbsp; <button  class="btn btn-icon btn-primary btn-sm" (click)="generaterecaptchass()"><clr-icon shape="refresh"></clr-icon></button></div>
	            <input type="text" formControlName="recaptchass" class="clr-input">       
<div *ngIf="submitted && entryForm.controls.recaptchass?.errors.required" class="error_mess">*This field is Required</div>          
<div *ngIf="submitted && entryForm.get('recaptchass')?.errors && entryForm.get('recaptchass')?.dirty" class="error_mess">
	              <div *ngIf="submitted && entryForm.controls['recaptchass']?.hasError('recaptchassMismatch')" class="error_mess"> recaptchass  not valid.</div>
	            </div>        
</div>



<div class="clr-col-sm-12">             
	 <label>selectstat</label>
							 <select formControlName="selectstat">
							    <option [value]="null">Select  selectstat </option> 
								
 
								<option> a </option>
								 

 
								<option> b </option>
								 

 
								<option> c </option>
								 

						</select></div>

<div class="clr-col-sm-12">
            <label>Radiotest</label>
            <clr-radio-container clrInline style="margin-top: 0;"> 

 
   <clr-radio-wrapper>
                <input type="radio" clrRadio formControlName="radiotest" (change)="updateradiotest('female')" [checked]="entryForm.get('radiotest').value === 'female'" />
                <label> female </label>
              </clr-radio-wrapper>     
 

 
   <clr-radio-wrapper>
                <input type="radio" clrRadio formControlName="radiotest" (change)="updateradiotest('male')" [checked]="entryForm.get('radiotest').value === 'male'" />
                <label> male </label>
              </clr-radio-wrapper>     
 

    
 </clr-radio-container>
          </div> 




<!-- multiselect checkbox field start -->
     <div class="clr-col-sm-12">       
		<label> checkboxtest</label>
	    <div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
	      <div class="clr-control-container">

                       
 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="test1" formControlName="test1"  class="clr-checkbox" />       
				    <label for="test1" class="clr-control-label">test1</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="test2" formControlName="test2"  class="clr-checkbox" />       
				    <label for="test2" class="clr-control-label">test2</label>  </div>
	                            

 </div>       </div>     </div>
	              <!-- multiselect checkbox field end -->









<!-- currency field start -->
      <div class="clr-col-sm-12">        
 <label> Currencyss</label>         
<input type="number"  class="clr-input"   formControlName="currencyss"  [value]="entryForm.value.currencyss | number:'1.2-2' | removeCommas">   
    </div> 
	      <!-- currency field end -->

 
 </div> 




































<h6> List of fileuploadtest</h6>

 <div  class="clr-row" style="margin-top: 10px;">
   <table class="table">
       <thead>
        <tr>
        <th>No</th>
         <th> File</th>
         <th>File Name</th>
          <th>Preview</th>
          <th>Cancel</th>
           </tr>
         </thead>
         <tbody >
           <tr *ngFor="let attach of FileDatafileuploadtest; let i=index">
             <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
             <td><input type="file" (change)="onFileChangedfileuploadtest($event, i)"  accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
              </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>
               <a  (click)="deleteRowfileuploadtest(i)">
                 <clr-icon shape="trash" class="is-error"></clr-icon>
               </a>
             </td>
           </tr>


       </tbody>
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesfileuploadtest()">
           <clr-icon shape="plus"></clr-icon>
         </button>

       </table> </div>

<h6> List of imageuploadtest</h6>

 <div  class="clr-row" style="margin-top: 10px;">
   <table class="table">
       <thead>
        <tr>
        <th>No</th>
         <th> File</th>
         <th>File Name</th>
          <th>Preview</th>
          <th>Cancel</th>
           </tr>
         </thead>
         <tbody >
           <tr *ngFor="let attach of FileDataimageuploadtest; let i=index">
             <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
             <td><input type="file" (change)="onFileChangedimageuploadtest($event, i)"  accept="image/*" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
              </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>
               <a  (click)="deleteRowimageuploadtest(i)">
                 <clr-icon shape="trash" class="is-error"></clr-icon>
               </a>
             </td>
           </tr>


       </tbody>
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesimageuploadtest()">
           <clr-icon shape="plus"></clr-icon>
         </button>

       </table> </div>

<h6> List of audiotest</h6>

 <div  class="clr-row" style="margin-top: 10px;">
   <table class="table">
       <thead>
        <tr>
        <th>No</th>
         <th> File</th>
         <th>File Name</th>
          <th>Preview</th>
          <th>Cancel</th>
           </tr>
         </thead>
         <tbody >
           <tr *ngFor="let attach of FileDataaudiotest; let i=index">
             <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
             <td><input type="file" (change)="onFileChangedaudiotest($event, i)"  accept="audio/*" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
              </td>
         <td>{{attach.uploadedfile_name}}</td>
             <td >  <audio *ngIf="attach.filePreview" [src]="attach.filePreview" controls></audio></td>
             <td>
               <a  (click)="deleteRowaudiotest(i)">
                 <clr-icon shape="trash" class="is-error"></clr-icon>
               </a>
             </td>
           </tr>


       </tbody>
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesaudiotest()">
           <clr-icon shape="plus"></clr-icon>
         </button>

       </table> </div>

<h6> List of videotest</h6>

 <div  class="clr-row" style="margin-top: 10px;">
   <table class="table">
       <thead>
        <tr>
        <th>No</th>
         <th> File</th>
         <th>File Name</th>
          <th>Preview</th>
          <th>Cancel</th>
           </tr>
         </thead>
         <tbody >
           <tr *ngFor="let attach of FileDatavideotest; let i=index">
             <td style="width: 70px;"><input type="text" class="clr-input"  value={{i+1}} [readonly]="true">  </td>
             <td><input type="file" (change)="onFileChangedvideotest($event, i)"  accept="video/*" /><!--accept=".mp4,.mpeg4"-->
              </td>
         <td>{{attach.uploadedfile_name}}</td>
             <td >            <video *ngIf="attach.filePreview" [src]="attach.filePreview" width="100px" height="100px" controls></video></td>
             <td>
               <a  (click)="deleteRowvideotest(i)">
                 <clr-icon shape="trash" class="is-error"></clr-icon>
               </a>
             </td>
           </tr>


       </tbody>
         <button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvideotest()">
           <clr-icon shape="plus"></clr-icon>
         </button>

       </table> </div>





      <!-- form code start -->
      <div *ngIf="checkFormCode">
        <h4 style="font-weight: 300;display: inline;">Extension</h4>
        <br>
        <hr>
        <div class="clr-row">
          <div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
            <ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
              <!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
              <input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-input" />
              <!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
              <input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-input" />
              <!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
              <textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
              <!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
              <input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-checkbox" />
            </ng-container>
          </div>
        </div>
      </div>
      <!-- form code end --> <div class="modal-footer">
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
        <button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
        </div>
</form>
  </div>
</clr-modal>














































  <!-- htmlpopup -->
