Allow saving a position when create a widget card

We are ensuring that only position field is rendered only on
non-header cards.

Note that we have 3 sections that use widget cards:
- Homepage (cards and header cards)
- Custompages (only have cards)
- Sdg Homepage (cards and header cards)
This commit is contained in:
taitus
2023-10-27 10:53:16 +02:00
parent 9dd10cac19
commit 6059aab674
8 changed files with 29 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ module Admin::Widget::CardsActions
def allowed_params
[
:link_url, :button_text, :button_url, :alignment, :header, :columns,
:link_url, :button_text, :button_url, :alignment, :header, :columns, :order,
translation_params(Widget::Card),
image_attributes: image_attributes
]