diff --git a/CHANGES.rst b/CHANGES.rst index 9a44bf55..03074e63 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ Changelog 1.1.19 (unreleased) ------------------- +- WEB-3934 : Hide image_size field + [boulch] + - WEB-3953 : Remove cropping from background_image field [boulch] diff --git a/src/imio/smartweb/core/contents/sections/text/forms.py b/src/imio/smartweb/core/contents/sections/text/forms.py index 605111fc..6bfc5283 100644 --- a/src/imio/smartweb/core/contents/sections/text/forms.py +++ b/src/imio/smartweb/core/contents/sections/text/forms.py @@ -23,6 +23,7 @@ def update(self): def updateFields(self): super(TextCustomAddForm, self).updateFields() self.fields["ILeadImageBehavior.image_caption"].mode = INPUT_MODE + self.fields["image_size"].mode = HIDDEN_MODE class TextCustomAddView(DefaultAddView): @@ -42,6 +43,7 @@ def update(self): def updateFields(self): super(TextCustomEditForm, self).updateFields() self.fields["ILeadImageBehavior.image_caption"].mode = INPUT_MODE + self.fields["image_size"].mode = HIDDEN_MODE TextCustomEditView = layout.wrap_form(TextCustomEditForm)