2025-02-11 22:23:51 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class SubmissionEventsController < ApplicationController
|
|
|
|
|
SUBMISSION_EVENT_ICONS = {
|
|
|
|
|
'view_form' => 'eye',
|
|
|
|
|
'start_form' => 'player_play',
|
|
|
|
|
'complete_form' => 'check',
|
|
|
|
|
'send_email' => 'mail_forward',
|
|
|
|
|
'click_email' => 'hand_click',
|
|
|
|
|
'api_complete_form' => 'check',
|
|
|
|
|
'send_reminder_email' => 'mail_forward',
|
|
|
|
|
'send_2fa_sms' => '2fa',
|
2025-12-08 09:32:03 +02:00
|
|
|
'send_2fa_email' => '2fa',
|
2025-02-11 22:23:51 +02:00
|
|
|
'send_sms' => 'send',
|
|
|
|
|
'phone_verified' => 'phone_check',
|
2025-07-11 09:02:18 +03:00
|
|
|
'email_verified' => 'email_check',
|
2025-02-11 22:23:51 +02:00
|
|
|
'click_sms' => 'hand_click',
|
|
|
|
|
'decline_form' => 'x',
|
2026-03-27 12:56:52 +02:00
|
|
|
'delegate_form' => 'user_share',
|
2025-02-11 22:23:51 +02:00
|
|
|
'start_verification' => 'player_play',
|
|
|
|
|
'complete_verification' => 'check',
|
|
|
|
|
'invite_party' => 'user_plus'
|
|
|
|
|
}.freeze
|
|
|
|
|
|
|
|
|
|
load_and_authorize_resource :submission
|
|
|
|
|
|
2026-07-30 17:40:54 +03:00
|
|
|
def index
|
|
|
|
|
render :index, layout: 'plain'
|
|
|
|
|
end
|
2025-02-11 22:23:51 +02:00
|
|
|
end
|