LT-302: Adding close buttons to Audit Log screen

This commit is contained in:
Eloízio Salgado authored and Erik Ziegler committed 2016-11-15 08:29:46 +01:00
1 parent c004aee40f
commit 3c831c5d5a
13 files changed
+87 -12

No files matched your search

@@ -0,0 +1,13 @@
<template name="hipaaCloseButton">
<div class="close-btn">
{{#if header}}
<button type="button" class="close">
<span>&times;</span>
</button>
{{else}}
<button type="button" class="btn btn-default">
Close
</button>
{{/if}}
</div>
</template>
@@ -0,0 +1,12 @@
Template.hipaaCloseButton.events({
'click button': function() {
var history = window.history;
if(history.length > 0) {
history.go(-1);
}
else {
window.location = '/'
}
}
});
@@ -0,0 +1,16 @@
.close-btn {
text-align: right;
padding: 5px 5px 0;
margin-right: 10px;
&:before,
&:after {
display: table;
content: " ";
clear: both;
}
.btn-default {
margin-bottom: 5px;
}
}