diff --git a/app/dashboard/templates/dashboard/custom_alias.html b/app/dashboard/templates/dashboard/custom_alias.html index d4bae6fb..984cdd0e 100644 --- a/app/dashboard/templates/dashboard/custom_alias.html +++ b/app/dashboard/templates/dashboard/custom_alias.html @@ -48,8 +48,20 @@ -
- +
+
+ +
+
+ + +
+
+ +
diff --git a/app/dashboard/views/custom_alias.py b/app/dashboard/views/custom_alias.py index f1b5d7f2..6b7cb0d2 100644 --- a/app/dashboard/views/custom_alias.py +++ b/app/dashboard/views/custom_alias.py @@ -46,6 +46,7 @@ def custom_alias(): if request.method == "POST": alias_prefix = request.form.get("prefix") alias_suffix = request.form.get("suffix") + alias_note = request.form.get("note") if verify_prefix_suffix( current_user, alias_prefix, alias_suffix, user_custom_domains @@ -61,7 +62,9 @@ def custom_alias(): "warning", ) else: - gen_email = GenEmail.create(user_id=current_user.id, email=full_alias) + gen_email = GenEmail.create( + user_id=current_user.id, email=full_alias, note=alias_note + ) # get the custom_domain_id if alias is created with a custom domain alias_domain = get_email_domain_part(full_alias)