Commit 80378f28 authored by f00wl's avatar f00wl 🦉
Browse files

add form field for alias delegation API

parent abf7091b
Pipeline #370 passed with stage
in 28 minutes and 36 seconds
......@@ -58,6 +58,7 @@ class DomainForm(flask_wtf.FlaskForm):
max_quota_bytes = fields_.IntegerSliderField(_('Maximum user quota'), default=0)
signup_enabled = fields.BooleanField(_('Enable sign-up'), default=False)
comment = fields.StringField(_('Comment'))
alias_delegation_api = fields.StringField(_('Alias delegation API'))
submit = fields.SubmitField(_('Save'))
......
......@@ -14,6 +14,7 @@
prepend='<span class="input-group-addon"><span id="quota">'+((form.max_quota_bytes.data//1000000000).__str__() if form.max_quota_bytes.data else '∞')+'</span> GiB</span>',
oninput='$("#quota").text(this.value == 0 ? "∞" : this.value/1000000000);') }}
{{ macros.form_field(form.signup_enabled) }}
{{ macros.form_field(form.alias_delegation_api) }}
{{ macros.form_field(form.comment) }}
{{ macros.form_field(form.submit) }}
</form>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment