Skip to content
Snippets Groups Projects
Commit d578d306 authored by Chris Lawton's avatar Chris Lawton Committed by Dan Braghis
Browse files

functionality to show/hide reviewers

parent a7803dd0
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<h5>Reviews &amp; assignees</h5> <h5>Reviews &amp; assignees</h5>
{% include 'funds/includes/review_table.html' %} {% include 'funds/includes/review_table.html' %}
<a class="link link--bold link--underlined link--toggle-reviewers js-toggle-reviewers" href="#">all assigned advisors</a>
<div class="wrapper wrapper--button-container"> <div class="wrapper wrapper--button-container">
{% include 'review/includes/review_button.html' with submission=object %} {% include 'review/includes/review_button.html' with submission=object %}
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
{% if object.stage.has_external_review %} {% if object.stage.has_external_review %}
<tr class="tr tr--subchild"><td colspan="4"><hr></td></tr> <tr class="tr tr--subchild"><td colspan="4"><hr></td></tr>
{% include 'funds/includes/review_table_row.html' with reviews=reviewer_reviews %} {% include 'funds/includes/review_table_row.html' with reviews=reviewer_reviews class="hidden" %}
{# Add logic for showing missing reviews #} {# Add logic for showing missing reviews #}
{% include 'funds/includes/review_table_row.html' with reviews=object.reviewers_not_reviewed missing=True %} {% include 'funds/includes/review_table_row.html' with reviews=object.reviewers_not_reviewed missing=True class="hidden" %}
{% endif %} {% endif %}
</table> </table>
{% for review in reviews %} {% for review in reviews %}
<tr class="tr--subchild {% if missing %}no-response{% endif %}"> <tr class="tr--subchild {{ class }} {% if missing %}no-response{% endif %}">
{% if missing %} {% if missing %}
<td colspan="2">{{ review }}</td> <td colspan="2">{{ review }}</td>
<td>-</td> <td>-</td>
......
...@@ -74,6 +74,7 @@ ol { ...@@ -74,6 +74,7 @@ ol {
transition: opacity, z-index, $transition; transition: opacity, z-index, $transition;
} }
.hidden,
.is-hidden, .is-hidden,
%is-hidden { %is-hidden {
display: none; display: none;
......
...@@ -187,4 +187,9 @@ ...@@ -187,4 +187,9 @@
} }
} }
} }
&--toggle-reviewers {
display: block;
margin: 0 10px 30px;
}
} }
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