Add conditional rendering for save annotations button based on edit permissions
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
<button id="save-annotations" class="btn btn-sm btn-primary">Save Annotations</button>
|
|
||||||
{% if can_edit %}
|
{% if can_edit %}
|
||||||
|
<button id="save-annotations" class="btn btn-sm btn-primary">Save Annotations</button>
|
||||||
<button id="delete-annotations" class="btn btn-sm btn-outline-danger">Delete Annotations</button>
|
<button id="delete-annotations" class="btn btn-sm btn-outline-danger">Delete Annotations</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user