Sha256: 4ba7b3c5369d12fb3f8219a6a5448f80737ccd535a641171dc4f71da81d726df

Contents?: true

Size: 783 Bytes

Versions: 20

Compression:

Stored size: 783 Bytes

Contents

= effective_form_with(model: [:admin, cpd_target], engine: true) do |f|
  = f.hidden_field :user_type, value: current_user.class.name

  - if inline_datatable? && inline_datatable.attributes[:user_id].present?
    = f.hidden_field :user_id
  - else
    - ajax_url = (@select2_ajax_path || effective_resources.users_admin_select2_ajax_index_path) unless Rails.env.test?
    = f.select :user_id, current_user.class.all, ajax_url: ajax_url

  - if inline_datatable? && inline_datatable.attributes[:cpd_cycle_id].present?
    = f.hidden_field :cpd_cycle_id
  - else
    = f.select :cpd_cycle_id, Effective::CpdCycle.sorted.all, label: cpd_cycle_label

  = f.number_field :score
  = f.check_box :required_to_submit, label: 'A minimum score is required to submit'

  = effective_submit(f)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_cpd-1.7.2 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.7.1 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.7.0 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.5 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.4 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.3 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.2 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.1 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.6.0 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.5.1 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.5.0 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.8 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.7 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.6 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.5 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.4 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.3 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.2 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.1 app/views/admin/cpd_targets/_form.html.haml
effective_cpd-1.4.0 app/views/admin/cpd_targets/_form.html.haml