mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Add field to ui for user enabled flag
This commit is contained in:
parent
20d6fbae48
commit
78f4fa7db9
@ -72,6 +72,7 @@ class UserForm(flask_wtf.FlaskForm):
|
||||
enable_imap = fields.BooleanField(_('Allow IMAP access'), default=True)
|
||||
enable_pop = fields.BooleanField(_('Allow POP3 access'), default=True)
|
||||
comment = fields.StringField(_('Comment'))
|
||||
enabled = fields.BooleanField(_('Enabled'), default=True)
|
||||
submit = fields.SubmitField(_('Save'))
|
||||
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
{{ macros.form_field(form.localpart, append='<span class="input-group-addon">@'+domain.name+'</span>') }}
|
||||
{{ macros.form_fields((form.pw, form.pw2)) }}
|
||||
{{ macros.form_field(form.comment) }}
|
||||
{{ macros.form_field(form.enabled) }}
|
||||
{% endcall %}
|
||||
|
||||
{% call macros.box(_("Features and quotas"), theme="success") %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user