Make the definition section of the wb/wf create section editable

User cannot modify wb/wf definition that is uploaded as a file
during its creation. After file is selected, the user just sees
its context but can't modify it if it is needed. So, making the
field editable.

Change-Id: I884b2dbf106f328843f81b23c838f7397c89375e
Closes-Bug: #1505601
This commit is contained in:
Sharat Sharma 2017-04-06 18:03:57 +05:30
parent aff5d8f30d
commit b31320c041
2 changed files with 2 additions and 4 deletions

View File

@ -94,8 +94,7 @@ class DefinitionForm(forms.SelfHandlingForm):
class CreateForm(forms.SelfHandlingForm):
definition = forms.CharField(
widget=forms.widgets.Textarea(
attrs={'readonly': 'readonly',
'rows': 12}
attrs={'rows': 12}
),
required=False
)

View File

@ -127,8 +127,7 @@ class DefinitionForm(forms.SelfHandlingForm):
class CreateForm(forms.SelfHandlingForm):
definition = forms.CharField(
widget=forms.widgets.Textarea(
attrs={'readonly': 'readonly',
'rows': 12}
attrs={'rows': 12}
),
required=False
)