Merge "Textarea field can be extended over other fields"

This commit is contained in:
Jenkins 2014-04-18 19:53:43 +00:00 committed by Gerrit Code Review
commit 7c9d05bf4d
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ class ImportKeypair(forms.SelfHandlingForm):
name = forms.CharField(max_length="255", label=_("Key Pair Name"),
validators=[validators.validate_slug],
error_messages=KEYPAIR_ERROR_MESSAGES)
public_key = forms.CharField(label=_("Public Key"), widget=forms.Textarea)
public_key = forms.CharField(label=_("Public Key"), widget=forms.Textarea(
attrs={'class': 'modal-body-fixed-width'}))
def handle(self, request, data):
try: