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

Give Repository Item a sectioned, collapsible form. #131

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

rosiel
Copy link
Contributor

@rosiel rosiel commented Feb 26, 2024

Because the default form is so long and it's hard to find anything, I have proposed this "collapsible form". This is a new layout for the default Repository Item form, and it puts all the fields (except Model, which is required, and at the top) into collapsible "Details" sections, and all of them (except Title And Contributors) are collapsed by default. The result is a smaller form where it is easier to get to the bottom, and hopefully easier too to find individual elements.

This has gone through the Metadata Interest Group for revision and feedback. Some, unfortunately not implemented, include:

  • can we get buttons to "Expand All" / "Collapse All" ? (No, can't find any way to do this)
  • can we style each field label to look the same? Currently they're only shaded/big/prominent if the field is multivalued. (Can't figure out a good way to implement CSS without our own fork of the theme).

Here are some screenshots of the form.

Screenshot 2024-02-26 at 4 07 44 PM Screenshot 2024-02-26 at 4 07 53 PM

To test, spin up a starter site using this starter site fork/branch as your source. If you create or edit a repository item, you should see this form, and get no errors.

@ajstanley ajstanley merged commit d07119a into Islandora-Devops:main Feb 28, 2024
2 checks passed
@ajstanley
Copy link
Contributor

I loaded this with no issues. It's clean and manageable.

@rosiel rosiel deleted the collapsible-form branch March 1, 2024 15:27
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.

2 participants