-
Notifications
You must be signed in to change notification settings - Fork 190
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
feat(nimbus): add overview form to new nimbus ui #11926
Conversation
|
e98dc37
to
3232fcc
Compare
Becuase * We need to add the overview to the new Nimbus UI This commit * Adds the overview form * Adds documentation link add/remove functionality with HTMX fixes #10841
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it locally, works smoothly, thanks @jaredlockhart 🎉
class RenderResponseMixin: | ||
def form_valid(self, form): | ||
super().form_valid(form) | ||
return self.render_to_response(self.get_context_data(form=form)) | ||
|
||
|
||
class RenderParentResponseMixin: | ||
def form_valid(self, form): | ||
super().form_valid(form) | ||
form = super().form_class(instance=self.object) | ||
return self.render_to_response(self.get_context_data(form=form)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Liked this mixin idea
<a target="_blank" | ||
href="https://mana.mozilla.org/wiki/display/FIREFOX/Pref-Flip+and+Add-On+Experiments#PrefFlipandAddOnExperiments-Isthisstudypartnerrelated?riskPARTNER"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for links like these, in my current work I am making the constant dict and will use it here, I can replace all that later, just wanted to let you know
Becuase
This commit
fixes #10841