Skip to content

Instantly share code, notes, and snippets.

@willsza
Created September 26, 2015 23:43
Show Gist options
  • Save willsza/bd2c3c30817424389a8b to your computer and use it in GitHub Desktop.
Save willsza/bd2c3c30817424389a8b to your computer and use it in GitHub Desktop.
Verificar conteúdo checkbox
= simple_form_for(@question) do |f|
= f.error_notification
.form-inputs
= f.association :page
= f.input :kind, collection: [ "Booleana", "Select", "Button", "Aberta" ], prompt: "Selecione o tipo de pergunta"
= f.input :title
= f.input :description_detailed, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'MyToolbar'} }
hr
= f.input :no_report, label: "Não apresentar esta questão no relatório", :input_html => { 'data-toggle' => "collapse", 'data-target' => "#collapseExample", 'aria-controls' => "collapseExample", 'aria-expanded' => "true" }
hr
#collapseExample.collapse class=('in' if no_report == false || no_report == nil)
= f.input :text_report, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'MyToolbar'} }
.form-actions
= f.button :submit, class: 'btn btn-success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment