Getting results referencing ProcedureSampleAssociation

This commit is contained in:
lwark
2025-06-09 11:05:10 -05:00
parent db0b65b07b
commit 10d4c9f155
17 changed files with 476 additions and 208 deletions

View File

@@ -23,10 +23,10 @@
{% endif %}
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
var processSelection = document.getElementsByClassName('process');
for(let i = 0; i < processSelection.length; i++) {
@@ -45,6 +45,7 @@
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
}, false);
</script>
{% endblock %}
</script>
</html>

View File

@@ -23,10 +23,10 @@
{% endif %}
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
var equipmentSelection = document.getElementsByClassName('equipment');
for(let i = 0; i < equipmentSelection.length; i++) {
@@ -44,6 +44,7 @@
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
}, false);
</script>
{% endblock %}
</script>
</html>

View File

@@ -23,9 +23,10 @@
{% endif %}
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
document.getElementById("save_btn").addEventListener("click", function(){
var new_lot = document.getElementById('lot').value
var new_exp = document.getElementById('expiry').value
@@ -39,6 +40,7 @@
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
}, false);
</script>
{% endblock %}
</script>
</html>

View File

@@ -77,10 +77,10 @@
<br>
<br>
</body>
<script>
{% block script %}
{{ super() }}
<script>
var sampleSelection = document.getElementsByClassName('sample');
for(let i = 0; i < sampleSelection.length; i++) {
@@ -129,7 +129,7 @@
document.getElementById("sign_btn").addEventListener("click", function(){
backend.sign_off("{{ sub['plate_number'] }}");
});
</script>
{% endblock %}
</script>
</html>

View File

@@ -30,9 +30,10 @@
</form>
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
{% for sample in samples %}
document.getElementById("{{ sample['submission_rank'] }}_id").addEventListener("input", function(){
backend.text_changed("{{ sample['submission_rank'] }}", this.name, this.value);
@@ -42,12 +43,6 @@
backend.enable_sample("{{ sample['submission_rank'] }}", this.checked);
});
{% endif %}
<!-- document.getElementById("{{ sample['submission_rank'] }}_row").addEventListener("input", function(){-->
<!-- backend.text_changed("{{ sample['submission_rank'] }}", this.name, this.value);-->
<!-- });-->
<!-- document.getElementById("{{ sample['submission_rank'] }}_column").addEventListener("input", function(){-->
<!-- backend.text_changed("{{ sample['submission_rank'] }}", this.name, this.value);-->
<!-- });-->
{% endfor %}
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
@@ -55,5 +50,5 @@
document.getElementById("rsl_plate_num").addEventListener("input", function(){
backend.set_rsl_plate_num(this.value);
});
</script>
{% endblock %}
</script>

View File

@@ -21,9 +21,10 @@
{% endif %}
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
{% for submission in sample['submissions'] %}
document.getElementById("{{ submission['plate_name'] }}").addEventListener("click", function(){
backend.submission_details("{{ submission['plate_name'] }}");
@@ -32,6 +33,7 @@
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
}, false);
</script>
{% endblock %}
</script>
</html>

View File

@@ -23,10 +23,10 @@
{% endif %}
{% endblock %}
</body>
<script>
{% block script %}
{{ super() }}
<script>
var processSelection = document.getElementsByClassName('process');
for(let i = 0; i < processSelection.length; i++) {
@@ -45,6 +45,7 @@
document.addEventListener('DOMContentLoaded', function() {
backend.activate_export(false);
}, false);
</script>
{% endblock %}
</script>
</html>