|
|
@ -13,7 +13,7 @@
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
|
|
|
|
|
|
|
{% call macros.card(_("General")) %}
|
|
|
|
{% call macros.card(_("General")) %}
|
|
|
|
{{ macros.form_field(form.localpart, append='<span class="input-group-addon">@'+domain.name+'</span>') }}
|
|
|
|
{{ macros.form_field(form.localpart, append='<span class="input-group-text">@'+domain.name+'</span>') }}
|
|
|
|
{{ macros.form_fields((form.pw, form.pw2)) }}
|
|
|
|
{{ macros.form_fields((form.pw, form.pw2)) }}
|
|
|
|
{{ macros.form_field(form.displayed_name) }}
|
|
|
|
{{ macros.form_field(form.displayed_name) }}
|
|
|
|
{{ macros.form_field(form.comment) }}
|
|
|
|
{{ macros.form_field(form.comment) }}
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% call macros.card(_("Features and quotas"), theme="success") %}
|
|
|
|
{% call macros.card(_("Features and quotas"), theme="success") %}
|
|
|
|
{{ macros.form_field(form.quota_bytes, step=1000000000, max=(max_quota_bytes or domain.max_quota_bytes or 50000000000),
|
|
|
|
{{ macros.form_field(form.quota_bytes, step=1000000000, max=(max_quota_bytes or domain.max_quota_bytes or 50000000000),
|
|
|
|
prepend='<span class="input-group-addon"><span id="quota">'+((form.quota_bytes.data//1000000000).__str__() if form.quota_bytes.data else '∞')+'</span> GiB</span>',
|
|
|
|
prepend='<span class="input-group-text"><span id="quota">'+((form.quota_bytes.data//1000000000).__str__() if form.quota_bytes.data else '∞')+'</span> GiB</span>',
|
|
|
|
oninput='$("#quota").text(this.value == 0 ? "∞" : this.value/1000000000);') }}
|
|
|
|
oninput='$("#quota").text(this.value == 0 ? "∞" : this.value/1000000000);') }}
|
|
|
|
{{ macros.form_field(form.enable_imap) }}
|
|
|
|
{{ macros.form_field(form.enable_imap) }}
|
|
|
|
{{ macros.form_field(form.enable_pop) }}
|
|
|
|
{{ macros.form_field(form.enable_pop) }}
|
|
|
|