templates/public/_room_features.html.twig line 1

Open in your IDE?
  1. <h5><strong>{% trans %} features {% endtrans %}</strong></h5>
  2. <hr>
  3. <ul class="feature_list">
  4.     {# rooms #}
  5.     <li>
  6.         <img src="{{ asset('public/img/icon/room.png') }}" alt="{% trans %} rooms {% endtrans %}">
  7.         {{ room.totalRooms }} {% trans %} rooms {% endtrans %}
  8.     </li>
  9.     {# bathrooms #}
  10.     <li>
  11.         <img src="{{ asset('public/img/icon/bathroom.png') }}" alt="{% trans %} label.totalbathrooms {% endtrans %}">
  12.         {{ room.totalBathrooms }} {% trans %} label.totalbathrooms {% endtrans %}
  13.     </li>
  14.     {# bed size #}
  15.     <li>
  16.         {% if room.bedSize == 1 %}
  17.             <img src="{{ asset('public/img/icon/bed.png') }}" alt="{% trans %} singlebed {% endtrans %}">
  18.            {% trans %} singlebed {% endtrans %}
  19.         {% else %}
  20.         <img src="{{ asset('public/img/icon/double-king-size-bed.png') }}" alt="{% trans %} doublebed {% endtrans %}">
  21.             {% trans %} doublebed {% endtrans %}
  22.         {% endif %}
  23.     </li>
  24.     {# lift #}
  25.     <li>
  26.         {% if room.lift == 1 %}
  27.             <img src="{{ asset('public/img/icon/lift.png') }}" alt="{% trans %} lift {% endtrans %}">
  28.            {% trans %} label.lift {% endtrans %}
  29.         {% else %}
  30.             <img src="{{ asset('public/img/icon/no-lift.png') }}" alt="{% trans %} nolift {% endtrans %}">
  31.             {% trans %} nolift {% endtrans %}
  32.         {% endif %}
  33.     </li>
  34.     {# consierge #}
  35.     <li>
  36.         {% if room.doorMan == 1 %}
  37.             <img src="{{ asset('public/img/icon/consierge.png') }}" alt="{% trans %} label.doorman {% endtrans %}">
  38.            {% trans %} label.doorman {% endtrans %}
  39.         {% else %}
  40.             <img src="{{ asset('public/img/icon/no-consierge.png') }}" alt="{% trans %} label.doorman {% endtrans %}">
  41.             {% trans %} no {% endtrans %} {% trans %} label.doorman {% endtrans %}
  42.         {% endif %}
  43.     </li>
  44.     {# window type and orientation #}
  45.     <li>
  46.         {# no window #}
  47.         {% if  room.innerOuterPosition == 3 %}
  48.             <img src="{{ asset('public/img/icon/no-window.png') }}" alt="{% trans %} label.window {% endtrans %}">
  49.             {% trans %} no {% endtrans %} {% trans %} label.window {% endtrans %}
  50.         {% else %}
  51.             {% if room.windowType == 1 %}
  52.                 <img src="{{ asset('public/img/icon/balcony.png') }}" alt="{% trans %} label.balcony {% endtrans %}">
  53.                 {% trans %} label.balcony {% endtrans %}
  54.             {% else %}
  55.                 <img src="{{ asset('public/img/icon/window.png') }}" alt="{% trans %} label.window {% endtrans %}">
  56.                 {% trans %} label.window {% endtrans %}
  57.             {% endif %}
  58.             {# set window orientation, inner, outer #}
  59.             {% if  room.innerOuterPosition == 1 %}
  60.                 {% trans %} label.inner {% endtrans %}
  61.             {% elseif room.innerOuterPosition == 2 %}
  62.                 {% trans %} label.outer {% endtrans %}
  63.             {% endif %}
  64.             
  65.         {% endif %}
  66.     </li>
  67.     {# wifi #}
  68.     <li>
  69.         {% if room.wifi == 1 %}
  70.             <img src="{{ asset('public/img/icon/wifi.png') }}" alt="{% trans %} wifi {% endtrans %}">
  71.            {% trans %} wifi {% endtrans %}
  72.         {% else %}
  73.             <img src="{{ asset('public/img/icon/nowifi.png') }}" alt="{% trans %} wifi {% endtrans %}">
  74.             {% trans %} no {% endtrans %} {% trans %} wifi {% endtrans %}
  75.         {% endif %}
  76.     </li>
  77.     {# living rom #}
  78.     <li>
  79.         {% if room.livingRoom == 1 %}
  80.             <img src="{{ asset('public/img/icon/salon.png') }}" alt="{% trans %} livingroom {% endtrans %}">
  81.            {% trans %} livingroom {% endtrans %}
  82.         {% else %}
  83.             <img src="{{ asset('public/img/icon/sin_salon.png') }}" alt="{% trans %} livingroom {% endtrans %}">
  84.             {% trans %} no {% endtrans %} {% trans %} livingroom {% endtrans %}
  85.         {% endif %}
  86.     </li>
  87.     {# floor #}
  88.     <li>
  89.         {% if room.floor is not null %}
  90.             <img src="{{ asset('public/img/icon/floor.png') }}" alt="{% trans %} floor {% endtrans %}">
  91.            {{ room.floor }} {% trans %} label.floor {% endtrans %}
  92.         {% endif %}
  93.     </li>
  94.     {# property size #}
  95.     <li>
  96.         {% if room.roomSize is not null %}
  97.             <img src="{{ asset('public/img/icon/area.png') }}" alt="{% trans %} floor {% endtrans %}">
  98.            {{ room.roomSize }} m2
  99.         {% endif %}
  100.     </li>
  101.     
  102. </ul>