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'}
27 <header class="contentHeader">
28 <div class="contentHeaderTitle">
29 <h1 class="contentTitle">{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.notification.notifications{/lang}</h1>
30 <p class="contentHeaderDescription">{lang}wcf.user.notification.notifications.description{/lang}</p>
34 <nav class="contentHeaderNavigation">
36 {content}{event name='contentHeaderNavigation'}{/content}
42 {include file='userNotice'}
44 {include file='formError'}
47 <p class="success">{lang}wcf.global.success.edit{/lang}</p>
50 <form method="post" action="{link controller='NotificationSettings'}{/link}">
51 <div id="notificationSettings">
52 {foreach from=$events key='eventCategory' item='eventList'}
53 <section class="section">
54 <h2 class="sectionTitle">{lang}wcf.user.notification.{$eventCategory}{/lang}</h2>
57 {foreach from=$eventList item=event}
58 <dt>{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</dt>
60 <ol class="flexibleButtonGroup" data-object-id="{@$event->eventID}">
62 <input type="radio" id="settings_{@$event->eventID}_disabled" name="settings[{@$event->eventID}][enabled]" value="0"{if $settings[$event->eventID][enabled]|empty} checked="checked"{/if}>
63 <label for="settings_{@$event->eventID}_disabled" class="red">
64 <span class="icon icon16 fa-times"></span>
65 {lang}wcf.user.notification.notifications.disabled{/lang}
68 <li class="spaceAfter">
69 <input type="radio" id="settings_{@$event->eventID}_enabled" name="settings[{@$event->eventID}][enabled]" value="1"{if !$settings[$event->eventID][enabled]|empty} checked="checked"{/if}>
70 <label for="settings_{@$event->eventID}_enabled" class="green">
71 <span class="icon icon16 fa-bell"></span>
72 {lang}wcf.user.notification.notifications.enabled{/lang}
75 {if $event->supportsEmailNotification()}
76 <li class="notificationSettingsEmail{if !$settings[$event->eventID][enabled]|empty} active{/if}">
77 <input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
78 <a{if $settings[$event->eventID][mailNotificationType] !== 'none'} class="active yellow"{/if}>
79 <span class="icon icon16 fa-envelope-o"></span>
80 <span class="title">{lang}wcf.user.notification.mailNotificationType.{$settings[$event->eventID][mailNotificationType]}{/lang}</span>
81 <span class="icon icon16 fa-caret-down"></span>
92 {event name='sections'}
95 <div class="formSubmit">
96 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
97 {@SECURITY_TOKEN_INPUT_TAG}
101 {include file='footer'}