<div class="app-header bg-header-1">
    <div class="layout-fixed full-h text-center">
        <div class="full-h v-bottom-i pdB15">
            <div class="app-content-header bg-header-1">
                <div class="text-name-header-1 nowrap">Client Review</div>
                <div class="text-title-header-1 nowrap mgT10">Edit {{setCustomerName(editCustomereviewsData.selectCustomer.company_name,editCustomereviewsData.selectCustomer.first_name,editCustomereviewsData.selectCustomer.last_name)}} review</div>
            </div>
        </div>
    </div>
    <button class="popup-back-button bg-transparent pd0-i biger-3-time" type="button" ng-click="closeTarget('#customerPopupReviewEdit')"></button>
</div>
<div class="app-content">
    <div class="app-content-inner content-pd">
        <ion-scroll class="scroll-area" direction="y" has-bouncing="false" overflow-scroll="false" delegate-handle="scrollCustomerReviewEdit" on-scroll="scrollContent('scrollCustomerReviewEdit')">
            <div class="box-setting-4 form-field-container">
                <div class="content content-in">
                    <div class="itm">
                        <label class="label-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.selectCustomer.id  }">Customer</label>
                        <div class="layout-fixed">
                            <div>
                                <div class="input-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.selectCustomer.id  }" ng-click="focusHandle($event)">
                                    <input autocomplete="off"
                                           class="ion-autocomplete-customer-review-customer-edit"
                                           items-method-value-key="items"
                                           ion-autocomplete=""
                                           item-value-key="id"
                                           item-view-value-key="fullName"
                                           items-method="filterCustomerReviewCustomer(query,'edit')"
                                           items-clicked-method="onSelectCustomerReviewCustomer(callback,'edit')"
                                           items-removed-method="onRemoveCustomerReviewCustomer(callback,'edit')"
                                           max-selected-items="1"
                                           ng-model="autocompleteList.customerReviewCustomerEdit"
                                           external-model="initialdisplayCustomerReviewEdit"
                                           model-to-item-method="setValueForCustomerReviewCustomer(modelValue)"
                                           placeholder="" style="width:100% ;display: none" type="text">
                                    <input readonly type="text" name="" ng-model="Input_value.displayCustomerReviewCustomer" placeholder="Find customer" ng-click="openAutocomplete('ion-autocomplete-customer-review-customer-edit')">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="itm">
                        <label class="label-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.review_id  }">Review</label>
                        <div class="layout-fixed">
                            <div>
                                <div class="input-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.review_id  }" ng-click="focusHandle($event)">
                                    <input type="text" class="h32px" name="" value="{{Input_value.review}}" placeholder="">
                                    <div class="sign-r clear">
                                        <button class="bg-transparent full-h right pdR10" type="button">
                                            <svg class="h17px clr-symbol-clickable" viewBox="0 0 63.215 63.215"> <g> <g> <path fill="#1075BB" d="M59.807,15.717L31.491,43.791L3.419,15.475c-0.777-0.785-2.044-0.789-2.828-0.012c-0.784,0.777-0.789,2.044-0.012,2.827    l29.194,29.448c0.365,0.368,0.835,0.563,1.312,0.589c0.139,0.008,0.278-0.001,0.415-0.021c0.054,0.008,0.106,0.021,0.16,0.022    c0.544,0.029,1.099-0.162,1.515-0.576l29.447-29.196c0.785-0.777,0.79-2.043,0.012-2.828    C61.856,14.943,60.59,14.939,59.807,15.717z" /> </g> </g> </svg>
                                        </button>
                                    </div>
                                    <select class="field-overlay" ng-model="editCustomereviewsData.review_id" ng-change="setValueReviewInput(editCustomereviewsData.review_id)">
                                        <option value="">Select</option>
                                        <option ng-repeat="option in reviews" value="{{option.id}}">{{option.name}}</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="itm">
                        <label class="label-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.comments  }">Comment</label>
                        <div class="layout-fixed">
                            <div>
                                <div class="input-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.comments  }" ng-click="focusHandle($event)">
                                    <textarea class="h65px" placeholder="" ng-model="editCustomereviewsData.comments"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="itm">
                        <label class="label-form-field-1">Rating</label>
                        <div class="layout-fixed">
                            <div>
                                <div rating="{{editCustomereviewsData.rating}}" ng-model="editCustomereviewsData.rating"></div>
                            </div>
                        </div>
                    </div>
                    <div class="itm">
                        <label class="label-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.dateShow  }">Date</label>
                        <div class="layout-fixed">
                            <div>
                                <div class="input-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.dateShow  }" ng-click="focusHandle($event)">
                                    <input class="h32px" name="customerReviewDateEdit" placeholder="" type="text" value="{{editCustomereviewsData.dateShow| date: 'MM/dd/yyyy'}}" readonly date>
                                    <div class="field-overlay datetime h39px" readonly="true" ion-datetime-picker date id="customerReviewDateEdit" name="customerReviewDateEdit" ng-model="editCustomereviewsData.dateShow">
                                        {{editCustomereviewsData.dateShow| date: 'MM/dd/yyyy'}}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="itm">
                        <label class="label-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.employee.id  }">Employee</label>
                        <div class="layout-fixed">
                            <div>
                                <div class="input-form-field-1" ng-class="{ 'has-errors' : !editCustomereviewsData.employee.id  }" ng-click="focusHandle($event)">
                                    <input autocomplete="off"
                                           class="ion-autocomplete-customer-review-employee-edit"
                                           items-method-value-key="items"
                                           ion-autocomplete=""
                                           item-value-key="id"
                                           item-view-value-key="name"
                                           items-method="filterCustomerReviewEmployee(query,'edit')"
                                           items-clicked-method="onSelectCustomerReviewEmployee(callback,'edit')"
                                           items-removed-method="onRemoveCustomerReviewEmployee(callback,'edit')"
                                           max-selected-items="1"
                                           ng-model="autocompleteList.customerReviewEmployeeEdit"
                                           external-model="initialDisplayEmployeeReviewEdit"
                                           model-to-item-method="setValueForCustomerReviewEmployee(modelValue)"
                                           placeholder="" readonly style="width:100% " type="text">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ion-scroll>
    </div>
