diff --git a/templates/ContentGenerator/Feedback.html.ep b/templates/ContentGenerator/Feedback.html.ep index bfbd93e713..15bf3d8dcf 100644 --- a/templates/ContentGenerator/Feedback.html.ep +++ b/templates/ContentGenerator/Feedback.html.ep @@ -32,8 +32,16 @@
<%= label_for 'from', class => 'col-form-label col-auto', begin =%><%= maketext('From:') %><% end =%>
- <%= text_field from => $user_email_address, class => 'form-control', size => 40, id => 'from', - $user_email_address ? (disabled => undef, readonly => undef) : (required => undef) =%> + <%= email_field from => $user_email_address, class => 'form-control', size => 40, id => 'from', + $user_email_address + ? (disabled => undef, readonly => undef) + : ( + required => undef, + placeholder => 'Email address', + autocorrect => 'off', + autocapitalize => 'off', + pattern => '^[a-zA-Z0-9.!#$%&\'*+\\/=?^_`~\\-]+@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9.\\-]+$' + ) =%>
% if (stash 'send_error') {