-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (116 loc) · 4.62 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Appointments</title>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="styles/general_reset.css">
<link rel="stylesheet" href="styles/styles.css">
<link rel="stylesheet" href="styles/details-style.css">
</head>
<body>
<div class="main-container">
</div>
<!--TEMPLATE Home screen-->
<script id="home" type = "text/HTML">
<header>
<i class="fa fa-calendar-o"></i>
<h1 class="header"> Appointments </h1>
</header>
<form class="search-form">
<input class="search-bar" placeholder="Search">
</form>
<% for (var key in m) {%>
<ul class="active-appointments">
<a class="btn-details" href="#appt/details">Details
</a>
<a class="btn-delete" href="#appt/delete">X
</a>
<li>
<span><%- m[key].title %></span>
<span><%- m[key].date %></span>
<span><%- m[key].time %></span>
<span><%- m[key].address %></span>
</li>
<% } %>
</ul>
<footer class="new-appointment-footer">
<a class="btn-submit-new" href="#appt/new">✙
</a>
</footer>
</script>
<!--TEMPLATE new appointments-->
<script id="new-appointment" type = "text/HTML">
<header>
<i class="fa fa-calendar-o"></i>
<h1 class="header"> New Appointment </h1>
</header>
<div class="new-appointment-container">
<form class="appointment-form">
<input name="title-input" type="text" placeholder="Title" autofocus>
<input name="date-input"placeholder="Date">
<input name="time-input" placeholder="Time">
<input name="address-input" placeholder="Address">
</form>
</div>
<footer class="new-appointment-footer">
<a class="btn-save-new" href="#home">✓
</a>
</footer>
</script>
<!--TEMPLATE editing appointments-->
<script id="edit-appointment" type = "text/HTML">
<header class="edit-header">
<i class="fa fa-calendar-o"></i>
<h1>Edit Appointment</h1>
</header>
<div class="edit-appointment-form">
<form class="edit-appointment-form">
<input class="title-input" <%- _.values(m).title %>>
<input class="date-input"<%- _.values(m).date %>>
<input class="time-input"<%- _.values(m).time %>>
<input class="address-input"<%- _.values(m).address %>>
</form>
</div>
<footer class="edit-footer">
<a class="btn-save" href="#home"><p>✓</p></a>
</footer>
</script>
<!--TEMPLATE details of appointments-->
<script id="details" type="text/HTML">
<header>
<i class="fa fa-calendar-o"></i>
<h1 class="header"> Details </h1>
</header>
<div class="details-page">
<span class="details-appointment-title"></span>
<span class="details-appointment-date"></span>
<span class="details-appointment-time"></span>
<span class="details-appointment-address"></span>
<span class="details-appointment-map"></span>
<div class="details-weather-container"></div>
<span class="details-appointment-notes"></span>
<button class="btn-delete-appointment">X</button>
</div>
<footer class="details-footer">
<a class="btn-home" a href="#home"><p>←</p></a>
<a class="btn-edit" a href="#appt/edit"><p>Edit</p></a>
</footer>
</script>
<!-- end of details-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="bower_components/underscore/underscore-min.js"></script>
<script src="bower_components/backbone/backbone-min.js"></script>
<script src="js/app.js"></script>
<script src="js/router.js"></script>
<script src="js/show.js"></script>
<script src="js/appt.js"></script>
<script src="js/object-store.js"></script>
<script src="js/appt-controller.js"></script>
<script src="js/appt-edit-controller.js"></script>
<script src="js/appt-details-controller.js"></script>
<script src="js/appt-new-controller.js"></script>
<script src="js/init.js"></script>
</body>
</html>