Migrate Host view to ui-router

This commit is contained in:
Kyle Johnson 2015-03-03 07:56:30 -05:00
parent 8c8ae6ae6f
commit 2ea43492bb
3 changed files with 6 additions and 14 deletions

View File

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

View File

@ -19,7 +19,7 @@
<li ui-sref-active="active"><a ui-sref="options.system">Options</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 href="?view=log">Logs</span></a></li>
<li ui-sref-active="active"><a href="?view=devices">Devices</a></li> <li ui-sref-active="active"><a href="?view=devices">Devices</a></li>
<li ui-sref-active="active"><a href="?view=host">Host</a></li> <li ui-sref-active="active"><a ui-sref="host">Host</a></li>
<li> <li>
<button type="button" class="btn navbar-btn" ng-class="isRunning ? 'btn-success' : 'btn-danger'" data-toggle="modal" data-target="#myModal"> <button type="button" class="btn navbar-btn" ng-class="isRunning ? 'btn-success' : 'btn-danger'" data-toggle="modal" data-target="#myModal">
<span class="glyphicon glyphicon-off"></span> <span class="glyphicon glyphicon-off"></span>

View File

@ -1,11 +1,3 @@
<?php
xhtmlHeaders( __FILE__, 'Host' );
?>
<body>
<?php include("header.php"); ?>
<div class="container-fluid" ng-controller="HostController"> <div class="container-fluid" ng-controller="HostController">
<div class="row"> <div class="row">
@ -25,8 +17,3 @@ xhtmlHeaders( __FILE__, 'Host' );
</div> </div>
</div> </div>
<?php include("footer.php"); ?>
</body>
</html>