summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/forms
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-09-13 12:33:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-24 12:06:08 +0200
commit46f4e690382bdcf139ea7d8705253e0ac60e2807 (patch)
treefde4a330920d179f1d849a1f53eea18eff011bce /archaeological_finds/templates/ishtar/forms
parent23ca7e06b44bb8f07c56d2fe947fe6b4f6bfe0f4 (diff)
downloadIshtar-46f4e690382bdcf139ea7d8705253e0ac60e2807.tar.bz2
Ishtar-46f4e690382bdcf139ea7d8705253e0ac60e2807.zip
QA packaging - fix date initialization
Diffstat (limited to 'archaeological_finds/templates/ishtar/forms')
-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();
});