Sha256: ca515ddb51141b3a8859cb89df44f86b15f5bd31c4dbf9c0ce4c5647720b4fb5

Contents?: true

Size: 728 Bytes

Versions: 4

Compression:

Stored size: 728 Bytes

Contents

= effective_form_with(model: [:admin, cpd_activity], engine: true) do |f|
  - if inline_datatable?
    = f.hidden_field :cpd_category_id
  - else
    = f.select :cpd_category_id, Effective::CpdCategory.sorted.all, label: 'Category'

  .row
    .col
      = f.text_field :title, label: 'Title'

      - if defined?(EffectiveArticleEditor)
        = f.article_editor :body, label: 'Body (optional)'
      - else
        = f.rich_text_area :body, label: 'Body (optional)'

    .col
      = f.text_field :amount_label,
        hint: 'hours of work, papers written, courses attended'

      = f.text_field :amount2_label,
        hint: 'continuing education units'

      = f.check_box :requires_upload_file

  = effective_submit(f)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_cpd-0.4.3 app/views/admin/cpd_activities/_form.html.haml
effective_cpd-0.4.2 app/views/admin/cpd_activities/_form.html.haml
effective_cpd-0.4.1 app/views/admin/cpd_activities/_form.html.haml
effective_cpd-0.4.0 app/views/admin/cpd_activities/_form.html.haml