Fixes description field extension
This patch fixes description field extension over other fields. Change-Id: Ied9c71478157ee28d5f0e4af603236df922bb349 Closes-Bug: #1282196
This commit is contained in:
parent
3a153c86af
commit
6c6f21d4d6
@ -40,9 +40,10 @@ IMAGE_FORMAT_CHOICES = IMAGE_BACKEND_SETTINGS.get('image_formats', [])
|
||||
|
||||
class CreateImageForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length="255", label=_("Name"), required=True)
|
||||
description = forms.CharField(widget=forms.widgets.Textarea(),
|
||||
label=_("Description"),
|
||||
required=False)
|
||||
description = forms.CharField(widget=forms.widgets.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width'}),
|
||||
label=_("Description"),
|
||||
required=False)
|
||||
|
||||
source_type = forms.ChoiceField(
|
||||
label=_('Image Source'),
|
||||
|
@ -42,8 +42,9 @@ from openstack_dashboard.usage import quotas
|
||||
|
||||
class CreateForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length="255", label=_("Volume Name"))
|
||||
description = forms.CharField(widget=forms.Textarea,
|
||||
label=_("Description"), required=False)
|
||||
description = forms.CharField(widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width'}),
|
||||
label=_("Description"), required=False)
|
||||
type = forms.ChoiceField(label=_("Type"),
|
||||
required=False)
|
||||
size = forms.IntegerField(min_value=1, label=_("Size (GB)"))
|
||||
|
@ -1083,6 +1083,9 @@ form.horizontal fieldset {
|
||||
.modal-body fieldset .form-field textarea {
|
||||
height: @baseLineHeight * 2;
|
||||
}
|
||||
.modal-body-fixed-width {
|
||||
max-width: 298px;
|
||||
}
|
||||
|
||||
.modal-footer input {
|
||||
width: auto;
|
||||
|
Loading…
x
Reference in New Issue
Block a user