Copy email address to clipboard
When creating or editing a mail account I sometimes would like to get the email address in my copy/paste buffer. The patch below adds that in a quick and dirty way.
Is there interest for this?
If so then we can add translation and a better icon...
diff --git a/interface/web/mail/templates/mail_user_mailbox_edit.htm b/interface/web/mail/templates/mail_user_mailbox_edit.htm
index 170ab15db..93ff6e04d 100644
--- a/interface/web/mail/templates/mail_user_mailbox_edit.htm
+++ b/interface/web/mail/templates/mail_user_mailbox_edit.htm
@@ -12,6 +12,9 @@
<select name="email_domain" id="email_domain" class="form-control" style="height:50px;min-width:170px;">{tmpl_var name='email_domain'}</select>
</div>
</div>
+ <a class="btn btn-default formbutton-narrow" href="javascript: navigator.clipboard.writeText(document.getElementById('email_local_part').value + '@' + document.getElementById('email_domain').value);" title="Copy to clipboard">
+ <span class="icon icon-bulb"></span>
+ </a>
</div>
</div>
<tmpl_if name="enable_custom_login"><div class="form-group">