| 1 |
<div id="acym__list__settings"> |
| 2 |
<form id="acym_form" action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm" data-abide novalidate> |
| 3 |
<div class="cell grid-x text-right grid-margin-x margin-left-0 margin-right-0 margin-bottom-0 margin-y acym__content" id="acym__list__settings__actions"> |
| 4 |
<?php include acym_getView('lists', 'settings_actions'); ?> |
| 5 |
</div> |
| 6 |
<div class="acym__content margin-top-1"> |
| 7 |
<?php |
| 8 |
$workflow = $data['workflowHelper']; |
| 9 |
echo $workflow->displayTabs( |
| 10 |
$this->tabs, |
| 11 |
$data['currentTab'], |
| 12 |
[ |
| 13 |
'query' => '&listId='.acym_escape($data['listInformation']->id).'&task=settings&step=', |
| 14 |
'disableTabs' => empty($data['listInformation']->id) ? $this->disableTabs : [], |
| 15 |
] |
| 16 |
); ?> |
| 17 |
<?php |
| 18 |
if ($data['currentTab'] === $data['tabs']['general']) { ?> |
| 19 |
<div class="grid-x margin-bottom-1 grid-margin-x"> |
| 20 |
<div class="cell grid-x margin-bottom-1 xlarge-5 small-12 acym__content margin-y"> |
| 21 |
<?php include acym_getView('lists', 'settings_information'); ?> |
| 22 |
</div> |
| 23 |
<div class="cell grid-x margin-bottom-1 xlarge-7 small-12 text-center"> |
| 24 |
<?php include acym_getView('lists', 'settings_overview'); ?> |
| 25 |
</div> |
| 26 |
<div class="cell grid-x align-middle text-center acym__list__settings__stats acym__content margin-0 margin-bottom-1"> |
| 27 |
<?php include acym_getView('lists', 'settings_statistics'); ?> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
<?php acym_trigger('onListSetting', [$data]); ?> |
| 31 |
<?php } elseif ($data['currentTab'] === $data['tabs']['subscribers']) { ?> |
| 32 |
<?php include acym_getView('lists', 'settings_subscribers'); ?> |
| 33 |
<?php } elseif ($data['currentTab'] === $data['tabs']['unsubscriptions']) { ?> |
| 34 |
<div class="cell grid-x align-middle text-center acym__list__settings__stats acym__content margin-top-1"> |
| 35 |
<?php include acym_getView('lists', 'unsubscribe_reasons'); ?> |
| 36 |
</div> |
| 37 |
<?php } |
| 38 |
?> |
| 39 |
</div> |
| 40 |
|
| 41 |
<input type="hidden" name="listId" value="<?php echo acym_escape($data['listInformation']->id); ?>"> |
| 42 |
<input type="hidden" name="list[welcome_id]" value="<?php echo acym_escape($data['listInformation']->welcome_id); ?>"> |
| 43 |
<input type="hidden" name="list[unsubscribe_id]" value="<?php echo acym_escape($data['listInformation']->unsubscribe_id); ?>"> |
| 44 |
<input type="hidden" name="step" value="<?php echo acym_escape($data['currentTab']); ?>"> |
| 45 |
<?php acym_formOptions(true, 'settings'); ?> |
| 46 |
</form> |
| 47 |
</div> |
| 48 |
|