diff --git a/mutalyzer/website/templates/batch-jobs.html b/mutalyzer/website/templates/batch-jobs.html index 05b36fc364e4ad6b36e002f4e890e59428989b84..4877c5cc61ec4f558c51ec6541ebf8fe32b3aecc 100644 --- a/mutalyzer/website/templates/batch-jobs.html +++ b/mutalyzer/website/templates/batch-jobs.html @@ -37,10 +37,11 @@ </div> <div class="form-group"> - <label for="email">Email address</label> - <input name="email" id="email" type="email" class="form-control with-mailcheck" + <label for="email">Email address (optional)</label> + <input name="email" id="email" type="email" + class="form-control with-mailcheck" placeholder="Email address (notification will be sent here)" - required value="{{ email }}"> + value="{{ email }}"> </div> <div class="form-group"> diff --git a/mutalyzer/website/views.py b/mutalyzer/website/views.py index 9fb3e4a39b11b882f20b15c89c3d96d2b0bbbfe5..1786c20142a2cfd846acddba5aa0397befe523c3 100644 --- a/mutalyzer/website/views.py +++ b/mutalyzer/website/views.py @@ -907,7 +907,7 @@ def batch_jobs_submit(): errors = [] if not email: - errors.append('Please provide an email address.') + email = '{}@webservice'.format(request.remote_addr) if job_type not in BATCH_JOB_TYPES: errors.append('Invalid batch job type.')