-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (61 loc) · 3.23 KB
/
index.html
File metadata and controls
67 lines (61 loc) · 3.23 KB
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
<!DOCTYPE html>
<html>
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Contacts Book app</title>
<!-- Styles -->
<style>[ng-cloak] { display: none; }</style>
<link rel="stylesheet" href="styles/styles.css">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<!-- Scripts -->
<script src="libs/angular/angular.js"></script>
<script src="libs/angular/ui-bootstrap-tpls-0.6.0.js"></script>
<script src="js/context/appContext.js"></script>
<script src="js/model/contactDef.js"></script>
<script src="js/model/dummyContacts.js"></script>
<script src="js/services/contactsBookStorage.js"></script>
<script src="js/controllers/contactsListCtrl.js"></script>
<script src="js/controllers/contactDetailsCtrl.js"></script>
</head>
</head>
<body>
<div ng-app="contactsBook">
<div ng-view></div>
<script type="text/ng-template" id="contactsList.html">
<div id="listContainer">
<h3>Contacts list</h1>
<div class = "row contactsList">
<div class="large-2 columns contactsList">
<a ng-repeat="contact in contactsList" ng-click="openDetails(contact)"
ng-mouseover="contactMouseOverHandler(contact)" ng-mouseleave="contactMouseLeaveHandler(contact)"
class="{{isSelected(contact) && 'selected' || ''}}">{{contact.firstName + ' ' + contact.lastName}}</a>
<a ng-show="!contactsList.length">List empty...</a>
</div>
</div>
<button class="btn btn-primary" ng-click="openDetails()">Add contact</button>
<button class="btn btn-primary" ng-disabled="!selectedContact" ng-click="removeContact(selectedContact)">Remove contact</button>
</div>
</script>
<script type="text/ng-template" id="contactDetails.html">
<div class="modal-header">
<h3>Contact details</h3>
</div>
<div class="modal-body">
<div>
<div>First name : <input ng-model="firstName" name="firstName" class="formInput" type="text"></div>
<div>Last name : <input ng-model="lastName" name="lastName" class="formInput" type="text"></div>
<div>Telephone : <input ng-model="telephone" name="telephone" class="formInput" type="text"></div>
<div>Emails : <input ng-model="emails" name="emails" class="formInput" type="text" popover="Separate emails with commas." popover-trigger="mouseenter"></div>
<div>Twitter name : <input ng-model="twitterName" name="twitterName" class="formInput" type="text"></div>
<div>Description : <input ng-model="description" name="description" class="formInput" type="text"></div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ok(contactForm)">Save</button>
<button class="btn btn-warning" ng-click="cancel()">Cancel</button>
</div>
</script>
</div>
</body>
</html>