Skip to content

Commit

Permalink
WEB-3934 : Hide image_size field
Browse files Browse the repository at this point in the history
  • Loading branch information
boulch committed Jul 28, 2023
1 parent 9e2d3ad commit 9a2c3f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 2 additions & 0 deletions src/imio/smartweb/core/contents/sections/text/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

0 comments on commit 9a2c3f8

Please sign in to comment.