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

Open in your IDE?
  1. {% if showOtherUnits %}
  2.     <div class="listing-details-item">
  3.         <div class="page-header">
  4.             <p class="section-title__header">
  5.                 {{ 'layout.other_units'|trans }}
  6.             </p>
  7.         </div>
  8.         <div class="compound-units-wrapper">
  9.             {% for propertyType, units in otherUnits %}
  10.                 <div class="compound-units-container">
  11.                     <table class="table table-hover compound-units-table">
  12.                         <thead>
  13.                             <tr>
  14.                                 <th scope="col">{{ propertyType }}</th>
  15.                                 <th scope="col"></th>
  16.                             </tr>
  17.                         </thead>
  18.                         <tbody>
  19.                             {% for unit in units %}
  20.                                 {% if listing.slug %}
  21.                                     {% set unit_url = path("listing_slug", {id: unit.id, slug: unit.slug}) %}
  22.                                 {% else %}
  23.                                     {% set unit_url = path('listing_view', {'id': unit.id}) %}
  24.                                 {% endif %}
  25.                                 <tr class='clickable-row' data-href='{{ unit_url }}'>
  26.                                     <td>{{ unit.area }} {{ get_setting('general', 'measurement_unit')|trans }}</td>
  27.                                     <td>
  28.                                         <div class="d-flex justify-content-end align-items-center">
  29.                                             <span class="price">
  30.                                                 {{ unit.price|number_format }} {{ get_setting('general', 'currency')|trans }}
  31.                                             </span>
  32.                                             <a href="{{ unit_url }}" target="_blank">
  33.                                                 <i class="fas compound-unit-redirect-icon"></i>
  34.                                             </a>
  35.                                         </div>
  36.                                     </td>
  37.                                 </tr>
  38.                             {% endfor %}
  39.                         </tbody>
  40.                     </table>
  41.                 </div>
  42.             {% endfor %}
  43.         </div>
  44.     </div>
  45. {% endif %}