Change Rebuild Instance Form select widget to normal style
Replace select widget from ThemableSelectWidget to SelectWidget.
When there are too many images, ThemableSelectWidget will be too long and
makes choosing an image hard. But normal style select can provide a scroll
bar there.
Closes-Bug:
@@ -42,7 +42,7 @@ class RebuildInstanceForm(forms.SelfHandlingForm):
image = forms.ChoiceField(
label=_("Select Image"),
- widget=forms.ThemableSelectWidget(
+ widget=forms.SelectWidget(
attrs={'class': 'image-selector'},
data_attrs=('size', 'display-name'),
transform=_image_choice_title))
@@ -56,7 +56,7 @@ class RebuildInstanceForm(forms.SelfHandlingForm):
label=_("Confirm Rebuild Password"),
required=False,
widget=forms.PasswordInput(render_value=False))
- disk_config = forms.ThemableChoiceField(label=_("Disk Partition"),
+ disk_config = forms.ChoiceField(label=_("Disk Partition"),
required=False)
description = forms.CharField(
label=_("Description"),
