summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/forms/qa_find_treatment.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/templates/ishtar/forms/qa_find_treatment.html')
-rw-r--r--archaeological_finds/templates/ishtar/forms/qa_find_treatment.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/archaeological_finds/templates/ishtar/forms/qa_find_treatment.html b/archaeological_finds/templates/ishtar/forms/qa_find_treatment.html
index 07f633848..ef3906735 100644
--- a/archaeological_finds/templates/ishtar/forms/qa_find_treatment.html
+++ b/archaeological_finds/templates/ishtar/forms/qa_find_treatment.html
@@ -27,10 +27,8 @@
</div>
<div class="form-row">
- <input type="checkbox" name="create_treatment"
- id="create-choice">&nbsp;
- <label for="create-choice">
- {% trans "Associate a treatment to this operation" %}
+ {{ form.create_treatment }}&nbsp;<label for="{{form.create_treatment.auto_id}}">
+ {% trans "Associate a treatment" %}
</label>
</div>
<div id="new-treatment">
@@ -48,7 +46,7 @@
{% block js %}
var update_form_display = function(){
- if ($("#create-choice:checked").length){
+ if ($("#{{form.create_treatment.auto_id}}:checked").length){
$("#new-treatment").show();
} else {
$("#new-treatment").hide();
@@ -56,7 +54,7 @@ var update_form_display = function(){
}
$(document).ready(function(){
- $("#create-choice").click(update_form_display);
+ $("#{{form.create_treatment.auto_id}}").click(update_form_display);
update_form_display();
});