{% extends 'TdbBaseBundle::layout.html.twig' %} {% block title %}Masters{% endblock %} {% block body %}

Gestion du master n°{{ master.version }} {% if master.canceled == true %} Annulé {% elseif master.validatedAt is not null %} Validé {% elseif master.exportedAt is not null %} Exporté {% else %} En cours {% endif %} {{ master.duration|durationHMSF }}

{% if is_granted("clone", master) %} Cloner{% endif %} {% if master.canceled == false %} {% if master.exportedAt is null and master.validatedAt is null %} {% if is_granted("edit", master) %} Editer{% endif %} {% endif %} {% if is_granted("edit", master) %} Annuler{% endif %} {% else %} {% if is_granted("delete", master) %} Supprimer{% endif %} {% endif %} {% if master.canceled == false %} {% if master.exportedAt is null %} {% if is_granted("edit", master) %} Marquer comme exporté{% endif %} {% elseif master.validatedAt is null %} {% if is_granted("edit", master) %} Marquer comme validé{% endif %} {% endif %} {% endif %} {% if is_granted("download", master) and master.canceled == false %}
{% endif %}
{% set clipsNotFound = master.clipsNotFound %} {% if clipsNotFound|length > 0 %} {{ include( 'TVn7EventBundle:Event:cliplist.html.twig', { 'clips': clipsNotFound, 'event': master.event, 'grid_col_size': 'col-md-12', 'title': pluralize("non présent dans ce master", "non présents dans ce master", clipsNotFound), 'closed': true } ) }} {% endif %}

Filage

{% if master.canceled == false and is_granted("edit", master) %}{% endif %} {% if master.isSeqLive %}{% endif %} {% set duration = 0 %} {% set duration_live = 0 %} {% for s in master.sequences %} {% if master.canceled == false and is_granted("edit", master) %} {% endif %} {% if master.isSeqLive %} {% endif %} {% endfor %}
   Type Nom Durée Début à Fin àTemps entre liveActions
{% if not loop.first %} {% else %} {% endif %} {% if not loop.last %} {% else %} {% endif %} {% if s.type == constant("T_CLIP",s) %} {% if s.clip.canceled %} {% elseif s.clip.validatedAt is null %} {% endif %} {% if s.isDuplicated %} {% endif %} {% if s.clip.filename == null %} {% endif %} {% endif %} {{ s.typeReadable }} {% if s.type == constant("T_CLIP",s) %}{{ s.clip.type }} {% endif %} {{ s.realName }} {% if s.type == constant("T_CLIP",s) and s.clip.seqComment != "" %} — {{ s.clip.seqComment }} {% endif %} {{ s.realDuration|durationHMSF }} {{ duration|durationHMSF }} {% set duration = duration + s.realDuration%} {{ duration|durationHMSF }} {% if s.type == constant("T_LIVE",s) %} {{ duration_live|durationHMSF }} {% set duration_live = 0 %} {% else %} {% set duration_live = duration_live + s.realDuration %} {% endif %} {% if s.type == constant("T_CLIP",s) %}Détails{% endif %}
{% endblock %}