Skip to content

Commit

Permalink
Hides the add/edit button for TB contact deails for readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed May 25, 2023
1 parent d9548ad commit 4c8772f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/tb/templates/panels/tb/contact_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="panel-heading">
<h3>
<i class="{{ models.ContactDetails.get_icon }}"></i> {{ models.ContactDetails.get_display_name }}
{% if not request.user.profile.readonly %}
<i class="fa fa-pencil edit pull-right pointer" ng-click="patient.recordEditor.editItem('{{ models.ContactDetails.get_api_name }}', patient['{{ models.ContactDetails.get_api_name }}'][0])"></i>
{% endif %}
</h3>
</div>
<ul ng-show="patient.{{ models.ContactDetails.get_api_name }}[0].details.length" class="list-group">
Expand Down

0 comments on commit 4c8772f

Please sign in to comment.