automation.htm
10 months ago
general.htm
4 months ago
integrations.htm
1 year ago
logging.htm
1 year ago
maintenance.htm
1 year ago
notifications.htm
1 year ago
performance.htm
1 year ago
restore.htm
1 year ago
security.htm
4 days ago
updates.htm
1 year ago
notifications.htm
78 lines
| 1 | <div class="pd-20 settings"> |
| 2 | |
| 3 | <div class="form-group row"> |
| 4 | <label for="EMAILS" class="col-sm-3 col-form-label jb-label">{{ lang.t('Email System') }}</label> |
| 5 | <div class="col-sm-9"> |
| 6 | <div class="pd-3 switch-main"> |
| 7 | <label class="switch"> |
| 8 | <!-- Checkbox to toggle email system --> |
| 9 | <input id="EMAILS" |
| 10 | type="checkbox" |
| 11 | ng-model="saveData.EMAILS" |
| 12 | ng-true-value=1 |
| 13 | ng-false-value=0> |
| 14 | <span class="slider round"></span> |
| 15 | |
| 16 | </label> |
| 17 | <p class="pd-3">{{ lang.t('When disabled, JetBackup will never send email alerts/notifications.') }}</p> |
| 18 | </div> |
| 19 | </div> |
| 20 | </div> |
| 21 | |
| 22 | <div class="form-group row"> |
| 23 | <label for="ALTERNATE_EMAIL" class="col-sm-3 col-form-label jb-label">{{ lang.t('Alternate Email') }}</label> |
| 24 | <div class="col-sm-9"> |
| 25 | <div class="pd-3 switch-main"> |
| 26 | <input id="ALTERNATE_EMAIL" |
| 27 | data-type="ALTERNATE_EMAIL" |
| 28 | name="ALTERNATE_EMAIL" |
| 29 | type="email" |
| 30 | ng-model="saveData.ALTERNATE_EMAIL" |
| 31 | ng-attr-placeholder="{{!saveData.ALTERNATE_EMAIL ? saveData.ADMIN_EMAIL : ''}}" |
| 32 | ng-disabled="!saveData.EMAILS"> |
| 33 | |
| 34 | <button id="test_email" |
| 35 | class="btn btn-primary apply_btn" |
| 36 | ng-click="sendTestEmail()" |
| 37 | ng-disabled="!saveData.EMAILS"> |
| 38 | <!-- Icon for spinner --> |
| 39 | <span class="settings_spinner spinner-border spinner-border-sm" |
| 40 | ng-show="sendingEmail"></span> |
| 41 | <span role="status">{{ lang.t('Test Email') }}</span> |
| 42 | </button> |
| 43 | |
| 44 | <p class="pd-3">{{ lang.t('Email notifications will be sent by default to the "Admin Email" (set in Settings > General), this will override this option.') }}</p> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | |
| 49 | <div class="form-group row" ng-if="saveData.NOTIFICATION_LEVELS_FREQUENCY"> |
| 50 | <label class="col-sm-3 col-form-label jb-label">{{ lang.t('Email Alert Frequency') }}</label> |
| 51 | <div class="col-sm-9"> |
| 52 | <div class="pd-3 switch-main"> |
| 53 | |
| 54 | <div class="input-group mb-2" ng-repeat="(key, label) in const.ALERT_LEVEL_NAMES"> |
| 55 | <div class="input-group-prepend"> |
| 56 | <span class="input-group-text" style="min-width: 120px;"> |
| 57 | {{ lang.t(label) }} |
| 58 | </span> |
| 59 | </div> |
| 60 | <select class="form-control" |
| 61 | ng-model="saveData.NOTIFICATION_LEVELS_FREQUENCY[key]" |
| 62 | ng-disabled="!saveData.EMAILS" |
| 63 | ng-options="+key as label for (key, label) in const.ALERT_FREQUENCIES"> |
| 64 | </select> |
| 65 | </div> |
| 66 | |
| 67 | <p class="pd-3">{{ lang.t('Control which alert levels will trigger email notifications and how frequently they are sent. Alerts will always appear in the GUI regardless of this setting.') }}</p> |
| 68 | |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | </div> |