Skip to content

Added form row component #18125

Merged
snipe merged 6 commits intodevelopfrom
form-row-again
Oct 29, 2025
Merged

Added form row component #18125
snipe merged 6 commits intodevelopfrom
form-row-again

Conversation

@snipe
Copy link
Copy Markdown
Member

@snipe snipe commented Oct 29, 2025

This is a much smaller swing at the very large form row component I took earlier, handling only the manufacturers edit for now.

The form row component itself is a bit messy, since it's got two or more elements nested within it which we have to potentially pass things to, the label component and the input itself.

I decided to back off the complex checkbox groups and radio groups for now, because whew that gets messy.

This also fixes a long-running JS visual glitch that has made me bananas for a while, where if you have an input group (the bit with the icon on the end or the front of the input box, it would break the layout on the JS error.

The overall goal here is to take the HTML/bootstrap code away from the the functionality of the forms, fixing some common issues where form fields are weird lengths on different forms. This should add consistency to the layouts, and make it much easier to upgrade bootstrap (and/or switch to some other CSS framework) in the future.

Obviously, this will eventually touch just about form element we have, once I build in other ones, and will likely take the place of a lot of our partials over time. But this is at least a decent start.

Before

FireShot Capture 069 - Update Manufacturer __ Snipe-IT Demo - snipe-it test

After

Screen.Recording.2025-10-29.at.4.21.27.PM.mov

@snipe snipe merged commit 6dbb836 into develop Oct 29, 2025
8 checks passed
@snipe snipe deleted the form-row-again branch October 29, 2025 16:33
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