This commit is contained in:
Ross
2021-10-17 19:07:21 +01:00
parent 57caf4dc38
commit 0ed48f5c83
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -22,7 +22,7 @@ from .models import (
)
from generic.models import Examination
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.admin.widgets import FilteredSelectMultiple, FilteredSelectSingle
from django.forms.widgets import RadioSelect, TextInput, Textarea
@@ -78,6 +78,7 @@ class AnatomyQuestionForm(ModelForm):
self.fields["region"] = ModelChoiceField(
required=False,
queryset=Region.objects.all(),
widget=FilteredSelect(verbose_name="Region", is_stacked=False),
)
self.fields["modality"] = ModelChoiceField(
@@ -20,7 +20,7 @@
}
function closePopup(win, newID, newRepr, id) {
console.log(id)
$(id + "_to").append('<option value=' + newID + ' title=' + newRepr + ' >' + newRepr + '</option>')
$(id).append('<option value=' + newID + ' title=' + newRepr + ' >' + newRepr + '</option>')
win.close();
}