Merge "removed-textarea-resize-horizontal"
This commit is contained in:
commit
76b9fb1936
@ -64,10 +64,10 @@ class ManageVolume(forms.SelfHandlingForm):
|
||||
required=False,
|
||||
help_text=_("Volume name to be assigned"))
|
||||
description = forms.CharField(max_length=255, widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width', 'rows': 4}),
|
||||
attrs={'rows': 4}),
|
||||
label=_("Description"), required=False)
|
||||
metadata = forms.CharField(max_length=255, widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width', 'rows': 2}),
|
||||
attrs={'rows': 2}),
|
||||
label=_("Metadata"), required=False,
|
||||
help_text=_("Comma-separated key=value pairs"),
|
||||
validators=[utils_validators.validate_metadata])
|
||||
@ -218,9 +218,7 @@ class CreateVolumeType(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length=255, label=_("Name"))
|
||||
vol_type_description = forms.CharField(
|
||||
max_length=255,
|
||||
widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width',
|
||||
'rows': 4}),
|
||||
widget=forms.Textarea(attrs={'rows': 4}),
|
||||
label=_("Description"),
|
||||
required=False)
|
||||
|
||||
|
@ -63,8 +63,8 @@ class ImportKeypair(forms.SelfHandlingForm):
|
||||
label=_("Key Pair Name"),
|
||||
regex=KEYPAIR_NAME_REGEX,
|
||||
error_messages=KEYPAIR_ERROR_MESSAGES)
|
||||
public_key = forms.CharField(label=_("Public Key"), widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width'}))
|
||||
public_key = forms.CharField(label=_("Public Key"),
|
||||
widget=forms.Textarea())
|
||||
|
||||
def handle(self, request, data):
|
||||
try:
|
||||
|
@ -80,7 +80,7 @@ class CreateForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length=255, label=_("Volume Name"),
|
||||
required=False)
|
||||
description = forms.CharField(max_length=255, widget=forms.Textarea(
|
||||
attrs={'class': 'modal-body-fixed-width', 'rows': 4}),
|
||||
attrs={'rows': 4}),
|
||||
label=_("Description"), required=False)
|
||||
volume_source_type = forms.ChoiceField(label=_("Volume Source"),
|
||||
required=False,
|
||||
|
@ -617,6 +617,10 @@ form label {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.modal-body textarea{
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.modal-body table {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user