-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
139 lines (127 loc) · 6.86 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en" ng-app="Bookmarks">
<head>
<meta charset="UTF-8">
<title>Installation - Angular JS</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body ng-controller="MainController">
<div class="wrapper">
<!-- header -->
<header class="header header-fixed navbar container-fluid">
<div class="row">
<div class="brand col-sm-3">
<a href="#" class="navbar-brand">
<i class="glyphicon glyphicon-heart-empty"></i>
<span class="heading-font">Bookmarks App</span>
</a>
</div>
</div>
</header>
<!-- /header -->
<div class="box">
<div class="row">
<!-- sidebar -->
<div class="column col-sm-3" id="sidebar">
<p style="display:none" class="nav-title">Welcome {{userName}}!</p> <!-- Para luego agregar algo de usuarios -->
<p class="nav-title">
Categories
<a href="#" class="pull-right"><i class="glyphicon glyphicon-folder-open"></i></a>
</p>
<ul class="nav">
<li>
<a href="#" ng-click="setCurrentCategory(undefined)"><i class="glyphicon glyphicon-tags"></i>All Categories</a>
</li>
<li ng-repeat="category in categories" ng-class="{active: isCurrentCategory(category)}">
<a href="#" ng-click="setCurrentCategory(category)"> <i class="glyphicon glyphicon-tags"></i>{{category}}</a>
</li>
</ul>
</div>
<!-- /sidebar -->
<!-- main here -->
<div class="column col-sm-9" id="main">
<div class="padding">
<div class="full col-sm-9">
<!-- content -->
<h2>
Category: {{currentCategory || 'All Categories'}}
<a href="#" class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target="#bookmarkModal">
<i class="glyphicon glyphicon-plus-sign"></i> New bookmark
</a>
</h2>
<ul>
<li ng-repeat="bookmark in bookmarks | filter: {category: currentCategory}">
<p>
<a href="{{bookmark.url}}">{{bookmark.name}}</a>
<i class="glyphicon glyphicon-trash"></i>
<i class="glyphicon glyphicon-pencil"></i><br/>
<small>{{bookmark.url}}</small>
</p>
</li>
</ul>
</div><!-- /col-9 -->
</div><!-- /padding -->
</div>
<!-- /main here -->
</div>
</div>
<!-- Bookmark form -->
<div class="modal fade" id="bookmarkModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true"><i class="glyphicon glyphicon-remove"></i></span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Bookmark</h4>
</div>
<div class="modal-body">
<!-- Main content here -->
<form id="bookmarkForm">
<p>Please enter the title and the url for your bookmark, all fields are required.</p>
<div class="form-group">
<label for="title">Title</label>
<div class="input-group">
<div class="input-group-addon">
<i class="glyphicon glyphicon-bookmark"></i>
</div>
<input ng-model="bookmark.title" id="title" class="form-control" type="text" placeholder="Enter the title">
</div>
</div>
<div class="form-group">
<label for="url">URL</label>
<div class="input-group">
<div class="input-group-addon">
<i class="glyphicon glyphicon-link"></i>
</div>
<input ng-model="bookmark.url" id="url" class="form-control" type="url" placeholder="Enter the URL">
</div>
</div>
<div class="form-group">
<label for="category">Category</label>
<div class="input-group">
<div class="input-group-addon">
<i class="glyphicon glyphicon-folder-open"></i>
</div>
<select ng-model="bookmark.category" ng-options="value for value in categories" id="category" class="form-control">
</select>
</div>
</div>
</form>
<!-- /Main content here -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button ng-click="save(bookmark)" type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</div>
<!-- Latest compiled and minified JavaScript -->
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.1/angular.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>