From b31320c041a293699d4bd14956e479bb663a4592 Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Thu, 6 Apr 2017 18:03:57 +0530 Subject: [PATCH] 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 --- mistraldashboard/workbooks/forms.py | 3 +-- mistraldashboard/workflows/forms.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mistraldashboard/workbooks/forms.py b/mistraldashboard/workbooks/forms.py index 501036f..d98a1e2 100644 --- a/mistraldashboard/workbooks/forms.py +++ b/mistraldashboard/workbooks/forms.py @@ -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 ) diff --git a/mistraldashboard/workflows/forms.py b/mistraldashboard/workflows/forms.py index 926c45e..78283c9 100644 --- a/mistraldashboard/workflows/forms.py +++ b/mistraldashboard/workflows/forms.py @@ -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 )