Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mutalyzer
mutalyzer2
Commits
999608e0
Commit
999608e0
authored
Nov 08, 2015
by
Jeroen F.J. Laros
Browse files
Made e-mail address optional in batch checker website interface.
parent
03cb9bb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
mutalyzer/website/templates/batch-jobs.html
View file @
999608e0
...
...
@@ -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"
>
...
...
mutalyzer/website/views.py
View file @
999608e0
...
...
@@ -907,7 +907,7 @@ def batch_jobs_submit():
errors
=
[]
if
not
email
:
e
rrors
.
append
(
'Please provide an email address.'
)
e
mail
=
'{}@webservice'
.
format
(
request
.
remote_addr
)
if
job_type
not
in
BATCH_JOB_TYPES
:
errors
.
append
(
'Invalid batch job type.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment