Skip to content
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

allow grouping fields (new, edit and show) #2422

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

patriciomacadden
Copy link
Contributor

Hi! I've been using administrate for a couple of years and I really like the approach and enjoy using it. Thanks :)

A couple of times I needed to group fields when having models with a large number of fields and the lack of an official way made me do nasty things lol.

This PR adds the ability of grouping form attributes and show page attributes:

  • it's backward compatible
  • i18n ready
  • has_one field allows grouping too

Let me know what you think!

@nickcharlton
Copy link
Member

Nice! Thanks for your contribution @patriciomacadden.

Could you rebase (I've merged in a bunch of things in today) and perhaps add a screenshot to show what it looks like?

@patriciomacadden
Copy link
Contributor Author

Hey @nickcharlton absolutely. Just rebased.

A couple screenshots:

image

image

I tried to be consistent, but happy to do any changes.

@markevich
Copy link

Hi! Any chance to merge it?

@nickcharlton
Copy link
Member

Brilliant, thanks!

This provides an official way to go about grouping form fields when
there's several which are related (for example an address).

This is backwards compatible, works with i18n and also supports the
`has_one` field.
@nickcharlton nickcharlton merged commit 6e03eb5 into thoughtbot:main Jan 15, 2024
4 checks passed
CharlotteBory added a commit to CharlotteBory/administrate that referenced this pull request Jan 17, 2024
CharlotteBory added a commit to CharlotteBory/administrate that referenced this pull request Jan 17, 2024
…ping

Revert "Allow grouping fields (new, edit and show) (thoughtbot#2422)"
nickcharlton pushed a commit to trevorrjohn/administrate-field-nested_has_many that referenced this pull request Jan 25, 2024
In Administrate v0.20.0, support was added for grouping fields but this
was not compatible with this field type.

thoughtbot/administrate#2422

Fixes nickcharlton#65
trevorrjohn added a commit to trevorrjohn/administrate-field-nested_has_many that referenced this pull request Jan 26, 2024
In Administrate v0.20.0, support was added for grouping fields but this
was not compatible with this field type.

thoughtbot/administrate#2422

Fixes nickcharlton#65
trevorrjohn added a commit to trevorrjohn/administrate-field-nested_has_many that referenced this pull request Feb 5, 2024
In Administrate v0.20.0, support was added for grouping fields but this
was not compatible with this field type.

thoughtbot/administrate#2422

Fixes nickcharlton#65
trevorrjohn added a commit to trevorrjohn/administrate-field-nested_has_many that referenced this pull request Feb 8, 2024
In Administrate v0.20.0, support was added for grouping fields but this
was not compatible with this field type.

thoughtbot/administrate#2422

Fixes nickcharlton#65
nickcharlton pushed a commit to nickcharlton/administrate-field-nested_has_many that referenced this pull request Feb 14, 2024
In Administrate v0.20.0, support was added for grouping fields but this
was not compatible with this field type.

thoughtbot/administrate#2422

Fixes #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants