Created
September 26, 2015 23:43
-
-
Save willsza/bd2c3c30817424389a8b to your computer and use it in GitHub Desktop.
Verificar conteúdo checkbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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