UserPreferencesForm
DomainPreferences form with theme and language selects plus email/push notification and newsletter toggles.
<%- include('modules/domain/common/user/UserPreferencesForm', {
action: '/account/preferences',
initial: {
theme: 'SYSTEM',
language: 'en',
emailNotifications: true,
pushNotifications: true,
newsletter: false
}
}) %>
<%
var _action = locals.action || '#';
var _method = locals.method || 'post';
var _error = locals.error || '';
var _initial = locals.initial || {};
var _theme = _initial.theme || 'SYSTEM';
var _language = _initial.language || 'en';
var _emailNotifications = _initial.emailNotifications !== false;
var _pushNotifications = _initial.pushNotifications !== false;
var _newsletter = _initial.newsletter !== false;
%>