diff options
author | 2020-01-30 13:33:35 -0500 | |
---|---|---|
committer | 2020-01-30 16:12:18 -0500 | |
commit | 078273eb7db5a481a4131d44a943f3c9e34b6b88 (patch) | |
tree | 9e6e569e18712d77b8a65c6ebf4dda50ade1b55a /src/templates/notifier/notification.html | |
parent | 899e1a4baa95d0bc6f0eef34de66f0e257174878 (diff) |
Adds Template Overrides
Changes the structure of the template directories to allow
a new project to define their own set of override templates
that inherit from a common base.
I have slightly modified landing.html here as an example.
In comming changes we will try to move all the "laas" specific
content into the laas directory
Change-Id: I46151be182de901f870debb247b305ea34ae77ba
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/templates/notifier/notification.html')
-rw-r--r-- | src/templates/notifier/notification.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/templates/notifier/notification.html b/src/templates/notifier/notification.html deleted file mode 100644 index 603edea..0000000 --- a/src/templates/notifier/notification.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends "layout.html" %} -{% block extrahead %} -<base target="_parent"> -{% endblock %} - -{% block basecontent %} -<script> - function send_request(post_data){ - var form = $("#notification_action_form"); - var formData = form.serialize() + '&' + post_data + '=true'; - var req = new XMLHttpRequest(); - req.open("POST", ".", false); - req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - req.onerror = function() { alert("problem occurred while trying to cancel current workflow"); } - req.onreadystatechange = function() { if(req.readyState === 4){ - window.top.location.href += ''; - }}; - req.send(formData); - } - function delete_notification() - { - send_request("delete"); - } - function mark_unread() - { - send_request("unread"); - } -</script> - -<div class="d-flex justify-content-between border-bottom"> - <span class="h3">{{notification.title}}</span> - <div class="btn_group"> - <button class="btn btn-primary inbox-btn" onclick="mark_unread()">Mark Unread</button> - <button class="btn btn-danger inbox-btn" onclick="delete_notification()">Delete</button> - </div> -</div> - -<p class="content-divider"></p> - -{% if not notification.is_html %} -<pre> -{% endif %} - {{notification.content|safe}} -{% if not notification.is_html %} -</pre> -{% endif %} -<form id="notification_action_form" action="." method="post"> - {% csrf_token %} -</form> -{% endblock %} |