| @@ -62,26 +62,12 @@ | ||
| 62 | 62 | |
| 63 | 63 | acym_trigger('onAcymMailboxActionDefine', [&$actions]); |
| 64 | 64 | |
| 65 | 65 | $actionOptions = ['' => acym_translation('ACYM_CHOOSE_ACTION')]; |
| 66 | - $actionParameters = ''; | |
| 67 | - | |
| 68 | 66 | foreach ($actions as $key => $oneAction) { |
| 69 | 67 | $actionOptions[$key] = $oneAction->name; |
| 70 | - $actionParameters .= '<div class="acym__mailbox__edition__action__one__parameters '.$key.' margin-top-1">'.$oneAction->option.'</div>'; | |
| 71 | 68 | } |
| 72 | 69 | |
| 73 | - $initialAction = acym_select( | |
| 74 | - $actionOptions, | |
| 75 | - 'acym_action[__num__][action]', | |
| 76 | - '', | |
| 77 | - [ | |
| 78 | - 'class' => 'acym__select acym__mailbox__edition__action__one__choice', | |
| 79 | - 'acym-data-infinite' => '', | |
| 80 | - ] | |
| 81 | - ); | |
| 82 | - $initialAction .= $actionParameters; | |
| 83 | - | |
| 84 | 70 | $data = [ |
| 85 | 71 | 'mailboxId' => $mailboxId, |
| 86 | 72 | 'mailboxActions' => $mailboxAction, |
| 87 | 73 | 'delayType' => new DelayType(), |
| @@ -86,9 +72,10 @@ | ||
| 86 | 72 | 'mailboxActions' => $mailboxAction, |
| 87 | 73 | 'delayType' => new DelayType(), |
| 88 | 74 | 'groups' => acym_getGroups(), |
| 89 | 75 | 'lists' => $listsClass->getAllWithIdName(), |
| 90 | - 'initialAction' => $initialAction, | |
| 76 | + 'actionDeclarations' => $actions, | |
| 77 | + 'actionOptions' => $actionOptions, | |
| 91 | 78 | ]; |
| 92 | 79 | |
| 93 | 80 | parent::display($data); |
| 94 | 81 | } |