{% set ratingConstant = 'Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingRateConstant::' %}
{% set satisfying = { id: constant(ratingConstant ~ 'SATISFYING'),
label: constant(ratingConstant ~ 'SATISFYING_LABEL'),
image: constant(ratingConstant ~ 'SATISFYING_IMAGE'),
analytics_label: "satisfying"} %}
{% set unsatisfying = { id: constant(ratingConstant ~ 'UNSATISFYING'),
label: constant(ratingConstant ~ 'UNSATISFYING_LABEL'),
image: constant(ratingConstant ~ 'UNSATISFYING_IMAGE'),
analytics_label: "unsatisfying"} %}
{% set noContact = { id: constant(ratingConstant ~ 'NO_CONTACT'),
label: constant(ratingConstant ~ 'NO_CONTACT_LABEL'),
image: constant(ratingConstant ~ 'NO_CONTACT_IMAGE'),
analytics_label: "nocontact"} %}
<div class="modal bd-example-modal-lg small easy-access modal-box quick-lead-modal rating-modal" id="ratingFormModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document" ng-content-loaded callback="resetRating()">
<div class="modal-content modal-lg modal-box__content">
<div class="modal-box__header modal-lg border-gray_bottom">
<span class="modal-box__title d-md-block">
{{ 'layout.feedback_form.rating_title'|trans }}
</span>
<button type="button"
class="modal-close modal-box__close"
data-dismiss="modal"
ng-click="onCloseRatingModal()">
<img src="/images/close_dark_gray.svg"/>
</button>
</div>
<div class="modal-box__body px-xl rating-form">
<p class="rating-form__text">{{ 'layout.feedback_form.header_title'|trans }}</p>
<div class="rating-form py-xxl pt-0">
<form name="feedback" id="ratingForm" method="post">
<div class="choice-list">
<a class="choice-list__item" ng-click="submitRatingSatisfied($event, {{ satisfying.id }}, {{ satisfying.analytics_label|json_encode() }})">
<div class="choice-list__img-container">
<img
src="/images/ratings/ic_happy.svg"
class="choice-list-img icon"
/>
</div>
<label class="choice-list__label">
{{ satisfying.label|trans }}
</label>
</a>
<a class="choice-list__item" ng-click="submitRatingUnSatisfied($event)">
<div class="choice-list__img-container">
<img
src="/images/ratings/ic_sad.svg"
class="choice-list-img icon"
/>
</div>
<label class="choice-list__label">
{{ unsatisfying.label|trans }}
</label>
</a>
<a class="choice-list__item" ng-click="submitRatingNoContact($event, {{ noContact.analytics_label|json_encode() }})">
<div class="choice-list__img-container">
<img
src="/images/ratings/ic_nutral.svg"
class="choice-list-img icon"
/>
</div>
<label class="choice-list__label">
{{ noContact.label|trans }}
</label>
</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>