Skip to content

repeatable_attr_input's simple_form_input_args[:label] option should be respected by add_another_text method #162

Description

@ewlarson

It would be nice if repeatable_attr_input kept this potential label arg in mind when ultimately generating the add_another_text value. Otherwise, you end up with a nice label and a funny "Add another Gbl displaynote sm" link:

Screenshot 2023-03-17 at 11 13 25 AM

I know you can add these field strings into a I18n file, but I specifically don't want to have to do that. I'm pulling all of my form fields, field types, labels, html_attributes, etc. from an ActiveRecord model:
https://github.com/geobtaa/geomg/blob/feature/attribute-model/db/schema.rb#L238-L264

Hoping to find time this week or next for a little PR to support this...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions