
<admin-page-header [title]="'Custom CSS/JS'" ></admin-page-header>

<div class="col-xl-12 col-lg-12 col-md-12">
    <div class="card ">
        <div class="card-header border-0">
            <h4 class="card-title">{{'Custom CSS and JS' | translate}}</h4>
        </div>
        <form #FormData="ngForm" (ngSubmit)="ChangeTheValues(FormData.value, 'custommcssjs')">

            <div class="card-body" >
                <input type="hidden" class="form-control" name="id" Value="">
                <div class="col-sm-12 col-md-12">
                    <div class="form-group">
                        <label class="form-label">{{'Custom CSS' | translate}}</label>
                        <textarea name="customcss" ngModel="{{response?.CUSTOMCSS}}" class="form-control " cols="30" rows="10" [placeholder]="'Custom Css' | translate"></textarea>
                     </div>
                </div>
                <div class="col-sm-12 col-md-12">
                    <div class="form-group">
                        <label class="form-label">{{'Custom JS' | translate}}</label>
                        <textarea name="customjs" ngModel="{{response?.CUSTOMJS}}" class="form-control" cols="30" rows="10" [placeholder]="'Custom Js' | translate"></textarea>
                    </div>
                </div>
            </div>
            <div class="col-md-12 card-footer ">
                <div class="form-group float-end">
                    <button [disabled]="sendingResponse['custommcssjs']" type="submit" class="btn btn-secondary">{{'Save Changes' | translate}}
                        @if(sendingResponse['custommcssjs']){
                            <i class="fa fa-spinner fa-spin mx-1"></i>
                        }
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>