{% set collection = getProductTitles(entity) %}
{% if collection | length %}
<div class="table__container">
<div class="table-title__container">
<h3>{{ 'content.movies.vet.episodes' | trans({}, 'PressSite') }}</h3>
<a href="{{ path('press_site.actions.download_vet_table', {_locale: app.request.locale, id: entity.productID}) }}" target="_blank">
Download tabel
</a>
</div>
<table class="data-table">
<thead>
<tr>
<th>{{ 'content.movies.vet.season_number' | trans({}, 'PressSite') }}</th>
<th>{{ 'content.movies.vet.episode_number' | trans({}, 'PressSite') }}</th>
<th>{{ 'content.movies.vet.episode_name' | trans({}, 'PressSite') }}</th>
<th>{{ 'content.movies.vet.language' | trans({}, 'PressSite') }}</th>
</tr>
</thead>
<tbody>
{% for title in collection %}
<tr>
<td>{{ title.seasonNumber }}</td>
<td>{{ title.episodeNumber }}</td>
<td>{{ title.extendedTitle }}</td>
<td>{{ title.language | getProductLanguageAsReadable }}</td>
<td>
<button data-action="toggle-row" data-id="{{ title.id }}" class="toggle-hidden-row" type="button" aria-expanded="false">
{{ 'content.movies.vet.see_more' | trans({}, 'PressSite') }}
<img src="{{ asset('assets/press_site/images/navbar/arrow-down.png') }}" alt="">
</button>
</td>
</tr>
<tr class="hidden" data-related-id="{{ title.id }}">
<td colspan="2">
<h6>{{ 'content.movies.vet.duration' | trans({}, 'PressSite') }}</h6>
<p>{{ title.duration }}</p>
</td>
<td colspan="2">
<h6>{{ 'content.movies.vet.extended_code' | trans({}, 'PressSite') }}</h6>
<p>{{ title.extendedNavCode }}</p>
</td>
<td colspan="2">
<h6>{{ 'content.movies.vet.media_id' | trans({}, 'PressSite') }}</h6>
<p>{{ getProductMediaId(title) }}</p>
</td>
</tr>
{% set langs = isBroadcastType() ? ['dan', 'nor', 'swe', 'fin'] : [title.language] %}
{% for lang in langs %}
{% set localTitle = title.getLocalizedLocalTitle(getLanguageCodeForTitle(lang)) %}
{% set shortSynopsis = title.getLocalizedShortSynopsis(getLanguageCodeForTitle(lang)) %}
{% set longSynopsis = title.getLocalizedLongSynopsis(getLanguageCodeForTitle(lang)) %}
<tr class="hidden" data-related-id="{{ title.id }}">
<td>
<h6>{{ 'content.movies.vet.series_name' | trans({}, 'PressSite') }}
-
{{ getCountryByLanguageCode(lang) }}</h6>
<p>{{ localTitle }}</p>
</td>
<td colspan="2">
<h6>{{ 'content.movies.vet.short_synopsis' | trans({}, 'PressSite') }}</h6>
<p>{{ shortSynopsis }}</p>
</td>
<td colspan="2">
<h6>{{ 'content.movies.vet.long_synopsis' | trans({}, 'PressSite') }}</h6>
<p>{{ longSynopsis }}</p>
</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</tbody>
</table>
</div>
{% endif %}