Skip to content
Snippets Groups Projects
Commit 999608e0 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros
Browse files

Made e-mail address optional in batch checker website interface.

parent 03cb9bb3
No related branches found
No related tags found
No related merge requests found
...@@ -37,10 +37,11 @@ ...@@ -37,10 +37,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="email">Email address</label> <label for="email">Email address (optional)</label>
<input name="email" id="email" type="email" class="form-control with-mailcheck" <input name="email" id="email" type="email"
class="form-control with-mailcheck"
placeholder="Email address (notification will be sent here)" placeholder="Email address (notification will be sent here)"
required value="{{ email }}"> value="{{ email }}">
</div> </div>
<div class="form-group"> <div class="form-group">
......
...@@ -907,7 +907,7 @@ def batch_jobs_submit(): ...@@ -907,7 +907,7 @@ def batch_jobs_submit():
errors = [] errors = []
if not email: if not email:
errors.append('Please provide an email address.') email = '{}@webservice'.format(request.remote_addr)
if job_type not in BATCH_JOB_TYPES: if job_type not in BATCH_JOB_TYPES:
errors.append('Invalid batch job type.') errors.append('Invalid batch job type.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment