.widget - if exercicio_em_vigor? && !@obra.esta_concluida? && (logado_na_obra? || logado_na_contabilidade? || ( logado_no_administrativo? && Configuracao.last.usa_modulo_gestao_de_obras? )) && !@obra.enviado_ao_sim? div style="margin-bottom: 30px;" =< botao_com_permissao administrativo_new_engenheiro_da_obra_path( @obra ), {acao: :create}, { \ texto: " Adicionar Responsável", class_icone: "icone-cadastrar", } header> h5 ' Lista de span.fw-semi-bold Responsáveis da Obra .widget-body - if engenheiros_da_obra.empty? h6 Nenhum registro encontrado. - else table.table.table-hover.table-responsive thead tr th width="10%" Início th Nome th Tipo th Formação th Cargo th Nº do RNP th N° da Port. th width="5%" tbody - engenheiros_da_obra.order('data_de_inicio DESC, created_at DESC').each do |engenheiro| tr td = engenheiro.data_de_inicio.to_s td = engenheiro.pessoa.nome_e_cpf_ou_cnpj td = engenheiro.localizar(:tipo) unless engenheiro.tipo.nil? td = engenheiro.localizar(:formacao) unless engenheiro.formacao.nil? td = engenheiro.try(:cargo) td = engenheiro.numero_do_crea td = engenheiro.numero_da_portaria td - if logado_na_obra? && esta_autorizado?(:destroy) && !@obra.enviado_ao_sim? = link_to administrativo_engenheiro_da_obra_path(engenheiro), :method => :delete, data: { confirm: "Tem certeza que deseja excluir o Responsável da Obra: #{engenheiro.pessoa.nome_e_cpf_ou_cnpj}?" }, class: "btn btn-default btn-sm mb-xs", title: "Excluir" do i.icone-excluir