LT-342: Audit Log :: style
This commit is contained in:
1 parent
59e54f1122
commit
a8f1b3b9d7
8 files changed
+279
-172
No files matched your search
@@ -1,18 +1,28 @@
|
||||
<template name="hipaaRibbon">
|
||||
<aside id="hipaaRibbon" class="{{getRibbonClass}}">
|
||||
<div class="btn-group">
|
||||
<input type="text" name="hipaaSearchFilter" id="hipaaSearchFilter" class="{{getInputClass}}" value="{{getHipaaSearchFilter}}" placeholder="Search User" style="{{getSearchFilterStyling}}">
|
||||
<span id="searchClear" class="glyphicon glyphicon-remove-circle"></span>
|
||||
</div>
|
||||
<!--<input type="text" name="hipaaSearchFilter" id="hipaaSearchFilter" class="{{getInputClass}}" value="{{getHipaaSearchFilter}}" placeholder="Search User" style="{{getSearchFilterStyling}}">-->
|
||||
<input type="date" id="beginDateInput" class="{{getInputClass}}" value="{{getBeginDate}}" style="{{getDateRangeStyling}}">
|
||||
<input type="date" id="endDateInput" class="{{getInputClass}}" value="{{getEndDate}}" style="{{getDateRangeStyling}}">
|
||||
<select id="actionFilter" name="actionFilter" class="{{getSelectClass}}" style="{{getSelectStyling}}">
|
||||
<template name="hipaaRibbon">
|
||||
<div id="hipaaRibbon" class="row {{getRibbonClass}}">
|
||||
<div class="filter col-xs-12 col-sm-4 col-md-6">
|
||||
<span>User</span>
|
||||
<div class="btn-group">
|
||||
<input type="text" name="hipaaSearchFilter" id="hipaaSearchFilter" value="{{getHipaaSearchFilter}}" class="form-control">
|
||||
<span id="searchClear" class="glyphicon glyphicon-remove-circle"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter col-xs-4 col-sm-3 col-md-2 text-center">
|
||||
<span>Begin Date</span>
|
||||
<input type="date" id="beginDateInput" class="{{getInputClass}}" value="{{getBeginDate}}">
|
||||
</div>
|
||||
<div class="filter col-xs-4 col-sm-3 col-md-2 text-center">
|
||||
<span>End Date</span>
|
||||
<input type="date" id="endDateInput" class="{{getInputClass}}" value="{{getEndDate}}">
|
||||
</div>
|
||||
<div class="filter col-xs-4 col-sm-2 text-center">
|
||||
<span>Action</span>
|
||||
<select id="actionFilter" name="actionFilter" class="{{getSelectClass}}">
|
||||
<option id="filterCreatedButton" value="create">Created</option>
|
||||
<option id="filterModifiedButton" value="modify">Modified</option>
|
||||
<option id="filterViewedButton" value="viewed">Viewed</option>
|
||||
<option id="filterAllButton" selected value="">All</option>
|
||||
</select>
|
||||
</aside>
|
||||
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -39,36 +39,6 @@ Meteor.startup(function(){
|
||||
});
|
||||
|
||||
Template.hipaaRibbon.helpers({
|
||||
getSearchFilterStyling: function () {
|
||||
// spacing between inputs should be 20px each
|
||||
// if the overall width of the audit log is less than N, show the fullwidth
|
||||
if(Session.get('ribbonWidth') > ribbonBreakPoint){
|
||||
var searchFilterWidth = Session.get('ribbonWidth') - 575;
|
||||
return "margin-left: 10px; margin-right: 5px; width:" + searchFilterWidth + "px;";
|
||||
}else{
|
||||
var ribbonWidth = Session.get('ribbonWidth') - 40;
|
||||
return "width: " + ribbonWidth + "px; margin-left: 10px; margin-right: 10px;";
|
||||
}
|
||||
},
|
||||
getDateRangeStyling: function () {
|
||||
// spacing between inputs should be 20px each
|
||||
// date range inputs shouldn't be less than 170 px
|
||||
// if the overall width of the audit log is less than N, dont even show them
|
||||
if(Session.get('ribbonWidth') > ribbonBreakPoint){
|
||||
return "visbility: visible; margin-left: 5px; margin-right: 5px; width: 170px;";
|
||||
}else{
|
||||
return "display: none; visibility: hidden";
|
||||
}
|
||||
},
|
||||
getSelectStyling: function () {
|
||||
// spacing between inputs should be 20px each
|
||||
// select input should be the same as daterange
|
||||
if(Session.get('ribbonWidth') > ribbonBreakPoint){
|
||||
return "visbility: visible; margin-left: 5px; margin-right: 5px; width: 170px;";
|
||||
}else{
|
||||
return "display: none; visibility: hidden";
|
||||
}
|
||||
},
|
||||
getRibbonClass: function () {
|
||||
var hipaaAuditLog = Session.get('HipaaAuditLogConfig');
|
||||
if (hipaaAuditLog && hipaaAuditLog.classes) {
|
||||
|
||||
@@ -1,46 +1,113 @@
|
||||
@tableTextPrimaryColor: white;
|
||||
@tableTextSecondaryColor: #91b9cd;
|
||||
|
||||
#hipaaRibbon{
|
||||
position: static;
|
||||
width: 100%;
|
||||
padding-top: 10px;
|
||||
height: 60px;
|
||||
//background-color: lightgray;
|
||||
@inputBackgroundColor: #2c363f;
|
||||
@inputPlaceholderColor: lightgray;
|
||||
|
||||
input[type="date"]{
|
||||
@hipaaRibbonBgColor: #151a1f;
|
||||
|
||||
#hipaaRibbon {
|
||||
background-color: @hipaaRibbonBgColor;
|
||||
border-bottom: solid 1px #6fbde2;
|
||||
color: @tableTextPrimaryColor;
|
||||
margin: 0 0 2px;
|
||||
padding: 20px 5%;
|
||||
|
||||
.filter {
|
||||
> span {
|
||||
font-size: 15px;
|
||||
display: block;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
min-height: 70px;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="date"] {
|
||||
padding-left: 10px;
|
||||
}
|
||||
input[type="text"]{
|
||||
// padding-left: 10px;
|
||||
// padding-right: 10px;
|
||||
}
|
||||
select{
|
||||
|
||||
select {
|
||||
display: inline-block;
|
||||
height: 40px;
|
||||
// padding-left: 10px;
|
||||
// padding-right: 10px;
|
||||
}
|
||||
|
||||
#hipaaSearchFilter{
|
||||
color: black;
|
||||
}
|
||||
//---------------------------------------
|
||||
// Bootstrap users
|
||||
.form-control{
|
||||
display: inline-block !important;
|
||||
}
|
||||
#searchClear {
|
||||
position: absolute;
|
||||
right: 14px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
height: 14px;
|
||||
margin: auto;
|
||||
font-size: 14px;
|
||||
input, select {
|
||||
height: 40px;
|
||||
padding: 20px;
|
||||
cursor: pointer;
|
||||
color: #ccc;
|
||||
border: none;
|
||||
background-color: @inputBackgroundColor;
|
||||
color: @inputPlaceholderColor;
|
||||
font-size: 10pt;
|
||||
font-weight: normal;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
|
||||
transition: all 0.15s ease;
|
||||
-webkit-transition: all 0.15s ease;
|
||||
|
||||
&:active, &:hover {
|
||||
background-color: @inputBackgroundColor;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
width: 100%;
|
||||
|
||||
#hipaaSearchFilter{
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
#searchClear {
|
||||
position: absolute;
|
||||
right: 14px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
height: 14px;
|
||||
margin: auto;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
color: #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// @media only screen and (max-width: 850px) {
|
||||
//
|
||||
// }
|
||||
|
||||
@media only screen and (max-width: 1161px) {
|
||||
#hipaaRibbon {
|
||||
padding: 20px 3%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
#hipaaRibbon {
|
||||
padding: 20px 1%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
#hipaaRibbon {
|
||||
.filter {
|
||||
&:first-child {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user