kithe icon indicating copy to clipboard operation
kithe copied to clipboard

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

Open ewlarson opened this issue 1 year ago • 9 comments

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...

ewlarson avatar Mar 17 '23 16:03 ewlarson