.alert.alert-warning[role="alert" id="alert-content" style="display: none;"] span#alert-message = form_for( @comite_de_investimento, html: { class: "form-vertical" }, role: "form" ) do |f| fieldset legend strong = @comite_de_investimento.new_record? ? 'Cadastrar' : 'Editar' ' Comitê de Investimento .form-group .row .col-sm-4 = f.label :data_da_criacao, "Data da Criação* ", class: "control-label" = f.calendar_field :data_da_criacao = error_for @comite_de_investimento, :data_da_criacao .col-sm-5 = f.label :decreto_id, "Legislação*", class: "control-label" = f.select :decreto_id, options_from_collection_for_select( \ @decretos, :id, :numero_data_funcao, @comite_de_investimento.decreto_id \ ), { include_blank: "Selecione" }, class: "form-control s2" = error_for @comite_de_investimento, :decreto_id .form-group h6 ' (*) Campos Obrigatórios .form-actions .row .col-sm-12 = f.submit "Salvar", class: "btn btn-primary" = link_to "Cancelar", contabilidade_comites_de_investimento_path, class: "btn btn-default"