Sha256: fe71cc644ac59dd79973e97883054db69c3a0de12fa2ff99102d42a4b898ceeb

Contents?: true

Size: 980 Bytes

Versions: 14

Compression:

Stored size: 980 Bytes

Contents

= simple_form_for [@survey, version] do | f |
  = f.simple_fields_for :survey_detail do |detail|
    = detail.input :title
    = detail.input :description, as: :text, input_html: { cols: 60, rows: 10 }
  = f.input :notes
  = f.input :session_report, as: :text, hint: t('.slim_lang_hint_html'), input_html: { cols: 60, rows: 10, class: 'slim_lang' }
  - if f.object.persisted?
    = f.input :active, as: :boolean
  - else
    = f.input :parent, collection: f.object.ancestors_and_self, label_method: ->(v){ "#{v.survey.name} #{v.version} #{v.notes}" if v.present?}, include_blank: true, selected: -> (v) { v.parent }
  = f.simple_fields_for :settings do |setting|
    = setting.input :display_progressbar, as:         :boolean,
                                          label:      t('.display_progressbar'),
                                          input_html: { checked: (version.settings['display_progressbar'] == '1') }
  = f.submit t('shared.save'), class: 'btn btn-success'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
helena_administration-1.0.3 app/views/helena_administration/versions/_form.html.slim
helena_administration-1.0.2 app/views/helena_administration/versions/_form.html.slim
helena_administration-1.0.1 app/views/helena_administration/versions/_form.html.slim
helena_administration-1.0.0 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.3.4 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.3.3 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.3.1 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.3.0 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.2.3 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.2.0 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.1.1 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.1.0 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.0.7 app/views/helena_administration/versions/_form.html.slim
helena_administration-0.0.6 app/views/helena_administration/versions/_form.html.slim