Fixed unnecessary large margin
authorMarcel Werk <burntime@woltlab.com>
Mon, 8 Jun 2020 15:43:48 +0000 (17:43 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 8 Jun 2020 15:43:48 +0000 (17:43 +0200)
wcfsetup/install/files/acp/templates/notificationPresetSettings.tpl

index df207db9a3073a78ad479649c536cf5941d174d9..433922d6b323e7a5b574c6657ab2ad45dc0ba9a4 100644 (file)
        <p class="success">{lang}wcf.global.success.edit{/lang}</p>
 {/if}
 
-<form method="post" action="{link controller='NotificationPresetSettings'}{/link}">
-       <div id="notificationSettings">
-               <div class="section">
+<form method="post" action="{link controller='NotificationPresetSettings'}{/link}" id="notificationSettings">
+       <div class="section">
+               <dl>
+                       <dt></dt>
+                       <dd>
+                               <label><input type="checkbox" name="applyChangesToExistingUsers" value="1"{if $applyChangesToExistingUsers} checked{/if}> {lang}wcf.acp.user.notificationPresetSettings.applyChangesToExistingUsers{/lang}</label>
+                               <small>{lang}wcf.acp.user.notificationPresetSettings.applyChangesToExistingUsers.description{/lang}</small>
+                       </dd>
+               </dl>
+       </div>
+       
+       {foreach from=$events key='eventCategory' item='eventList'}
+               <section class="section">
+                       <h2 class="sectionTitle">{lang}wcf.user.notification.{$eventCategory}{/lang}</h2>
+                       
                        <dl>
-                               <dt></dt>
-                               <dd>
-                                       <label><input type="checkbox" name="applyChangesToExistingUsers" value="1"{if $applyChangesToExistingUsers} checked{/if}> {lang}wcf.acp.user.notificationPresetSettings.applyChangesToExistingUsers{/lang}</label>
-                                       <small>{lang}wcf.acp.user.notificationPresetSettings.applyChangesToExistingUsers.description{/lang}</small>
-                               </dd>
-                       </dl>
-               </div>
-               
-               {foreach from=$events key='eventCategory' item='eventList'}
-                       <section class="section">
-                               <h2 class="sectionTitle">{lang}wcf.user.notification.{$eventCategory}{/lang}</h2>
-                               
-                               <dl>
-                                       {foreach from=$eventList item=event}
-                                               <dt>{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</dt>
-                                               <dd>
-                                                       <ol class="flexibleButtonGroup" data-object-id="{@$event->eventID}">
-                                                               <li>
-                                                                       <input type="radio" id="settings_{@$event->eventID}_disabled" name="settings[{@$event->eventID}][enabled]" value="0"{if $settings[$event->eventID][enabled]|empty} checked{/if}>
-                                                                       <label for="settings_{@$event->eventID}_disabled" class="red">
-                                                                               <span class="icon icon16 fa-times"></span>
-                                                                               {lang}wcf.user.notification.notifications.disabled{/lang}
-                                                                       </label>
-                                                               </li>
-                                                               <li class="spaceAfter">
-                                                                       <input type="radio" id="settings_{@$event->eventID}_enabled" name="settings[{@$event->eventID}][enabled]" value="1"{if !$settings[$event->eventID][enabled]|empty} checked{/if}>
-                                                                       <label for="settings_{@$event->eventID}_enabled" class="green">
-                                                                               <span class="icon icon16 fa-bell"></span>
-                                                                               {lang}wcf.user.notification.notifications.enabled{/lang}
-                                                                       </label>
+                               {foreach from=$eventList item=event}
+                                       <dt>{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</dt>
+                                       <dd>
+                                               <ol class="flexibleButtonGroup" data-object-id="{@$event->eventID}">
+                                                       <li>
+                                                               <input type="radio" id="settings_{@$event->eventID}_disabled" name="settings[{@$event->eventID}][enabled]" value="0"{if $settings[$event->eventID][enabled]|empty} checked{/if}>
+                                                               <label for="settings_{@$event->eventID}_disabled" class="red">
+                                                                       <span class="icon icon16 fa-times"></span>
+                                                                       {lang}wcf.user.notification.notifications.disabled{/lang}
+                                                               </label>
+                                                       </li>
+                                                       <li class="spaceAfter">
+                                                               <input type="radio" id="settings_{@$event->eventID}_enabled" name="settings[{@$event->eventID}][enabled]" value="1"{if !$settings[$event->eventID][enabled]|empty} checked{/if}>
+                                                               <label for="settings_{@$event->eventID}_enabled" class="green">
+                                                                       <span class="icon icon16 fa-bell"></span>
+                                                                       {lang}wcf.user.notification.notifications.enabled{/lang}
+                                                               </label>
+                                                       </li>
+                                                       {if $event->supportsEmailNotification()}
+                                                               <li class="notificationSettingsEmail{if !$settings[$event->eventID][enabled]|empty} active{/if}">
+                                                                       <input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
+                                                                       <a{if $settings[$event->eventID][mailNotificationType] !== 'none'} class="active yellow"{/if}>
+                                                                               <span class="icon icon16 fa-envelope-o"></span>
+                                                                               <span class="title">{lang}wcf.user.notification.mailNotificationType.{$settings[$event->eventID][mailNotificationType]}{/lang}</span>
+                                                                               <span class="icon icon16 fa-caret-down"></span>
+                                                                       </a>
                                                                </li>
-                                                               {if $event->supportsEmailNotification()}
-                                                                       <li class="notificationSettingsEmail{if !$settings[$event->eventID][enabled]|empty} active{/if}">
-                                                                               <input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
-                                                                               <a{if $settings[$event->eventID][mailNotificationType] !== 'none'} class="active yellow"{/if}>
-                                                                                       <span class="icon icon16 fa-envelope-o"></span>
-                                                                                       <span class="title">{lang}wcf.user.notification.mailNotificationType.{$settings[$event->eventID][mailNotificationType]}{/lang}</span>
-                                                                                       <span class="icon icon16 fa-caret-down"></span>
-                                                                               </a>
-                                                                       </li>
-                                                               {/if}
-                                                       </ol>
-                                               </dd>
-                                       {/foreach}
-                               </dl>
-                       </section>
-               {/foreach}
-               
-               {event name='sections'}
-       </div>
+                                                       {/if}
+                                               </ol>
+                                       </dd>
+                               {/foreach}
+                       </dl>
+               </section>
+       {/foreach}
+       
+       {event name='sections'}
        
        <div class="formSubmit">
                <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
@@ -94,4 +92,4 @@
        </div>
 </form>
 
-{include file='footer'}
\ No newline at end of file
+{include file='footer'}