Added signing ability to submission details

This commit is contained in:
Landon Wark
2024-04-10 11:01:08 -05:00
parent 3889498054
commit dc5549486f
5 changed files with 28 additions and 17 deletions

View File

@@ -116,6 +116,12 @@
<img height="300px" width="650px" src="data:image/jpeg;base64,{{ sub['export_map'] | safe }}">
{% endif %}
{% endblock %}
{% if signing_permission %}
<button type="button" id="sign_btn">Sign Off</button>
{% endif %}
<br>
<br>
<br>
</body>
<script>
var backend;
@@ -127,5 +133,8 @@
backend.sample_details("{{ sample['Submitter ID'] }}");
});
{% endfor %}
document.getElementById("sign_btn").addEventListener("click", function(){
backend.sign_off("{{ sub['Plate Number'] }}");
})
</script>
</html>