-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Create a belongs_to
record from the associated record screen
#1556
Comments
This issue has been marked as stale because there was no activity for the past 15 days. |
Closing this because there was no activity for the past 15 days. Feel free to reopen if new information pops up ✌️ |
Hey @adrianthedev, did a way to do this ever make it into a release of Avo? Would love to use this feature. Thanks! |
Nope. Not yet. I' love to get some time to work on it. We'd also merge a PR if we had one. Shouldn't be suuuuper dificult. |
Challenge accepted! |
🔥🔥🔥 My approach would be:
Feel free to build it otherwise if you want that, and let me know if you need help navigating the codebase. ... and thank you! |
@adrianthedev took a stab at this here. I went about this in mostly the way you recommended with some minor variations. Let me know your feedback! |
I have this on the radar @sdcoffey. We're a bit busy with the public beta launch, so we're probably going to have a look later next week. Thank you for doing the grind like this ❤️ |
Sounds great! Thanks @adrianthedev |
This issue has been marked as stale because there was no activity for the past 15 days. |
Closing this because there was no activity for the past 15 days. Feel free to reopen if new information pops up ✌️ |
Feature
In a
Post
has_many
Comment
s example, when on a Comment new page, next to the posts dropdown you'd have a plus icon which when clicked it will open a modal with the post form ready to create a new post.From here
Aproach
The way I would go about it is like this:
via_
attributebase/new.html.erb
. it will use a new view that is wrapped inside a modal. it will also be wrapped in a turbo-frame element similar to how actions workAvo::Views::ResourceEditComponent
in a large modal window.belongs_to
dropdown field. we can't do a full page reload because the user might have pre-filled other fields and they won't appreciate loosing those valuesOther considerations
Screenshots
A rough sketch of how envision it to look
The text was updated successfully, but these errors were encountered: