Introduction of table actionbar

This commit is contained in:
Frédéric Vachon 2015-02-23 10:45:29 -05:00
parent 7f457c455c
commit 0028f6ebc6
6 changed files with 113 additions and 100 deletions

View File

@ -85,7 +85,7 @@ module.exports = function (grunt) {
uglify: {
compress: {
files: [{
'<%= project.build %>/js/adagios.js' : [
'<%= project.build %>/js/adagios.min.js' : [
'<%= project.app %>/app.js',
'<%= project.app %>/components/config/config.js',
'<%= project.app %>/components/live/live.js',
@ -99,6 +99,7 @@ module.exports = function (grunt) {
'<%= project.app %>/components/tactical/status_overview/status_overview.js',
'<%= project.app %>/components/tactical/current_health/current_health.js',
'<%= project.app %>/components/tactical/top_alert_producers/top_alert_producers.js',
'<%= project.app %>/components/table/actionbar/actionbar.js',
'<%= project.app %>/components/table/table.js',
'<%= project.app %>/components/table/cell_duration/cell_duration.js',
'<%= project.app %>/components/table/cell_host/cell_host.js',

View File

@ -0,0 +1,96 @@
<menu class="filters">
<ul class="filters__list clearfix">
<li class="filters__item filters__item--problems">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersProblems"
aria-expanded="false"
aria-controls="filtersProblems">
<span>All</span>
<i class="ico-down-dir"></i>
</button>
<div class="filters__panel collapse" id="filtersProblems">
<ul class="filters__sublist">
<li class="filters__subitem">
<a class="filters__link state--current" href="#">All</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All OK</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All Acknowledged</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All in Downtime</a>
</li>
</ul>
</div>
</li>
<li class="filters__item filters__item--recheck">
<button class="filters__button" type="button">
<span class="visuallyhidden">Recheck</span>
<i class="ico-arrows-cw"></i>
</button>
</li>
<li class="filters__item filters__item--acknowledge"
data-mover="true">
<button class="filters__button" type="button">
<span class="visuallyhidden">Acknowledge</span>
<i class="ico-thumbs-up"></i>
</button>
</li>
<li class="filters__item filters__item--downtime"
data-mover="true">
<button class="filters__button" type="button">
<span class="visuallyhidden">Downtime</span>
<i class="ico-clock"></i>
</button>
</li>
<li class="filters__item filters__item--more clearfix">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersMore"
aria-expanded="false"
aria-controls="filtersMore">
<span>More</span>
<i class="ico-down-dir"></i>
</button>
<div class="filters__panel collapse" id="filtersMore">
<ul class="filters__sublist">
<li class="filters__subitem">
<a class="filters__link" href="#">More I</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">More II</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">More III</a>
</li>
</ul>
</div>
</li>
<li class="filters__item filters__item--settings">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersSettings"
aria-expanded="false"
aria-controls="filtersSettings">
<span class="visuallyhidden">Filters Settings</span>
<i class="ico-cog"></i>
</button>
<div class="filters__panel collapse" id="filtersSettings">
<ul class="filters__sublist">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
</div>
</li>
</ul>
</menu>

View File

@ -0,0 +1,12 @@
angular.module('adagios.table.actionbar', [])
.controller('TableActionbarCtrl', [function () {
angular.noop();
}])
.directive('adgTableActionbar', function () {
return {
restrict: 'E',
templateUrl: 'components/table/actionbar/actionbar.html'
};
});

View File

@ -14,5 +14,4 @@ angular.module('adagios.table.cell_host', ['adagios.table'])
.run(['tableConfig', function (tableConfig) {
tableConfig.cellToFieldsMap.host = [ 'host_state', 'host_name' ];
}]);

View File

@ -31,103 +31,8 @@
</li>
</ul>
</nav>
<menu class="filters">
<ul class="filters__list clearfix">
<li class="filters__item filters__item--problems">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersProblems"
aria-expanded="false"
aria-controls="filtersProblems">
<span>All</span>
<i class="ico-down-dir"></i>
</button>
<div class="filters__panel collapse" id="filtersProblems">
<ul class="filters__sublist">
<li class="filters__subitem">
<a class="filters__link state--current" href="#">All</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All OK</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All Acknowledged</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">All in Downtime</a>
</li>
</ul>
</div>
</li>
<li class="filters__item filters__item--recheck">
<button class="filters__button" type="button">
<span class="visuallyhidden">Recheck</span>
<i class="ico-arrows-cw"></i>
</button>
</li>
<li class="filters__item filters__item--acknowledge"
data-mover="true">
<button class="filters__button" type="button">
<span class="visuallyhidden">Acknowledge</span>
<i class="ico-thumbs-up"></i>
</button>
</li>
<li class="filters__item filters__item--downtime"
data-mover="true">
<button class="filters__button" type="button">
<span class="visuallyhidden">Downtime</span>
<i class="ico-clock"></i>
</button>
</li>
<li class="filters__item filters__item--more clearfix">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersMore"
aria-expanded="false"
aria-controls="filtersMore">
<span>More</span>
<i class="ico-down-dir"></i>
</button>
<div class="filters__panel collapse" id="filtersMore">
<ul class="filters__sublist">
<li class="filters__subitem">
<a class="filters__link" href="#">More I</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">More II</a>
</li>
<li class="filters__subitem">
<a class="filters__link" href="#">More III</a>
</li>
</ul>
</div>
</li>
<li class="filters__item filters__item--settings">
<button class="filters__button"
type="button"
data-toggle="collapse"
data-target="#filtersSettings"
aria-expanded="false"
aria-controls="filtersSettings">
<span class="visuallyhidden">Filters Settings</span>
<i class="ico-cog"></i>
</button>
<div class="filters__panel collapse" id="filtersSettings">
<ul class="filters__sublist">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
</div>
</li>
</ul>
</menu>
<adg-table-actionbar></adg-table-actionbar>
<div class="tab-content">
<div role="tabpanel" class="problems tab-pane active" id="openProblems">

View File

@ -19,7 +19,7 @@
<script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="build/js/compressed.js"></script>
<script src="build/js/adagios.min.js"></script>
</head>
<body class="layout color-scheme--dark">