-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (63 loc) · 2.41 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
<!doctype html>
<html lang="en" ng-app="Ads">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="css/reset.css"/>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"/>
<link href="http://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="node_modules/ng-tags-input/build/ng-tags-input.css">
<link rel="stylesheet" href="css/main.css"/>
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/@uirouter/angularjs/release/angular-ui-router.js"></script>
<script src="node_modules/ng-tags-input/build/ng-tags-input.js"></script>
<script src="js/app.js"></script>
<script src="js/services/randomString.js"></script>
<script src="js/app-controller.js"></script>
<script src="js/services/dataStorage.js"></script>
<script src="js/services/addsModel.js"></script>
<script src="js/services/tagsModel.js"></script>
</head>
<body ng-controller="AdsController as ads">
<header class="container-fluid">
<h1 class="text-center">Ads</h1>
<ul class="nav nav-pills container">
<li ng-click="ads.active = 1" ng-class="{active: ads.active === 1}">
<a ui-sref="ads">Home</a>
</li>
<li ng-click="(ads.active !== 2) ? ads.clearForm() : ''; ads.active = 2;"
ng-class="{active: ads.active === 2}"
>
<a ui-sref="form-ad">Add advertisement</a>
</li>
</ul>
</header>
<div class="container search">
<div class="row search-labels">
<div class="col-md-4">
<label for="search-posts">Search by post name</label>
</div>
<div class="col-md-4">
<label for="search-tags">Search by tag</label>
</div>
<div class="col-md-4">
<label for="search-text">Search by ad`s text</label>
</div>
</div>
<div class="row search-inputs">
<div class="col-md-4">
<input ng-model="ads.search.title" id="search-posts" type="text" placeholder="Type some text to search"/>
</div>
<div class="col-md-4">
<input ng-model="ads.search.tags" id="search-tags" type="text" placeholder="Type some text to search"/>
</div>
<div class="col-md-4">
<input ng-model="ads.search.body" id="search-text" type="text" placeholder="Type some text to search"/>
</div>
</div>
</div>
<div class="container">
<div ui-view></div>
</div>
</body>
</html>