templates/press_site/actions/movies/partials/details/vod_titles.html.twig line 1

Open in your IDE?
  1. {% set collection = getProductTitles(entity) %}
  2. {% if collection | length %}
  3.     <div class="table__container">
  4.         <div class="table-title__container">
  5.             <h3>{{ 'content.movies.vet.episodes' | trans({}, 'PressSite') }}</h3>
  6.             <a href="{{ path('press_site.actions.download_vet_table', {_locale: app.request.locale, id: entity.productID}) }}" target="_blank">
  7.                 Download tabel
  8.             </a>
  9.         </div>
  10.         <table class="data-table">
  11.             <thead>
  12.                 <tr>
  13.                     <th>{{ 'content.movies.vet.season_number' | trans({}, 'PressSite') }}</th>
  14.                     <th>{{ 'content.movies.vet.episode_number' | trans({}, 'PressSite') }}</th>
  15.                     <th>{{ 'content.movies.vet.episode_name' | trans({}, 'PressSite') }}</th>
  16.                     <th>{{ 'content.movies.vet.language' | trans({}, 'PressSite') }}</th>
  17.                 </tr>
  18.             </thead>
  19.             <tbody>
  20.                 {% for title in collection %}
  21.                     <tr>
  22.                         <td>{{ title.seasonNumber }}</td>
  23.                         <td>{{ title.episodeNumber }}</td>
  24.                         <td>{{ title.extendedTitle }}</td>
  25.                         <td>{{ title.language | getProductLanguageAsReadable }}</td>
  26.                         <td>
  27.                             <button data-action="toggle-row" data-id="{{ title.id }}" class="toggle-hidden-row" type="button" aria-expanded="false">
  28.                                 {{ 'content.movies.vet.see_more' | trans({}, 'PressSite') }}
  29.                                 <img src="{{ asset('assets/press_site/images/navbar/arrow-down.png') }}" alt="">
  30.                             </button>
  31.                         </td>
  32.                     </tr>
  33.                     <tr class="hidden" data-related-id="{{ title.id }}">
  34.                         <td colspan="2">
  35.                             <h6>{{ 'content.movies.vet.duration' | trans({}, 'PressSite') }}</h6>
  36.                             <p>{{ title.duration }}</p>
  37.                         </td>
  38.                         <td colspan="2">
  39.                             <h6>{{ 'content.movies.vet.extended_code' | trans({}, 'PressSite') }}</h6>
  40.                             <p>{{ title.extendedNavCode }}</p>
  41.                         </td>
  42.                         <td colspan="2">
  43.                             <h6>{{ 'content.movies.vet.media_id' | trans({}, 'PressSite') }}</h6>
  44.                             <p>{{ getProductMediaId(title) }}</p>
  45.                         </td>
  46.                     </tr>
  47.                     {% set langs = isBroadcastType() ? ['dan', 'nor', 'swe', 'fin'] : [title.language] %}
  48.                     {% for lang in langs %}
  49.                         {% set localTitle = title.getLocalizedLocalTitle(getLanguageCodeForTitle(lang)) %}
  50.                         {% set shortSynopsis = title.getLocalizedShortSynopsis(getLanguageCodeForTitle(lang)) %}
  51.                         {% set longSynopsis = title.getLocalizedLongSynopsis(getLanguageCodeForTitle(lang)) %}
  52.                         <tr class="hidden" data-related-id="{{ title.id }}">
  53.                             <td>
  54.                                 <h6>{{ 'content.movies.vet.series_name' | trans({}, 'PressSite') }}
  55.                                     -
  56.                                     {{ getCountryByLanguageCode(lang) }}</h6>
  57.                                 <p>{{ localTitle }}</p>
  58.                             </td>
  59.                             <td colspan="2">
  60.                                 <h6>{{ 'content.movies.vet.short_synopsis' | trans({}, 'PressSite') }}</h6>
  61.                                 <p>{{ shortSynopsis }}</p>
  62.                             </td>
  63.                             <td colspan="2">
  64.                                 <h6>{{ 'content.movies.vet.long_synopsis' | trans({}, 'PressSite') }}</h6>
  65.                                 <p>{{ longSynopsis }}</p>
  66.                             </td>
  67.                         </tr>
  68.                     {% endfor %}
  69.                 {% endfor %}
  70.                 </tbody>
  71.             </tbody>
  72.         </table>
  73.     </div>
  74. {% endif %}