Migrate Log view to ui-router

This commit is contained in:
Kyle Johnson 2015-03-03 08:00:24 -05:00
parent 2ea43492bb
commit a4c5f83c8c
3 changed files with 15 additions and 19 deletions

View File

@ -88,6 +88,11 @@ ZoneMinder.config(function($stateProvider, $urlRouterProvider) {
templateUrl: '/views/host.html'
})
.state('log', {
url: '/log',
templateUrl: '/views/log.html'
})
///////////////////////////
// Zones - Edit and List //
///////////////////////////

View File

@ -17,7 +17,7 @@
<li ui-sref-active="active"><a ui-sref="events">Events</a></li>
<li ui-sref-active="active"><a href="?view=timeline">Timeline</a></li>
<li ui-sref-active="active"><a ui-sref="options.system">Options</a></li>
<li ui-sref-active="active"><a href="?view=log">Logs</span></a></li>
<li ui-sref-active="active"><a ui-sref="log">Logs</span></a></li>
<li ui-sref-active="active"><a href="?view=devices">Devices</a></li>
<li ui-sref-active="active"><a ui-sref="host">Host</a></li>
<li>

View File

@ -1,14 +1,8 @@
<?php xhtmlHeaders(__FILE__, $SLANG['SystemLog'] ); ?>
<body>
<?php include("header.php"); ?>
<div class="container-fluid" ng-controller="LogController">
<div class="row">
<div class="col-md-2">
<div id="filters">
<div class="form-group">
<label class="sr-only" for="filter[Component]">Component</label>
@ -34,9 +28,8 @@
<label class="sr-only" for="filter[Line]">Line</label>
<select class="form-control" id="filter[Line]" onchange="filterLog(this)"><option value="">Line</option></select>
</div>
</div>
</div>
</div> <!-- End .col-md-2 -->
<div class="col-md-10">
<dir-pagination-controls on-page-change="pageChanged(newPageNumber)"></dir-pagination-controls>
@ -61,9 +54,7 @@
<td>{{ log.Log.Line }}</td>
</tr>
</table>
</div> <!-- End .col-md-10 -->
</div> <!-- End .row -->
</div>
</div>
</div>
</body>
</html>