Allow using a different URL on widget card forms

This commit is contained in:
Javi Martín
2021-02-25 17:19:51 +01:00
parent b8073cc764
commit ba4b1a91e1
8 changed files with 19 additions and 9 deletions

View File

@@ -3,6 +3,10 @@ module Admin::Widget::CardsActions
include Translatable
include ImageAttributes
included do
helper_method :form_path
end
def new
@card.header = header_card?
render template: "#{cards_view_path}/new"
@@ -56,4 +60,8 @@ module Admin::Widget::CardsActions
def cards_view_path
"admin/widget/cards"
end
def form_path
nil
end
end