src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/ratingProblemsModal.html.twig line 1

Open in your IDE?
  1. {% set problemsConstant = 'Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingRateConstant::' %}
  2. {% set unsatisfyingID = constant(problemsConstant ~ 'UNSATISFYING') %}
  3. {% set unsatisfiedLabel = "unsatisfying" %}
  4. <div class="modal bd-example-modal-lg small modal-box quick-modal-box" id="ratingProblemsModal" tabindex="-1" role="dialog">
  5.     <div class="modal-dialog" role="document" ng-init="initResetRating()">
  6.         <div class="modal-content modal-lg  modal-box__content modal-box__content_h-sm-100">
  7.             <div class="modal-box__header modal-lg border-gray_bottom">
  8.                 <span class="modal-box__title">
  9.                         {{ 'layout.feedback_form.contact_feedback'|trans }}
  10.                 </span>
  11.                  <button type="button"
  12.                     class="modal-close modal-box__close"
  13.                     data-dismiss="modal"
  14.                     ng-click="onCloseRatingProblemsModal()">
  15.                     <img src="/images/close_dark_gray.svg"/>
  16.                 </button>
  17.             </div>
  18.             <form  name="feedback" id="feedbackProblemsForm"
  19.                     method="post"
  20.                     ng-init="unsatisfyingID = {{ unsatisfyingID }}"
  21.                     ng-submit="onSubmitRatingProblems({{ unsatisfiedLabel|json_encode() }})">
  22.                 <div class="problems-form px-xl">
  23.                     <p class="rating-form__text pt-xl">{{ 'layout.feedback_form.problem_title'|trans }}</p>
  24.                     <div class="problems-list">
  25.                         {% set arrayProblems = {} %}
  26.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'NO_ANSWER'),
  27.                         label: constant(problemsConstant ~ 'NO_ANSWER_LABEL')}]) %}
  28.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'NOT_PROFESSIONAL'),
  29.                         label: constant(problemsConstant ~ 'NOT_PROFESSIONAL_LABEL')}]) %}
  30.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'WRONG_NUMBER'),
  31.                         label: constant(problemsConstant ~ 'WRONG_NUMBER_LABEL')}]) %}
  32.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'NOT_AVAILABLE'),
  33.                         label: constant(problemsConstant ~ 'NOT_AVAILABLE_LABEL')}]) %}
  34.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'WRONG_PRICE'),
  35.                         label: constant(problemsConstant ~ 'WRONG_PRICE_LABEL')}]) %}
  36.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'WRONG_PHOTOS'),
  37.                         label: constant(problemsConstant ~ 'WRONG_PHOTOS_LABEL')}]) %}
  38.                         {% set arrayProblems = arrayProblems|merge([{ id: constant(problemsConstant ~ 'WRONG_DETAILS'),
  39.                         label: constant(problemsConstant ~ 'WRONG_DETAILS_LABEL')}]) %}
  40.                         <div class="problems-list__item check-list">
  41.                             {% for problem in arrayProblems %}
  42.                                 <div class="check-list__item">
  43.                                     <input type="checkbox" ng-model="checkboxData[{{ problem.id }}]" ng-true-value="{{ problem.id }}" ng-false-value="0"
  44.                                         id="problem_{{ problem.id }}" name="FilterProblems" class="check-list__checkbox check-child">
  45.                                     <label for="problem_{{ problem.id }}" class="mb-0">{{ problem.label|trans }}</label>
  46.                                 </div>
  47.                             {% endfor %}
  48.                         </div>
  49.                         <div class="problems-list__item comment-box">
  50.                             <label class="comment-box__label">{{ 'layout.feedback_form.other_message'|trans }}</label>
  51.                             <textarea class="comment-box__textarea" id="otherComments" name="FilterProblems" ng-model="otherComments" ng-trim="true" placeholder="{{ 'layout.feedback_form.other_message_placeholder'|trans }}"></textarea>
  52.                         </div>
  53.                     </div>
  54.                 </div>
  55.                     <div class="modal-box__footer text-center">
  56.                     <div class="form-group mb-0 mx-auto w-100 " >
  57.                         <button type="submit"
  58.                         class="btn btn-block rounded-pill btn-primary cta-btn" > {{ 'layout.feedback_form.problem_submit'|trans }}</button>
  59.                     </div>
  60.                 </div>
  61.             </form>
  62.         </div>
  63.     </div>
  64. </div>