templates/ProfilePreview/components/mobile-contacts.partial.twig line 1

Open in your IDE?
  1. {% import 'ProfilePreview/utils/macros.partial.twig' as macros %}
  2. <div class="profile-contacts-mobile profile-block{{ template == 'saloon' ? ' saloon' : ''}}" id="mobile-contacts">
  3.     <div class="profile-contacts profile-contacts--middle">
  4.         {%- include 'ProfilePreview/components/profile-phone.partial.twig' with {} -%}
  5.         {%- if template == 'profile' -%}
  6.             <div class="profile-contacts-text clr-green-text">Сообщите мне, что звоните с сайта "МосДосуг" и я всё пойму</div>
  7.             <div class="profile-contacts-answer-type">
  8.                 <span>Отвечаю на</span>
  9.                 {% if profile.phoneCallRestrictions.answeringTo|length > 0 %}
  10.                     {% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
  11.                         {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}{% if not loop.last %},{% endif %}
  12.                     {% endfor %}
  13.                 {% else %}
  14.                     Не указано
  15.                 {% endif %}
  16.             </div>
  17.             <div class="profile-contacts-answer-time">{{ macros._time_to_work(profile) }}</div>
  18.         {%- else -%}
  19.             <div class="profile-contacts-answer-time">
  20.                 {{ macros._time_to_work_saloon(profile) }}
  21.             </div>
  22.         {%- endif -%}
  23.     </div>
  24.     {%- include 'ProfilePreview/components/profile-approved.partial.twig' with {type: 'middle'} -%}
  25. </div>