<ol class="breadcrumb breadcrumb-arrow font-trirong">
  <li><a href="javascript://" [routerLink]="['/']">Home</a></li>
  <li><a href="javascript://">stepper</a></li>
</ol>

<div class="button-bar">

  <span class="spacer"></span>
  <button class="btn btn-sm btn-primary" (click)="reset()">Reset</button>

  <button class="btn btn-sm btn-primary" (click)="changeToHorizonTal()"
    *ngIf="layout.direction === 'vertical'">HorizonTal Layout</button>
  <button class="btn btn-sm btn-primary" (click)="changeToVertical()" *ngIf="layout.direction === 'horizontal'">Vertical
    Layout</button>

</div>

<div class="clr-row">
  <div [class]="layout.block1">
    <div class="card">
      <div class="card-header">
        <h3 style="text-align: center;"> Workflow</h3>
      </div>

      <div class=" card-block container">

        <clr-timeline [clrLayout]="layout.direction">
   <clr-timeline-step [clrState]="timelineStyle.step0.state">
            <clr-timeline-step-header>step 0</clr-timeline-step-header>
            <clr-timeline-step-title> <span *ngIf="!appToUpdate">Application</span><span *ngIf="appToUpdate"> Update
                Datagrid</span> </clr-timeline-step-title>
            <clr-timeline-step-description> <span>Create/adv<br> Information Of
                Customer</span></clr-timeline-step-description>
          </clr-timeline-step>  

 <clr-timeline-step [clrState]="timelineStyle.step1.state">
            <clr-timeline-step-header>Step 2</clr-timeline-step-header>
            <clr-timeline-step-title>Review And <br>Confirmation</clr-timeline-step-title>
            <clr-timeline-step-description>
              Finish .
            </clr-timeline-step-description>
          </clr-timeline-step></clr-timeline>
      </div>
    </div>
  </div>
  <div [class]="layout.block2">
    <!--STEP 0-->
    <div class="card" *ngIf="timelineStyle.step0.open">
      <div class="card-header">
        <h3 style="text-align: center;" *ngIf="!appToUpdate">adv</h3>
        <h3 style="text-align: center;" *ngIf="appToUpdate"> Update {{FormaentryForm.name}}</h3>
        <div class="container">

          <br />

        
          <form [formGroup]="FormaentryForm">

            <div class="container">

              <div class="clr-row"><div class="clr-col-sm-12">
 <label>  Name</label>
 <input class="clr-input"  type="text"  formControlName="name" />       
 </div>

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

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

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




<!-- multiselect checkbox field start -->
     <div class="clr-col-sm-12">       
		<label> checkbox Field</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="a" formControlName="a"  class="clr-checkbox" />       
				    <label for="a" class="clr-control-label">a</label>  </div>
	                            

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

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

<!-- qrCode field start -->   
<div class="clr-col-sm-12">
	    <label>QRCode Field</label>
	    <input class="clr-input" type="text" formControlName="qrcode_field" />
	    <qrcode [qrdata]="entryForm.value.qrcode_field  ? entryForm.value.qrcode_field : '' " [width]="135" [errorCorrectionLevel]="'M'"  ></qrcode>   </div>
	<!-- qrCode field end -->

<!-- bar code field start -->    
<div class="clr-col-sm-12">
	    <label> BarCode Field</label>
	    <input  type="text" class="clr-input" formControlName="barcode_field" (input)="generateBarcodebarcode_field($event.target.value)" />
	    <svg id="barcodebarcode_field"></svg>   </div>
	<!-- bar code field end -->


              </div>













              <div class="clr-row">

              </div>
              <!-- end row -->
              <br>
<div class="button">
  <button type="submit" class="btn btn-primary" (click)="onadvSave()">Submit</button>
  <button type="button" class="btn btn-primary"
    (click)="this.timelineStyle.step0 = { state: 'success', open: false };
             this.timelineStyle.step1 = { state: 'current', open: true }; this.current()">Complete</button>
  <button type="button" class="btn btn-primary"
    (click)="this.timelineStyle.step0 = { state: 'current', open: false };
             this.timelineStyle.step1 = { state: 'not-started', open: true }">Next</button>
</div>  </div>
          </form>

        </div>

      </div>
    </div> 
 <!--STEP 1-->  <div class="card" *ngIf="timelineStyle.step1.open">
      <div class="card-header">
        <h3 style="text-align: center;" *ngIf="!appToUpdate"> Review And Confirmation</h3>
        <div class="container">

          <!--  Info -->
   <div class="clr-row mb-3">
            <div class="clr-col-12">
              <h5>adv Summary:</h5><p><strong>Name : </strong> {{ FormaentryForm.get('name')?.value }}</p>

<p><strong>Radio Field : </strong> {{ FormaentryForm.get('radio_field')?.value }}</p>

<p><strong>checkbox Field : </strong> {{ FormaentryForm.get('checkbox_field')?.value }}</p>

<p><strong>Currency : </strong> {{ FormaentryForm.get('currency')?.value }}</p>

<p><strong>QRCode Field : </strong> {{ FormaentryForm.get('qrcode_field')?.value }}</p>

<p><strong>BarCode Field : </strong> {{ FormaentryForm.get('barcode_field')?.value }}</p>


            </div>
          </div><div class="button">
  <button class="btn btn-primary-outline"
    (click)="this.timelineStyle.step0 = { state: 'current', open: true };
             this.timelineStyle.step1 = { state: 'not-started', open: false }">Back</button>
  <button class="btn btn-primary"
    (click)="timelineStyle.step1 = { state: 'success', open: false }; current();
             alert('Process Finished Successfully!')">Finish</button>
</div></div>
      </div>
    </div>