Better name from inactive subscriber interval

[MAILPOET-1970]
This commit is contained in:
Ján Mikláš
2019-04-11 11:28:03 +02:00
committed by M. Shull
parent 667f1d6e41
commit fe746f07f0
2 changed files with 10 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ class SettingsController {
const DEFAULT_SENDING_METHOD = 'PHPMail';
const DEFAULT_SENDING_FREQUENCY_EMAILS = 25;
const DEFAULT_SENDING_FREQUENCY_INTERVAL = 5; // in minutes
const DEFAULT_INACTIVE_SUBSCRIBER_DAYS = 180;
const DEFAULT_DEACTIVATE_SUBSCRIBER_AFTER_INACTIVE_DAYS = 180;
private static $loaded = false;
@@ -66,7 +66,7 @@ class SettingsController {
'enabled' => false,
],
'display_nps_poll' => true,
'inactive_subscriber_days' => self::DEFAULT_INACTIVE_SUBSCRIBER_DAYS,
'deactivate_subscriber_after_inactive_days' => self::DEFAULT_DEACTIVATE_SUBSCRIBER_AFTER_INACTIVE_DAYS,
];
}
return $this->defaults;

View File

@@ -183,9 +183,9 @@
<label>
<input
type="radio"
name="inactive_subscriber_days"
name="deactivate_subscriber_after_inactive_days"
value=""
<% if not(settings.inactive_subscriber_days) %>checked="checked"<% endif %>
<% if not(settings.deactivate_subscriber_after_inactive_days) %>checked="checked"<% endif %>
/><%= __('Never') %>
</label>
</p>
@@ -193,9 +193,9 @@
<label>
<input
type="radio"
name="inactive_subscriber_days"
name="deactivate_subscriber_after_inactive_days"
value="90"
<% if (settings.inactive_subscriber_days == 90) %>checked="checked"<% endif %>
<% if (settings.deactivate_subscriber_after_inactive_days == 90) %>checked="checked"<% endif %>
/><%= __('After 3 months (recommended if you send once a day)') %>
</label>
</p>
@@ -203,10 +203,10 @@
<label>
<input
type="radio"
name="inactive_subscriber_days"
name="deactivate_subscriber_after_inactive_days"
value="180"
data-automation-id="inactive-subscribers-default"
<% if (settings.inactive_subscriber_days == 180) %>checked="checked"<% endif %>
<% if (settings.deactivate_subscriber_after_inactive_days == 180) %>checked="checked"<% endif %>
/><%= __('After 6 months (default, recommended if you send at least once a month)')%>
</label>
</p>
@@ -214,9 +214,9 @@
<label>
<input
type="radio"
name="inactive_subscriber_days"
name="deactivate_subscriber_after_inactive_days"
value="365"
<% if (settings.inactive_subscriber_days == 365) %>checked="checked"<% endif %>
<% if (settings.deactivate_subscriber_after_inactive_days == 365) %>checked="checked"<% endif %>
/><%= __('After 12 months') %>
</label>
</p>