src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/neighborhoodSubLocations.html.twig line 1

Open in your IDE?
  1. {% if subNeighbourhoods|length > 0 %}
  2.     <div id="sub-neighborhoods">
  3.         <div class="container">
  4.             {% for  subNeighborhoodByType in  subNeighbourhoods %}
  5.             {% if subNeighborhoodByType['locations']|length > 0 and loop.first %}
  6.             <div class="row">
  7.                 <div class="col-md-12 ">
  8.                     <div class="page-header">
  9.                         <h3>{{ 'layout.neighborhoods_sub_locations'|trans({'%location%': location.title}, 'messages') }}
  10.                         </h3>
  11.                     </div>
  12.                 </div>
  13.             </div>
  14.              {% endif %}
  15.             {% endfor %}
  16.             <div class="row">
  17.                 {% for  subNeighborhoodByType in  subNeighbourhoods %}
  18.                     <div class="col-xs-12 col-sm-6 ">
  19.                         {% if subNeighborhoodByType['locations']|length > 0 %}
  20.                             <table class="table table-flex m-0">
  21.                                 <tbody>
  22.                                     <tr class="col-xs-12 sub-titles first-cell-sm">
  23.                                         <td><span>{{ "neighborhoods.table_sublocation_title"|trans }}</span></td>
  24.                                         <td>{{ "neighborhoods.table_sublocation_price"|trans({ '%propertyType%' : subNeighborhoodByType['propertyType'].title}, 'messages') }}</td>
  25.                                     </tr>
  26.                                 </tbody>
  27.                             </table>
  28.                             <table class="table table-flex">
  29.                                 <tbody class="large-element seemore-table" data-height="185" only-mobile="true">
  30.                                 {% for subNeighborhood in subNeighborhoodByType['locations'] %}
  31.                                     {% if subNeighborhood.getSingleStatistics(subNeighborhoodByType['propertyType']) and subNeighborhood.getSingleStatistics(subNeighborhoodByType['propertyType']).avgPrice %}
  32.                                         <tr class="col-xs-12">
  33.                                             <td>
  34.                                                 <span>
  35.                                                     <a target="_blank" class="sub_title_link"
  36.                                                        href="{{ path('neighborhood_main_page', {'location_slug': subNeighborhood.slug}) }}">{{ subNeighborhood.title }}
  37.                                                     </a>
  38.                                                 </span>
  39.                                             </td>
  40.                                             <td>
  41.                                                 <span class="integer">
  42.                                                     {{ subNeighborhood.getSingleStatistics(subNeighborhoodByType['propertyType']).avgPrice|number_format }} {{ get_setting('general', 'currency')|trans }}
  43.                                                     /{{ get_setting('general', 'measurement_unit')|trans }}
  44.                                                 </span>
  45.                                             </td>
  46.                                         </tr>
  47.                                     {% endif %}
  48.                                 {% endfor %}
  49.                                 </tbody>
  50.                             </table>
  51.                             <a href="javascript:void(0)" id="seeMoreParagraph" class="see-more-custom-paragraph see-more-paragraph-button seemore-table-button"></a>
  52.                         {% endif %}
  53.                     </div>
  54.                 {% endfor %}
  55.             </div>
  56.         </div>
  57.     </div><!-- end sub neighborhoods -->
  58. {% endif %}