ol.breadcrumb li = link_to "Comites De Investimento", contabilidade_comites_de_investimento_path, class: "link_breadcrumb" li.active Comitê de Investimento .widget .widget-body h3.show-header ' Comitê de Investimento span.fw-semi-bold ==< @comite_de_investimento.codigo_com_zeros .pull-right style="margin-top: -0.25em;" - if @comite_de_investimento.data_de_extincao.present? span class="label label-warning" =< "#{"EXTINTO"}" p strong Data da criação: ==< @comite_de_investimento.data_da_criacao p strong Decreto: ==< @comite_de_investimento.decreto.try(:numero) - if @comite_de_investimento.extinta? hr p strong Data de Extinção do Comitê: ==< @comite_de_investimento.data_de_extincao p strong Número do Instrumento Legal de Extinção: ==< @comite_de_investimento.decreto_de_extincao.numero p strong Data de publicação do instrumento legal: ==< @comite_de_investimento.decreto_de_extincao.data_da_publicacao .row .col-md-12 .btn-toolbar .btn-group = link_to contabilidade_comites_de_investimento_path, class: "btn btn-default btn-sm" do i.icone-voltar ' Voltar - if !@comite_de_investimento.extinta? && @comite_de_investimento.arquivo_id.blank? && exercicio_em_vigor? - if esta_autorizado? :edit = link_to edit_contabilidade_comite_de_investimento_path(@comite_de_investimento), class: "btn btn-default btn-sm" do i.icone-editar ' Editar - if esta_autorizado? :destroy = link_to @comite_de_investimento, method: :delete, data: { confirm: 'Tem certeza?' }, class: "btn btn-default btn-sm" do i.icone-excluir span.text-danger Excluir - if esta_autorizado? :edit = link_to new_contabilidade_membro_do_comite_de_investimento_path(@comite_de_investimento), class: "btn btn-default btn-sm" do i.icone-cadastrar ' Cadastrar Membro = link_to '#', class: "btn btn-default btn-sm", id: "extinguir_comite" do i.icone-remove ' Extinguir == render partial: 'contabilidade/membros_dos_comites_de_investimento/grid', locals: { membros_do_comite: @comite_de_investimento.membros_dos_comites_de_investimento } #modal_extinguir_comite.modal.fade[role="dialog"] .modal-dialog[role="document"] .modal-content = form_for( @comite_de_investimento , url: url_for(controller: 'contabilidade/comites_de_investimento', action: :extinguir_comite), method: :get, :html => {class: "form-vertical", multipart: true}, role: "form" ) do |f| .modal-header button.close[type="button" data-dismiss="modal" aria-label="Close"] span[aria-hidden="false"] | × .modal-title | Dados Para Extinguir Comissão .modal-body .form-group .row .col-sm-4 = label_tag :data_de_extincao, "Data da Extinção", class: "control-label" = text_field_tag :data_de_extincao,'', placeholder: '00/00/0000', class: "form-control date-picker", autocomplete: "off", required:true span.input-group-addon span.icone-calendarioao .col-sm-5 = label_tag :decreto_de_extincao_id, "Legislação de Extinção*", class: "control-label" .input-group = select_tag "decreto_de_extincao_id", options_from_collection_for_select( \ @decretos_de_extincao, :id, :numero_data_funcao,'' \ ), include_blank: "Selecione", class: "form-control s8", required: true .modal-footer =< submit_tag 'Confirmar Extinção', { class: 'btn btn-primary'} javascript: $("#extinguir_comite").click(function(e) { $('#modal_extinguir_comite').modal('show'); setTimeout(function() { $("#decreto_de_extincao_id").select2(); }, 500); });