= stylesheet_link_tag 'controladoria/vistos_form' = form_for( @visto_de_documento_do_processo, html: { class: "form-vertical" }, role: "form" ) do |f| fieldset legend strong = @visto_de_documento_do_processo.new_record? ? 'Cadastrar' : 'Editar' ' Visto do Processo - if @visto_de_documento_do_processo.new_record? .form-group .row .container #interruptor-radio-group.interruptor-radio-group data-toggle="buttons" label.btn.btn-default.interruptor-radio = f.radio_button :aprovado, true span.radio-dot span.interruptor-radio-word Parecer Positivo label.btn.btn-default.interruptor-radio = f.radio_button :aprovado, false span.radio-dot-negative span.interruptor-radio-word Parecer Negativo = error_for @visto_de_documento_do_processo, :aprovado .br .form-group .row .col-sm-12 = f.label :Justificativa, class: "control-label" = f.text_area :justificativa, class: "form-control" = error_for @visto_de_documento_do_processo, :justificativa - id_documento = params[:documento_do_processo_id].present? ? params[:documento_do_processo_id] : f.object.documento_do_processo_id = f.hidden_field :documento_do_processo_id, value: id_documento .form-group h6 ' (*) Campos Obrigatórios .form-actions .row .col-sm-12 = f.submit "Salvar", class: "btn btn-primary" = link_to "Cancelar", licitacao_documento_do_processo_path(id_documento), class: "btn btn-default"