Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
205 lines (187 sloc) 8.4 KB
@(title: String, scripts: Html = Html(""), css: Html = Html(""))(content: Html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- wykorzystanie najnowszego możliwego silnika przeglądarki, jeżeli użytkownik
korzysta z Internet Explorera-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--dopasowanie strony/aplikacji do szerokości ekranu urządzenia-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@title</title>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("bootstrap/css/bootstrap.min.css")">
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/simple-sidebar.css")">
@css
<link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
<script type="text/javascript" src="@routes.Assets.versioned("javascripts/jquery-3.2.1.min.js")"></script>
<script type="text/javascript" src="@routes.Assets.versioned("bootstrap/js/bootstrap.min.js")"></script>
</head>
<body>
<div class="container">
<header>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#mainmenu"
aria-expanded="false"
id="nav-switch">
<span class="sr-only">Przełącznik nawigacji</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Sterownik domowy</a>
</div>
<div class="collapse navbar-collapse" id="mainmenu">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="@routes.HomeController.homeLayout()">
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
Plan mieszkania</a>
</li>
<li>
<a href="@routes.HomeController.dashboard()">
<span class="glyphicon glyphicon-dashboard" aria-hidden="true"></span>
Panel informacyjny</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>
Elementy systemu
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="@routes.RoomController.list()">
<span class="glyphicon glyphicon-home" aria-hidden="true"></span>
Pomieszczenia</a>
</li>
<li>
<a href="@routes.DriverController.list()">
<span class="glyphicon glyphicon-road" aria-hidden="true"></span>
Sterowniki
</a>
</li>
<li>
<a href="@routes.SensorController.list()">
<span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span>
Czujniki
</a>
</li>
<li>
<a href="@routes.AlarmController.list()">
<span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
Alarmy</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
Konfiguracja
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="@routes.SensorTypeController.list()">
<span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
Typy sensorów</a>
</li>
</ul>
</li>
<li><a href="@routes.HomeController.help()">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
Pomoc</a></li>
</ul>
<ul class="nav navbar-nav navbar-left navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
Profil
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="@routes.HomeController.profile()">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
Moje konto
</a>
</li>
<li role="separator" class="divider"></li>
<li>
<a href="#">
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
Wyloguj</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="col-sm-12">
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li>
<a href="#menu-toggle" id="menu-toggle-fold">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
Zwiń</a>
</li>
<li class="sidebar-brand">
<span id="detailsSensorId">&nbsp;</span>
</li>
<li>
<span class="bold">Typ:</span>
<span id="detailsSensorType">&nbsp;</span>
</li>
<li>
<span class="bold">Sterownik:</span>
<span id="detailsSensorDriver" style="">&nbsp;</span>
</li>
<li>
<span class="bold">Pomieszczenie:</span>
<span id="detailsSensorRoom" style="">&nbsp;</span>
</li>
<li>
<span class="bold">Stan:</span>
<span id="detailsSensorState">&nbsp;</span>
</li>
<li>
<span class="bold">Wartość:</span>
<span id="detailsSensorValue" style="">&nbsp;</span>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 content">
@content
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
Copyright © Maciej Stępniak 2017
</footer>
<script type="text/javascript" src="@routes.Assets.versioned("javascripts/main.js")"></script>
<script type="text/javascript" src="@routes.Assets.versioned("javascripts/commonUtilitiesModule.js")"></script>
<script type="text/javascript" src="@routes.Assets.versioned("javascripts/planUtilitiesModule.js")"></script>
@scripts
</body>
</html>