Add template form for the dismiss button.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:34:08 +0000 (06:34 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:34:08 +0000 (06:34 +0100)
src/main/resources/templates/include/head.html

index 9fb2525..ed83b2f 100644 (file)
                <%/if>
 
                <div id="notification-area">
+
+                       <form id="notification-dismiss-template" class="hidden dismiss" action="dismissNotification.html" method="post">
+                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                               <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+                               <input type="hidden" name="notification" value="" />
+                               <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
+                       </form>
+
                        <%foreach webInterface.notifications.all notification>
                                <div class="notification" id="<% notification.id|html>">
                                        <%if notification.dismissable>