add submitter completed redirect url

This commit is contained in:
Pete Matsyburka
2024-01-14 12:11:13 +02:00
parent 2edc76414b
commit d0ba180729
9 changed files with 54 additions and 7 deletions
@@ -142,9 +142,9 @@ module Api
params.permit(
key => [
[:send_email, :send_sms, :bcc_completed, {
[:send_email, :send_sms, :bcc_completed, :completed_redirect_url, {
message: %i[subject body],
submitters: [[:send_email, :send_sms, :uuid, :name, :email, :role,
submitters: [[:send_email, :send_sms, :completed_redirect_url, :uuid, :name, :email, :role,
:completed, :phone, :application_key,
{ values: {}, readonly_fields: [], message: %i[subject body],
fields: [%i[name default_value title description
+3 -1
View File
@@ -3,7 +3,7 @@
class SubmitFormController < ApplicationController
layout 'form'
around_action :with_browser_locale, only: %i[show completed]
around_action :with_browser_locale, only: %i[show completed success]
skip_before_action :authenticate_user!
skip_authorization_check
@@ -59,4 +59,6 @@ class SubmitFormController < ApplicationController
def completed
@submitter = Submitter.find_by!(slug: params[:submit_form_slug])
end
def success; end
end