</div>
<div class="app-control">
    <div class="layout-fixed full-h pdT2">
        <div class="w42px full-h relative">
            <button class="bg-transparent pd0-i full text-left pdL10-i" type="button" onclick="openQuickOption(this)">
                <svg class="h20px" viewBox="0 0 460.713 460.713"> <g> <rect y="115.356" width="302" height="30" fill="#FFFFFF" /> <polygon points="335.786,202.231 398.25,264.694 460.713,202.232  " fill="#FFFFFF" /> <rect y="315.356" width="302" height="30" fill="#FFFFFF" /> <rect y="215.356" width="302" height="30" fill="#FFFFFF" /> </g> </svg>
            </button>
            <div class="quick-popup box-popup-1 display-bottom-left mgB55" onclick="closeQuickOption(this)">
                <div class="popup-content w140px">
                    <ul class="list-item-03">
                        <li ng-click="editCustomereviews(editCustomereviewsData.selectCustomer.id)">
                            <div class="layout-fixed">
                                <div class="icon-area">
                                    <svg class="h15px" viewBox="0 0 423.755 423.755"> <path d="M43.84,281.457c-18.585-44.869-18.586-94.29,0-139.159c10.649-25.709,26.678-48.152,46.86-66.135l60.86,60.86V15.099   H29.635l39.88,39.88c-64.293,58.426-88.5,153.2-53.391,237.959c14.167,34.202,37.07,64.159,66.234,86.634   c28.275,21.789,61.873,36.201,97.162,41.677l4.601-29.646C120.778,381.774,68.337,340.597,43.84,281.457z" fill="#FFFFFF" /> <path d="M407.516,292.938c21.652-52.272,21.652-109.848,0-162.12c-14.167-34.202-37.071-64.159-66.234-86.633   C313.007,22.395,279.409,7.983,244.12,2.507l-4.601,29.646c63.342,9.829,115.783,51.005,140.28,110.146   c18.586,44.869,18.586,94.29,0,139.159c-10.649,25.709-26.678,48.152-46.859,66.135l-60.86-60.86v121.924h121.924l-39.801-39.801   C377.118,348.099,395.334,322.348,407.516,292.938z" fill="#FFFFFF" /> </svg>
                                </div>
                                <div class="name-area text-link-1">
                                    Reset all
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="popup-overlay"></div>
            </div>
        </div>
        <div class="full-h">
            <button class="button-form-field-1 darkgray position-left full" type="button" ng-click="closeTarget('#customerPopupReviewEdit');">
                Cancel
            </button>
        </div>
        <div class="full-h">
            <button class="button-form-field-1 position-right full" ng-click="updateCustomereviews()">
                <svg class="icon h12px" viewBox="0 0 267.745 267.745"> <path style="fill:#030104;" d="M218.266,0v67.921c0,10.77-8.82,19.59-19.6,19.59H68.057c-10.77,0-19.579-8.82-19.579-19.59V0.02   h-16.71l0,0c-13.154,0-23.893,11.417-23.893,25.378v219.263c0,12.699,9.769,23.084,21.721,23.084H238.15   c11.951,0,21.721-10.385,21.721-23.075V50.969L218.266,0z M221.54,231.295c0,9.406-7.688,17.084-17.084,17.084H66.219   c-9.396,0-17.074-7.678-17.074-17.084v-71.194c0-9.406,7.678-17.085,17.074-17.085h138.237c9.396,0,17.084,7.679,17.084,17.085   V231.295z" /> <path style="fill:#030104;" d="M202.989,171.516H67.665c-0.799,0-1.447,0.648-1.447,1.447v3.521c0,0.799,0.648,1.447,1.447,1.447   h135.324c0.799,0,1.446-0.648,1.446-1.447v-3.521C204.435,172.164,203.788,171.516,202.989,171.516z" /> <path style="fill:#030104;" d="M202.989,184.348H67.665c-0.799,0-1.447,0.646-1.447,1.446v3.521c0,0.8,0.648,1.446,1.447,1.446   h135.324c0.799,0,1.446-0.646,1.446-1.446v-3.521C204.435,184.994,203.788,184.348,202.989,184.348z" /> <path style="fill:#030104;" d="M202.989,197.178H67.665c-0.799,0-1.447,0.648-1.447,1.447v3.521c0,0.799,0.648,1.447,1.447,1.447   h135.324c0.799,0,1.446-0.648,1.446-1.447v-3.521C204.435,197.826,203.788,197.178,202.989,197.178z" /> <path style="fill:#030104;" d="M179.708,70.294h20.322c1.979,0,3.598-1.616,3.598-3.594V0.031h-27.492v66.692   C176.136,68.689,177.746,70.294,179.708,70.294z" /> </svg>
                Save
            </button>
        </div>
    </div>
</div>
