SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
119
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
0411c571
Commit
0411c571
authored
5 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Debug submission form
parent
592be1b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipost/static/scipost/submission-form.js
+0
-15
0 additions, 15 deletions
scipost/static/scipost/submission-form.js
submissions/templates/submissions/submission_form.html
+17
-1
17 additions, 1 deletion
submissions/templates/submissions/submission_form.html
with
17 additions
and
16 deletions
scipost/static/scipost/submission-form.js
deleted
100644 → 0
+
0
−
15
View file @
592be1b4
$
(
document
).
ready
(
function
(){
$
(
'
select#id_submitted_to
'
).
on
(
'
change
'
,
function
(){
var
selection
=
$
(
this
).
val
();
$
(
"
#id_proceedings, #id_submission_type
"
).
parents
(
'
.form-group
'
).
hide
()
switch
(
selection
){
case
"
{{ id_SciPostPhys }}
"
:
$
(
"
#id_submission_type
"
).
parents
(
'
.form-group
'
).
show
()
break
;
case
"
{{ id_SciPostPhysProc }}
"
:
$
(
"
#id_proceedings
"
).
parents
(
'
.form-group
'
).
show
()
break
;
}
}).
trigger
(
'
change
'
);
});
This diff is collapsed.
Click to expand it.
submissions/templates/submissions/submission_form.html
+
17
−
1
View file @
0411c571
...
...
@@ -11,7 +11,23 @@
{% endblock %}
{% block footer_script %}
<script
type=
"text/javascript"
src=
"{% static 'scipost/submission-form.js' %}"
></script>
<script
type=
"text/javascript"
nonce=
"{{ request.csp_nonce }}"
>
$
(
document
).
ready
(
function
(){
$
(
'
select#id_submitted_to
'
).
on
(
'
change
'
,
function
(){
var
selection
=
$
(
this
).
val
();
$
(
"
#id_proceedings, #id_submission_type
"
).
parents
(
'
.form-group
'
).
hide
()
switch
(
selection
){
case
"
{{ id_SciPostPhys }}
"
:
$
(
"
#id_submission_type
"
).
parents
(
'
.form-group
'
).
show
()
break
;
case
"
{{ id_SciPostPhysProc }}
"
:
$
(
"
#id_proceedings
"
).
parents
(
'
.form-group
'
).
show
()
break
;
}
}).
trigger
(
'
change
'
);
});
</script>
{% endblock %}
{% block content %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment