Skip to content

Commit

Permalink
TN-3318 remove patient list export button in patient list for
Browse files Browse the repository at this point in the history
researchers
  • Loading branch information
Amy Chen committed Sep 25, 2024
1 parent 4825be9 commit 2dd3af1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion portal/templates/admin/patients_by_org.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ <h4 class="tnth-headline">{{_("Patient List")}}</h4>
{{deletedUsersFilter()}}
{% endif %}
</div>
{% set isResearcher = user.has_role(ROLE.RESEARCHER.value) and not(user.has_role(ROLE.ADMIN.value)) %}
<table id="adminTable"
data-table-id="adminTable"
class="tnth-admin-table"
Expand All @@ -48,7 +49,7 @@ <h4 class="tnth-headline">{{_("Patient List")}}</h4>
data-unique-id="id"
data-id-field="id"
data-filter-control="true"
data-show-export="true"
{%- if not isResearcher -%} data-show-export="true" {%- endif -%}
data-export-data-type="all"
>
{{testUsersCheckbox(postUrl=url_for('patients.patients_root'))}}
Expand Down
3 changes: 2 additions & 1 deletion portal/templates/admin/patients_substudy.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h2>{{list_title}}</h2>
</form>
</div>
</div>
{% set isResearcher = user.has_role(ROLE.RESEARCHER.value) and not(user.has_role(ROLE.ADMIN.value)) %}
<table id="adminTable"
data-table-id="adminTable"
class="tnth-admin-table"
Expand All @@ -49,7 +50,7 @@ <h2>{{list_title}}</h2>
data-unique-id="id"
data-id-field="id"
data-filter-control="true"
data-show-export="true"
{%- if not isResearcher -%} data-show-export="true" {%- endif -%}
data-export-data-type="all"
>
{{testUsersCheckbox(postUrl=url_for('patients.patients_substudy'))}}
Expand Down

0 comments on commit 2dd3af1

Please sign in to comment.