removed-textarea-resize-horizontal

removed resize horizontal ability

Change-Id: Ifa2cad56db64b8410ae3b029c73be605a8f75694
Closes-Bug: #1370206
This commit is contained in:
German Rivera(gr720e) 2015-09-03 10:32:26 -05:00
parent 51647a585a
commit ac88b227da
4 changed files with 10 additions and 8 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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,

View File

@ -613,6 +613,10 @@ form label {
max-height: none;
}
.modal-body textarea{
resize: vertical;
}
.modal-body table {
margin-bottom: 30px;
}