Skip to content

Attribute form size nestedforms css hide#569

Closed
rsrg-zwiama wants to merge 3 commits intoqgis:masterfrom
rsrg-zwiama:attribute-form-size-nestedforms-css-hide
Closed

Attribute form size nestedforms css hide#569
rsrg-zwiama wants to merge 3 commits intoqgis:masterfrom
rsrg-zwiama:attribute-form-size-nestedforms-css-hide

Conversation

@rsrg-zwiama
Copy link
Contributor

alternative solution to #519

@rsrg-zwiama
Copy link
Contributor Author

@manisandro
I tried your idea with hiding the parent form via css. I tested this approach with a dataset of a parent features and two nested child features. It is possible to create new features with child and child's child feature without saving parent or first child before creating 2nd child. Also edits are cached and parent can be saved after the child is saved and vice versa.. I tested wich child features with and without geometry. And also with a nested child that has a not nested relation.
The editing window resizes to the content of child and parent features. For small screens the form switches to scroll.
image

}
return (
<div className="AttributeForm">
<div className={`AttributeForm ${this.state.childEdit ? "has-child" : ""}`}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use more specific class names, i.e. attrib-form-has-child, and also belo attrib-form-parent-form?

@manisandro
Copy link
Member

Thanks! Merged as 4eba50a

@manisandro manisandro closed this Feb 20, 2026
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

Comments