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