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 sections to be styled as a Grid component instead of a Section #336

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

holmesadam
Copy link

The aim of this pull request is to allow forms to display a Grid instead of a Section. In some cases where forms are embedded, the sections are not aesthetically pleasing. An option has been added to the Section Visual Options

image

When using a Grid, some section options are removed:

image

Form output using Section and NOT Grid (the default):

image

Form output with Grid:

image

Copy link

what-the-diff bot commented Dec 13, 2024

PR Summary

  • Added "Grid" Option to Sections
    A new feature was added that allows sections to be displayed as a grid. This was achieved by including a new boolean field named "grid" in the sections table model.

  • Updated Language Files
    The language files for German, English, Spanish, and French have been updated to include translations for "Use Grid" and "Use a Grid instead of a Section". This will allow users of these languages to understand the usage and benefits of the new grid feature.

  • Updated Trait to Support Grids
    The existing Designer trait has been altered to support the rendering of a grid, which depends on the new "grid" property of the sections.

  • Adjusted Form Schema
    The form schema in the Schemata has been updated to conditionally show the grid toggle, based on the 'show-as' option. This means the grid option will be displayed only when appropriate, enhancing the user experience.

  • Test Coverage for Grid Property
    Several tests have been updated to handle the new grid property. This helps to ensure that the new feature works as intended and maintains consistency with the rest of the system.

  • Test Migration File Modification
    The test migration file was altered to accommodate the creation of the new grid column in the sections table. This ensures our testing environment accurately reflects the new structure of our database.

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.

1 participant