SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6c393d6e authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Tweaks

parent 5d222fd6
No related branches found
No related tags found
No related merge requests found
......@@ -166,11 +166,24 @@
{% if recommendation.alternativerecommendation_set.all|length > 0 %}
<h3>Alternative recommendations offered during voting by Fellows who disagreed:</h3>
<ul>
<table class="table table-bordered">
<thead>
<tr>
<th class="py-1">Fellow</th>
<th class="py-1">For Journal</th>
<th class="py-1">Alternative Recommendation</th>
</tr>
</thead>
<tbody>
{% for altrec in recommendation.alternativerecommendation_set.all %}
<li>{{ altrec.fellow }}: for Journal <em>{{ altrec.for_journal }}</em>: <strong>{{ altrec.get_recommendation_display }}</strong></li>
<tr>
<td>{{ altrec.fellow }}</td>
<td>{{ altrec.for_journal }}</td>
<td>{{ altrec.get_recommendation_display }}</td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
{% endif %}
<h3 class="card-title">Remarks:</h3>
......
......@@ -13,12 +13,13 @@
{% block footer_script %}
<script type="text/javascript" nonce="{{ request.csp_nonce }}">
$(document).ready(function(){
$("#id_proceedings, #id_submission_type").parents('.form-group').hide()
$('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_DEPREC }}":
case "{{ id_SciPostPhys }}":
$("#id_submission_type").parents('.form-group').show()
break;
case "{{ id_SciPostPhysProc }}":
......
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