{% extends "base.html.twig" %} {% block title %}Parte {{ parte.ident }}{% endblock %} {% block main %}

Parte {{ parte.ident }}

Detalles

Proyecto {{ parte.proyecto }}
Cliente {{parte.proyecto.proveedor|default(parte.proyecto.cliente)}}
Trabajo {{ parte.trabajo }}
Descripción {{ parte.descripcion|nl2br()|default() }}
Descripción proyecto {{ parte.proyecto.texto|nl2br()|default()}}
Técnico {{ parte.tecnico.nombre|default() }} {{ parte.tecnico.apellido|default() }}

{{ parte.establecimiento}}

Horario: {{parte.establecimiento.horario}}
Teléfono: {{parte.establecimiento.telefono}}
Email: {{parte.establecimiento.email}}
Dirección: {% include 'Partes/EstablecimientoDireccion.twig' with {'establecimiento':parte.establecimiento} %}

Fecha Alta:{{ parte.fechaAlta.format("d-m-Y H:i")}}
Fecha Asignación:{{ parte.fechaAsignacion.format("d-m-Y H:i")|default("Sin Asignar")}}
Fecha Inicio:{{ parte.fechaInicio.format("d-m-Y H:i")|default("Sin Iniciar")}}
Fecha Finalización:{{ parte.fechaFin.format("d-m-Y H:i")|default("Sin Finalizar")}}

Planograma

{% include 'Partes/EstablecimientoPlanograma.twig' with {'establecimiento':parte.establecimiento} %}

Ficheros

    {% for file in ficheros %}
  • {{file.nombre}}
  • {% endfor %}
{% if parte.respuestas|length> 0 %}

Respuestas

{% for respuesta in parte.respuestas %} {% if respuesta.pregunta.tipo == "Terminales" %} {% if respuesta.respuesta > 0 %} {% endif %} {% else %} {% endif %} {% endfor %}
Pregunta Mueble Posición Respuesta Material Cantidad
{{ respuesta.pregunta }} {{ respuesta.mueble|default("") }} {{ respuesta.posicion|default("") }} {{ respuesta(respuesta.pregunta , respuesta.respuesta) }}{{ respuesta.pregunta }} - - {{ respuesta(respuesta.pregunta , respuesta.respuesta) }}

Material

{% for respuesta in parte.respuestas %} {% if respuesta.movimiento|length > 0 %} {% for movimiento in respuesta.movimiento %} {% endfor %} {% endif %} {% endfor %}
Material Cantidad
{{ movimiento.material }} {% if movimiento.tipo != 'Instalado' %} - {% endif %}{{ movimiento.cantidad }}
{% endif %}

Time

{{parte.duracion.format('%H:%I:%s') }}

{% if parte.firma is not null %}

Firma

{{ parte.firma.nombre }} ({{ parte.firma.identificador}})
{% endif %} {% if (is_granted("ROLE_CLIENTE_WRITE") or is_granted("ROLE_GESTION")) and (parte.fechaFin is null) %}

Actions

{% if is_granted("ROLE_CLIENTE_WRITE") %} {#solo los clientes ven esto#} Ficha {% if (parte.respuestas|length > 0) and (parte.fechaFin is null) %} Finalizar {% endif %} {% if parte.fechaInicio is not null %} Reiniciar {% endif %} {% if (parte.tecnico is null) and (parte.fechaFin is null) %} Borrar {% else %} Desasignar {% endif %} {% else %} {#solo los gestion ven esto#} Ficha {% if parte.respuestas|length > 0 and (parte.fechaFin is null) %} Finalizar {% endif %} {% if parte.fechaInicio is not null %} Reiniciar {% endif %} {% if parte.tecnico is null and (parte.fechaFin is null) %} Borrar {% else %} Desasignar {% endif %} {% endif %}
{% endif %}
{% endblock main %} {% block javascripts %} {% endblock javascripts %} {% block stylesheets %} {% endblock stylesheets %}