Skip to content

Commit

Permalink
Merge pull request #22 from Cingulara/feature/add-stig-types-fully
Browse files Browse the repository at this point in the history
Feature/add stig types fully
  • Loading branch information
Cingulara authored Feb 23, 2019
2 parents bfebc47 + e413f94 commit 48c3c92
Show file tree
Hide file tree
Showing 12 changed files with 871 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION ?= 0.3
VERSION ?= 0.4
NAME ?= "openstig-web"
AUTHOR ?= "Dale Bingham"
PORT_EXT ?= 9000
Expand Down
7 changes: 7 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1238,4 +1238,11 @@ a.btn:focus {
.vulnNotReviewed {
background-color: silver;
margin: 3px 0px 3px 0px;
}
.checklistSystemsList {
margin: 3px 0px 10px 0px;
width: 250px;
}
.checklistSystemsListLabel {
margin: 3px;
}
1 change: 0 additions & 1 deletion buildDockerImage.sh

This file was deleted.

28 changes: 24 additions & 4 deletions charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ <h5><small>Help and Support</small></h5>
<a href="index.html"><i class="fa fa-fw fa-dashboard"></i><span> Dashboard </span> </a>
</li>
<li class="submenu">
<a href="checklists.html"><i class="fa fa-fw fa-bars"></i><span> Checklists </span> </a>
<a href="checklists.html"><i class="fa fa-fw fa-table"></i><span> Checklists </span> </a>
</li>
<li class="submenu">
<a href="templates.html"><i class="fa fa-fw fa-bars"></i><span> Templates </span> </a>
<a href="templates.html"><i class="fa fa-fw fa-list"></i><span> Templates </span> </a>
</li>
<li class="submenu">
<a class="active" href="charts.html"><i class="fa fa-fw fa-area-chart"></i><span> Reports </span> </a>
Expand All @@ -122,7 +122,7 @@ <h5><small>Help and Support</small></h5>
<div class="content-page">
<!-- Start content -->
<div class="content">
<div class="container-fluid">
<div class="container-fluid">
<div class="row">
<div class="col-xl-12">
<div class="breadcrumb-holder">
Expand All @@ -136,7 +136,26 @@ <h1 class="main-title float-left">Reports</h1>
</div>
</div>
<!-- end row -->

<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-filter"></i> Filters</h3>
</div>
<div class="card-body">
<div class="checklistSystemsList">
<form class="form-inline">
<label class="checklistSystemsListLabel" id="checklistSystemsListLabel" for="checklistSystemFilter">System Filter</label>
<select class="form-control" id="checklistSystemFilter" onchange="getReportsBySystem();">
<option value="All">All</option>
</select>
</form>
</div>
</div><!-- end card body -->
</div><!-- end card-->
</div>
</div><!-- end row-->

<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="card mb-3">
Expand Down Expand Up @@ -225,6 +244,7 @@ <h1 class="main-title float-left">Reports</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>

<script>
getChecklistSystemsForReportFilter();
getChecklistTypeBreakdown();
// });
</script>
Expand Down
18 changes: 14 additions & 4 deletions checklists.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ <h5><small>Help and Support</small></h5>
<a href="index.html"><i class="fa fa-fw fa-dashboard"></i><span> Dashboard </span> </a>
</li>
<li class="submenu">
<a class="active" href="checklists.html"><i class="fa fa-fw fa-bars"></i><span> Checklists </span> </a>
<a class="active" href="checklists.html"><i class="fa fa-fw fa-table"></i><span> Checklists </span> </a>
</li>
<li class="submenu">
<a href="templates.html"><i class="fa fa-fw fa-bars"></i><span> Templates </span> </a>
<a href="templates.html"><i class="fa fa-fw fa-list"></i><span> Templates </span> </a>
</li>
<li class="submenu">
<a href="charts.html"><i class="fa fa-fw fa-area-chart"></i><span> Reports </span> </a>
Expand Down Expand Up @@ -141,8 +141,16 @@ <h1 class="main-title float-left">Checklists</h1>
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-table"></i> My Checklists</h3>
</div>
<div class="card-body">
</div>
<div class="card-body">
<div class="checklistSystemsList">
<form class="form-inline">
<label class="checklistSystemsListLabel" id="checklistSystemsListLabel" for="checklistSystemFilter">System Filter</label>
<select class="form-control" id="checklistSystemFilter" onchange="getChecklistsBySystem();">
<option value="All">All</option>
</select>
</form>
</div>
<div id="tblChecklistListing"></div>
</div><!-- end card body -->
</div><!-- end card-->
Expand Down Expand Up @@ -187,10 +195,12 @@ <h3><i class="fa fa-table"></i> My Checklists</h3>
<!-- BEGIN Java Script for this page -->
<script src="js/moment.min.js"></script>
<script src="js/openstig.js"></script>
<script src="js/jquery.blockUI.js"></script>
<script>
$(document).ready(function() {
// calls to get the checklist data from the API
getChecklists(false);
getChecklistSystemsForChecklistFilter();
} );
</script>
<!-- END Java Script for this page -->
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ <h5><small>Help and Support</small></h5>
<a class="active" href="index.html"><i class="fa fa-fw fa-dashboard"></i><span> Dashboard </span> </a>
</li>
<li class="submenu">
<a href="checklists.html"><i class="fa fa-fw fa-bars"></i><span> Checklists </span> </a>
<a href="checklists.html"><i class="fa fa-fw fa-table"></i><span> Checklists </span> </a>
</li>
<li class="submenu">
<a href="templates.html"><i class="fa fa-fw fa-bars"></i><span> Templates </span> </a>
<a href="templates.html"><i class="fa fa-fw fa-list"></i><span> Templates </span> </a>
</li>
<li class="submenu">
<a href="charts.html"><i class="fa fa-fw fa-area-chart"></i><span> Reports </span> </a>
Expand Down Expand Up @@ -242,6 +242,7 @@ <h3><i class="fa fa-table"></i> Top 5 Latest Checklists</h3>

<script src="js/moment.min.js"></script>
<script src="./js/openstig.js"></script>
<script src="js/jquery.blockUI.js"></script>

<!-- Counter-Up-->
<script src="assets/plugins/waypoints/lib/jquery.waypoints.min.js"></script>
Expand Down
Loading

0 comments on commit 48c3c92

Please sign in to comment.