1 {include file='documentHeader'}
4 <title>{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.notification.notifications{/lang} - {lang}wcf.user.menu.settings{/lang} - {PAGE_TITLE|language}</title>
6 {include file='headInclude'}
8 <script data-relocate="true">
9 require(['Language', 'WoltLab/WCF/Controller/User/Notification/Settings'], function(Language, ControllerUserNotificationSettings) {
11 'wcf.user.notification.mailNotificationType.daily': '{lang}wcf.user.notification.mailNotificationType.daily{/lang}',
12 'wcf.user.notification.mailNotificationType.instant': '{lang}wcf.user.notification.mailNotificationType.instant{/lang}',
13 'wcf.user.notification.mailNotificationType.none': '{lang}wcf.user.notification.mailNotificationType.none{/lang}'
16 ControllerUserNotificationSettings.setup();
21 <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
23 {include file='userMenuSidebar'}
25 {include file='header' sidebarOrientation='left'}
27 <header class="boxHeadline">
28 <h1>{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.notification.notifications{/lang}</h1>
29 <p>{lang}wcf.user.notification.notifications.description{/lang}
32 {include file='userNotice'}
34 {include file='formError'}
37 <p class="success">{lang}wcf.global.success.edit{/lang}</p>
40 <div class="contentNavigation">
45 {event name='contentNavigationButtons'}
52 <form method="post" action="{link controller='NotificationSettings'}{/link}">
53 <div class="container containerPadding marginTop" id="notificationSettings">
54 {foreach from=$events key='eventCategory' item='eventList'}
56 <legend>{lang}wcf.user.notification.{$eventCategory}{/lang}</legend>
59 {foreach from=$eventList item=event}
60 <dt>{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</dt>
62 <ol class="flexibleButtonGroup" data-object-id="{@$event->eventID}">
64 <input type="radio" id="settings_{@$event->eventID}_disabled" name="settings[{@$event->eventID}][enabled]" value="0"{if $settings[$event->eventID][enabled]|empty} checked="checked"{/if}>
65 <label for="settings_{@$event->eventID}_disabled" class="red">
66 <span class="icon icon16 fa-times"></span>
67 {lang}wcf.user.notification.notifications.disabled{/lang}
70 <li class="spaceAfter">
71 <input type="radio" id="settings_{@$event->eventID}_enabled" name="settings[{@$event->eventID}][enabled]" value="1"{if !$settings[$event->eventID][enabled]|empty} checked="checked"{/if}>
72 <label for="settings_{@$event->eventID}_enabled" class="green">
73 <span class="icon icon16 fa-bell"></span>
74 {lang}wcf.user.notification.notifications.enabled{/lang}
77 {if $event->supportsEmailNotification()}
78 <li class="notificationSettingsEmail{if !$settings[$event->eventID][enabled]|empty} active{/if}">
79 <input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
80 <a{if $settings[$event->eventID][mailNotificationType] !== 'none'} class="active yellow"{/if}>
81 <span class="icon icon16 fa-envelope-o"></span>
82 <span class="title">{lang}wcf.user.notification.mailNotificationType.{$settings[$event->eventID][mailNotificationType]}{/lang}</span>
83 <span class="icon icon16 fa-caret-down"></span>
94 {event name='fieldsets'}
97 <div class="formSubmit">
98 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
99 {@SECURITY_TOKEN_INPUT_TAG}
103 {include file='footer'}