Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to add expand/collapse method to has_many inputs in form #8114

Closed
IshmeetSingh06 opened this issue Oct 21, 2023 · 0 comments
Closed

Comments

@IshmeetSingh06
Copy link

I have a has_many association for my model here is my form:

f.inputs "Fruits", class: "input-group-box", id: "fruits" do
          f.has_many :apples, allow_destroy: true, heading: "Apples" do |apple|
            apple.input :creator_type, as: :hidden, input_html: { value: "AdminUser" }
            apple.input :status, collection: Apple.statuses.keys
          end
end

now the problem if i go into the edit form and there are lots and lots of entires i have to scroll down a lot, so i was wondering is there a way to add a expand and collapse option to this like an accordion in react?

Apple-name Expand

@activeadmin activeadmin locked and limited conversation to collaborators Oct 21, 2023
@javierjulio javierjulio converted this issue into discussion #8115 Oct 21, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant