Skip to content

Commit

Permalink
added rob help text to page (#843)
Browse files Browse the repository at this point in the history
* added rob help text to page

* added rob_name header

---------

Co-authored-by: Andy Shapiro <shapiromatron@gmail.com>
  • Loading branch information
dannypeterson and shapiromatron authored Jul 11, 2023
1 parent 3063e1c commit 6c6a772
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions hawc/apps/riskofbias/templates/riskofbias/rob_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@
{% load bs4 %}

{% block content %}
<h2>{{object}}&nbsp;{% if object.final %}[final]{% else %}[individual review]{% endif %}</h2>
<div class="d-flex justify-content-between">
<h2>{{object}}&nbsp;{% if object.final %}[final]{% else %}[individual review]{% endif %}</h2>
<div class="dropdown btn-group d-inline-block">
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Actions</a>
<div class="dropdown-menu">
<a class="dropdown-item" data-toggle="collapse" href="#robInstructions" role="button" aria-expanded="false" aria-controls="robInstructions">Toggle instructions</a>
</div>
</div>
</div>
<div class="collapse" id="robInstructions">{{assessment.rob_settings.help_text|safe}}</div>
{% if not object.study.get_study_types %}
{% alert warning %}
This study currently has no type(s) selected. If you'd like to perform study evaluation for this study, you'll need to update the study and select at least one type (e.g., bioassay, epidemiology, etc.).
{% endalert %}
{% endif %}
{% if object.final and not object.study_reviews_complete %}
{% elif object.final and not object.study_reviews_complete %}
{% alert danger %}
All other {{assessment.get_rob_name_display|lower}} reviews for this study must be complete
in order to complete the final review.
Expand Down

0 comments on commit 6c6a772

Please sign in to comment.