Skip to content

no way to attach classes to form elements #1

@mwotton

Description

@mwotton

I'm trying to create a checkbox group. Unfortunately, the checkbox_group helper in pp/helpers/dynamic_forms/check_box_group_helper.rb doesn't provide a way to add a class to the generated label.

line 73: out << "

  • #{markup}#{item}
  • \n"

    I'm passing a custom block in now, but this doesn't help me much in the general run - I'd have to write different code for each different kind of form. Would it be reasonable to attach a class to all form elements?

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions