Skip to content

Commit

Permalink
Merge pull request #106 from wasade/tooltip-on-sample-remove
Browse files Browse the repository at this point in the history
Tool tip on remove sample
  • Loading branch information
wasade authored Mar 12, 2021
2 parents 1d5f07a + 45c89bb commit 7e3a241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microsetta_interface/templates/source.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@
{% endif %} <!-- end of if sample.ffq -->
</div>
{% endif %} <!-- end of if is_human -->
<div class="col-sm">
<div class="col-sm {% if sample.sample_remove_locked and not admin_mode %}tooltipper{% endif %}" data-title="This sample has been received and cannot be removed.">
<form name="remove_{{ sample.sample_id }}_form" method="post" action="/accounts/{{ account_id }}/sources/{{ source_id }}/samples/{{ sample.sample_id }}/remove" onsubmit="return verifyDissociateSample('{{sample.sample_id}}');">
<button type="submit" class="btn btn-danger" {% if sample.sample_remove_locked and not admin_mode %}disabled{% endif %}>Remove</button>
<button type="submit" class="btn btn-danger" {% if sample.sample_remove_locked and not admin_mode %}style="pointer-events: none;" disabled{% endif %}>Remove</button>
</form>
</div>
</div>
Expand Down

0 comments on commit 7e3a241

Please sign in to comment.