{% extends "propesqBundle::layout.html.twig" %} {% block stylesheets %} {% endblock %} {% block content %}

{%if entity.id is defined and entity.id is not null and isShow %} {{'cabecalho.detalhar.unidadeprodutiva'|trans ~ ' ' ~ entity.txtTipoNome }} {%elseif entity.id is defined and entity.id is not null and not isShow %} {{'cabecalho.alterar.unidadeprodutiva'|trans ~ ' ' ~ entity.txtTipoNome }} {%if entity.id is defined and entity.codSisPCSPA is not null%} {% set isEstavelSisPCSPA = true %} {% endif %} {% set isEdit = true %} {%else%} {{'cabecalho.incluir.unidadeprodutiva'|trans ~ ' ' ~ entity.txtTipoNome }} {% set isEstavelSisPCSPA = false %} {% set isEdit = false %} {%endif%}

{{ form_errors(form) }}
{% block filho %} {% endblock filho %}
Informações do Registro {{ form_widget(form._token) }}
{{ form_label(form.datInformacao) }} {% if isShow %}
{{ entity.datInformacao | date('d/m/Y') }}
{% else %}
{{ form_widget(form.datInformacao,{ 'attr': {'class': 'input-xlarge'} }) }}
{{ form_errors(form.datInformacao) }} {% endif %}
{{ form_label(form.codPessoaRespEntrevista) }} {% if isShow %}
{{ entity.codPessoaRespEntrevista.txtNome }}
{% else %}
{{ form_widget(form.codPessoaRespEntrevista,{ 'attr': {'class': 'input-xlarge'} }) }}
{% endif %}
{#
{{ form_label(form.txtOrigemInformacao) }} {% if isShow %}
{{ entity.txtOrigemInformacao }}
{% else %}
{{ form_widget(form.txtOrigemInformacao,{ 'attr': {'class': 'input-xlarge'} }) }} {{ form_errors(form.txtOrigemInformacao) }}
{% endif %}
#}
{% if tipo != 'parelha' %}
{% if not isShow %}

Envio e visualização de fotos. Caso queira ver a foto em tamanho real, clique sobre a foto para iniciar a visualização.

{% else %}

Visualização de fotos. Caso queira ver a foto em tamanho real, clique sobre a foto para iniciar a visualização.

{% endif %}
{% if not isShow %}
Selecionar fotos... {##}
 

{% endif %}
{% endif %} {% if (interoperabilidade_sispcspa_situacao == '1' or interoperabilidade_sispcspa_situacao == 'true') and (tipo == 'pescador' or tipo == 'embarcacao' ) and not isEdit %}
{{ 'Ação Interoperabilidade'|trans }}
{{ form_widget(interoperabilidadeAcaoForm.acao,{ 'attr': {'class': 'cemporcento interoperabilidadeSisPCSPAActions'} }) }} {{ form_errors(interoperabilidadeAcaoForm.acao) }}
{% endif %} {%if isEdit == true or isShow == true %} {% if entity.datInclusaoMob is not null %}
{% endif %} {% if entity.datEdicaoMob is not null %}
{% endif %}
{% if entity.datAnalise < entity.datEdicao %} {% if entity.codUsuarioRespAnalise is not null %}
{% endif %} {% if entity.codUsuarioRespEdicao is not null %}
{% endif %} {% else %} {% if entity.codUsuarioRespEdicao is not null %}
{% endif %} {% if entity.codUsuarioRespAnalise is not null %}
{% endif %} {% endif %} {%endif%} {% if isShow %}
{% if is_granted('ROLE_UNIDADEPRODUTIVA_LIST') %} {{'acao.listar'|trans}} {% endif %} {% if is_granted('ROLE_UNIDADEPRODUTIVA_EDIT') %} {{'acao.editar'|trans}} {% endif %} {% if is_granted('ROLE_UNIDADEPRODUTIVA_DELETE') %} Excluir {% endif %}
{% else %}
{{'acao.cancelar'|trans}}
{% endif %}
{% if tipo != 'parelha' %} {% raw %} {% endraw %} {% endif %} {% endblock %}