30 lines
809 B
HTML
30 lines
809 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Create alias
|
|
{% 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.destination, id='destination') }}
|
|
{{ macros.form_field(form.comment) }}
|
|
{{ macros.form_field(form.submit) }}
|
|
<script>
|
|
$("#destination").tagsinput({
|
|
confirmKeys: [9, 13, 32],
|
|
tagClass: 'label label-primary large',
|
|
typeahead: {
|
|
afterSelect: function(val) { this.$element.val(""); },
|
|
source: {{ current_user.get_managed_addresses()|map('string')|list|tojson }}
|
|
}
|
|
});
|
|
</script>
|
|
</form>
|
|
{% endblock %}
|