Move the admin interface back to a blueprint
This commit is contained in:
26
admin/mailu/ui/templates/alias/create.html
Normal file
26
admin/mailu/ui/templates/alias/create.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Create alias{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
{{ domain }}
|
||||
{% endblock %}
|
||||
|
||||
{% block box_content %}
|
||||
<form class="form" method="post" role="form">
|
||||
{{ form.hidden_tag() }}
|
||||
{{ macros.form_field(form.localpart, append='<span class="input-group-addon">@'+domain.name+'</span>') }}
|
||||
{{ macros.form_field(form.wildcard) }}
|
||||
{{ macros.form_field(form.destination, id='destination') }}
|
||||
{{ macros.form_field(form.comment) }}
|
||||
{{ macros.form_field(form.submit) }}
|
||||
<script>
|
||||
$("#destination").select2({
|
||||
tags: true,
|
||||
tokenSeparators: [',', ' ']
|
||||
})
|
||||
</script>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user