.
This commit is contained in:
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user