templates/index/cinema.html.twig line 1

Open in your IDE?
  1. {% extends 'center.html.twig' %}
  2. {% block title %}
  3.     {{ 'title.cinema'|trans }} | {{ parent() }}
  4. {% endblock %}
  5. {% block page %}
  6.     <section class="overflow-hidden py-10 py-xl-10">
  7.         <div class="container">
  8.             <div class="row align-items-end mb-10 mt-5">
  9.                 <div class="col-lg-4 col-md-12 pb-2">
  10.                     <h1 class="py-0">{{ 'title.cinema'|trans }}</h1>
  11.                     <a href="tel:{{ cinema.address.phone }}"><i class="bi bi-phone"></i> {{ cinema.address.phone }}</a>
  12.                 </div>
  13.                 <div class="col-lg-8 col-md-12">
  14.                     <div class="btn-group">
  15.                         {% set start = today|date('Y-m-d') %}
  16.                         {% set eachday = '' %}
  17.                         {% set lastInLoop = '' %}
  18.                         {% for i in range(0,7) %}
  19.                             {% set eachday = start|date_modify("+" ~ i ~ "day") %}
  20.                             <a
  21.                                     class="btn btn-sm {% if eachday|date('Y-m-d') is same as selected|date('Y-m-d') %}btn-primary{% else %}btn-success{% endif %}"
  22.                                     href="{{ path('app_city_cinema_date', {'date':eachday|date('Y-m-d'), 'city':city }) }}">
  23.                                 {{ eachday|date('d.m.') }}<br>
  24.                                 {% set shortName = 'day.short.'~eachday|date('N') %}
  25.                                 <small>{{ shortName|trans }}</small>
  26.                             </a>
  27.                         {% endfor %}
  28.                     </div>
  29.                 </div>
  30.             </div>
  31.             <div class="row align-items-end mb-10 mt-5">
  32.                 <div class="col-lg-12">
  33.                     <table class="table table-responsive">
  34.                         <tr>
  35.                             <th>{{ 'title.movie_name'|trans }}</th>
  36.                             <th></th>
  37.                             <th></th>
  38.                             <th>{{ 'title.movie_time'|trans }}</th>
  39.                         </tr>
  40.                         {% for movie in movies %}
  41.                                 <tr>
  42.                                     <td><a href="{{ cinema.cinemaFeed }}{{ movie.programId }}" class="link-primary"
  43.                                            title="{{ 'action.buy_ticket'|trans }}" target="_blank">{{ movie.name }}</a></td>
  44.                                     <td>{{ movie.room }}</td>
  45.                                     <td>{{ movie.type }}</td>
  46.                                     <td>{{ movie.previewDate|date('H:i') }}</td>
  47.                                 </tr>
  48.                         {% endfor %}
  49.                     </table>
  50.                 </div>
  51.             </div>
  52.         </div>
  53.     </section>
  54. {% endblock %}