Sha256: 1a6aa7fc24751be2a98298df39c824569aa619bc13ceb59c37178f8f40201f74
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
= simple_form_for [:admin, @survey, @question_group, @question] do |f| = f.input :question_text = f.input :code, hint: t('shared.code_hint') = f.input :_type, collection: Helena::Question::TYPES.map { |type| [type.model_name.human, type] } - if @question.respond_to? :required = f.input :required, as: :boolean - if @question.is_a?(Helena::Questions::LongText) || @question.is_a?(Helena::Questions::StaticText) = f.input :default_value - if @question.is_a?(Helena::Questions::ShortText) = f.input :default_value, as: :string - if @question.includes_labels? = render 'labels', form: f - if @question.includes_subquestions? = render 'sub_questions', form: f = f.submit t('shared.save'), class: 'btn btn-success'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | app/views/helena/admin/questions/_form.html.haml |