{% extends 'TdbBaseBundle::layout.html.twig' %} {% from "TdbBaseBundle::macros.html.twig" import userWidget, userChip %} {% block title %}Clip{% endblock %} {% block body %}

{{ clip.type }} {{ clip.name }} {% if clip.canceled %} Annulé {% elseif clip.validatedAt is not null %} Validé {% elseif clip.finishedAt is not null %} Monté {% elseif clip.derushed %} Dérushé {% elseif clip.shoted %} Tourné {% else %} Non tourné {% endif %} {{ clip.duration|durationHMSF }}

Nom du fichier : {% if clip.filename %} {{ clip.filename }} {% else %} Pas de fichier associé {% endif %}
{% for responsable in clip.respoMontage %}

Responsable montage:

{{ userWidget(responsable, 70) }}
{% endfor %} {% for responsable in clip.respoTournage %}

Responsable tournage:

{{ userWidget(responsable, 70) }}
{% endfor %}
{% if is_granted("edit", clip) %} Editer{% endif %} {% if not clip.canceled %} {% if is_granted("edit", clip) %} Annuler{% endif %} {% if clip.validatedAt is not null %} {% if is_granted("validate", clip) %} Dévalider{% endif %} {% elseif clip.finishedAt is not null %} {% if is_granted("edit", clip) %} Marquer comme non monté{% endif %} {% if is_granted("validate", clip) %} Valider{% endif %} {% elseif clip.derushed %} {% if is_granted("edit", clip) %} Marquer comme non dérushé{% endif %} {% if is_granted("edit", clip) %} Marquer comme monté{% endif %} {% elseif clip.shoted %} {% if is_granted("edit", clip) %} Marquer comme non tourné{% endif %} {% if is_granted("edit", clip) %} Marquer comme dérushé{% endif %} {% else %} {% if is_granted("edit", clip) %} Marquer comme tourné{% endif %} {% endif %} {% if clip.respoMontage|length == 0 %} Prendre le clip{% endif %} {% else %} {% if is_granted("edit", clip) %} Désannuler{% endif %} {% if is_granted("delete", clip) %} Supprimer{% endif %} {% endif %} {% if is_granted('comment', clip) %} Ajouter un commentaire {% endif %}
{% if clip.shortDescription | trim is not empty %} {% if clip.longDescription | trim is not empty %}
{% else %}
{% endif %}

Description

{{ clip.shortDescription | nl2br }}

{% endif %} {% if clip.longDescription | trim is not empty %} {% if clip.shortDescription | trim is not empty %}
{% else %}
{% endif %}

Synopsis

{{ clip.longDescription | raw }}
{% endif %}

Musique{% if clip.musics | length > 1 %}s{% endif %}

{% for music in clip.musics %}

{{ music }}

{% if music.url is not null %} Voir la vidéo{% endif %}
{% endfor %}

Clip dans {{ clip.masters|length }} master{% if clip.masters|length > 1 %}s{% endif %}

{% for m in clip.masters %} {% endfor %}
Version Créé le Durée Exporté Validé
{% if m.seqCanceled %} {% endif %} {% if m.fullyValidated == false %} {% endif %} {% if m.isDuplicatedSeq == true %} {% endif %} {% if is_granted("show", m) %}{% endif %}{{ m.version }}{% if is_granted("show", m) %}{% endif %} {{ m.createdAt|date("d/m/Y à H:i") }} {{ m.duration|durationHMSF }} {% if m.exportedAt is not null %} {{ m.exportedAt|date("d/m/Y à H:i") }} {% elseif m.canceled == false and is_granted("edit", m) %} Marquer comme exporté {% else %} Non {% endif %} {% if m.validatedAt is not null %} {{ m.validatedAt|date("d/m/Y à H:i") }} {% elseif m.exportedAt is not null and m.canceled == false and is_granted("edit", m) %} Marquer comme validé {% else %} Non {% endif %}
{% if is_granted("comment", clip) %}

Commentaires

{% for reply in clip.comments if reply.deleted == false %}

{% if reply.author != null %} {{ userChip(reply.author, 30) }} ( {% if reply.author.poste != "Aucun" %} {{ reply.author.poste }} {{ reply.author.annee - 2 }}/{{ reply.author.annee - 1 }} - {% endif %} Promo {{ reply.author.annee }} )     {% else %} Utilisateur supprimé {% endif %} {{ reply.createdAt|date('d/m/Y à H:i') }} {% if is_granted("edit", reply) %} {% endif %} {% if is_granted("delete", reply) %} {% endif %} {% if reply.author in clip.respoMontage or reply.author in clip.respoTournage %} Respo clip {% endif %} {% if reply.author in clip.event.resposMontage or reply.author in clip.event.resposTournage or reply.author in clip.event.resposSon %} Respo évènement {% endif %}

{{ reply.body | raw }} {% if reply.editedAt != "" %}

Dernière édition le {{ reply.editedAt | date('d/m/Y à H:i') }}

{% endif %}
{% endfor %} {{ render(controller('TVn7EventBundle:Comment:add', {'event': clip.event.slug, 'clip': clip.slug})) }}
{% endif %} {% endblock %}