mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #531] ExtraAccountForm Documentation #505
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#505
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jag3773 on GitHub (Mar 21, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/531
Originally assigned to: @tonioo on GitHub.
Hello,
I'm attempting to write a plugin to add another tab to the Account Form (the one that has "General" and "Mail"). I don't think any of the existing plugins do this and there is not very detailed documentation on how to accomplish it. I'm not looking to add admin or user parameters (those docs are great!), but rather a form tab on each user's account page.
I do see the ExtraAccountForm and CheckExtraAccountForm decorators, but I must be missing something in my code as I can't get my tab to show up.
Could you provide a minimal viable sketch of the required components to add a tab to the Account Form please?
@jag3773 commented on GitHub (Mar 21, 2014):
To describe my particular problem a bit further, I think something in my form definition is wrong. I am seeing the following traceback, if it helps at all:
Note that radius is the name of the plugin I'm developing.
For my form, I'm subclassing ModelForm, like so:
class RadiusForm(forms.ModelForm):I'm using the following decorators:
@tonioo commented on GitHub (Mar 22, 2014):
Hi,
actually some extensions already define such tabs. Take a look a the "limits" extension for example, it defines a new tab to setup domain administrator limits.
In your particular case, it seems you forgot to listen to the FillAccountInstances event (http://modoboa.readthedocs.org/en/latest/extending/events.html#fillaccountinstances).
And you're right about the documentation, I should present the way to add tabs in a cleaner way.
@tonioo commented on GitHub (Apr 11, 2014):
Hi,
did you solve your issue?
@jag3773 commented on GitHub (Apr 11, 2014):
Yes, sorry I should have verified that here. Adding the hook
for FillAccountInstances is exactly what I needed.
Thank you!
Thank you,
Jesse Griffin
www.ekfocus.com
On Fri, Apr 11, 2014 at 4:51 AM, Antoine Nguyen notifications@github.comwrote: