-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
107 lines (89 loc) · 4.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!doctype html>
<html lang="zh-cn" ng-app="sf.mainApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Todo</title>
<link rel="icon" href="app/images/favicon.ico">
<link rel="stylesheet" href="bower_components/bootstrap-3.2.0-dist/css/bootstrap.css"/>
<link rel="stylesheet" href="app/css/app.css"/>
</head>
<body ng-controller="MainCtrl">
<!-- menu -->
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" ui-sref="home">Todo</a>
</div>
<div class="collapse navbar-collapse">
<!-- Menu -->
<ul class="nav navbar-nav">
<li ng-repeat="menu in menus" ng-class="{'dropdown':menu.children && menu.children.length>0,'open':menu.open, 'active':$state.includes(menu.name)}">
<a ui-sref="{{menu.name}}" ng-show="!menu.children || menu.children.length == 0">
{{menu.label}}
</a>
<a ng-show="menu.children && menu.children.length > 0">
{{menu.label}}<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li ng-repeat="item in menu.children">
<a ui-sref="{{item.name}}">{{item.label}}</a>
</li>
</ul>
</li>
<li>
<a href="home.html">Home</a>
</li>
</ul>
<form class="navbar-form navbar-right" role="form" autocomplete="off">
<div class="wrap-icon-input">
<span class="glyphicon glyphicon-user"></span>
<input type="text" name="username" class="form-control input-sm" placeholder="用户名">
</div>
<div class="wrap-icon-input">
<span class="glyphicon glyphicon-lock"></span>
<input type="login" name="password" class="form-control input-sm" placeholder="密码">
</div>
<a type="submit" href="login.html" class="btn btn-primary btn-sm">登录</a>
<a type="button" href="logup.html" class="btn btn-default btn-sm">注册</a>
</form>
</div>
<!--/.navbar-collapse -->
</div>
</nav>
<!-- Main -->
<div ui-view>
</div>
<!-- footer -->
<hr>
<footer>
<p>© Company 2014</p>
</footer>
</body>
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
-->
<script src="bower_components/jquery/jquery-1.11.1.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<!--script src="bower_components/angular-route/angular-route.js"></script>-->
<script src="bower_components/angular-ui/angular-ui-router.min.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
<script src="app/js/app.js"></script>
<script src="app/js/common/config.js"></script>
<!-- Common Service -->
<script src="app/js/infra/menu_service.js"></script>
<!-- Bussiness Ctrls & routers & services -->
<script src="app/js/test/helloWorld_router.js"></script>
<script src="app/js/test/helloWorld_ctrl.js"></script>
<script src="app/js/test/test_ctrl.js"></script>
<script src="app/js/projects/projects_router.js"></script>
<script src="app/js/projects/projects_ctrl.js"></script>
<script src="app/js/tasks/tasks_router.js"></script>
<script src="app/js/tasks/tasks_ctrl.js"></script>
<script src="app/js/projects/project_router.js"></script>
<script src="app/js/projects/project_ctrl.js"></script>
<!-- load in the end -->
<script src="app/js/common/routers.js"></script>
<script src="app/js/infra/main_ctrl.js"></script>
</html>