forked from asantoflaminio/TechHaus_Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rooms.html
120 lines (110 loc) · 6.1 KB
/
rooms.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TechHaus</title>
<link rel="stylesheet" type="text/css" href="rooms.css"/>
<script src="js/jquery-3.3.1.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<nav>
<a href="./home_barra.html">
<img src="Iconos/Logo4.png" alt="Home" id="logo">
</a>
<div class="dropdown" >
<img src="Iconos/Settings.png" alt="Settings" id="settings_icon" class="navbar_item">
<div id="myDropdown" class="dropdown-content" >
<a href="./help.html">Help</a>
</div>
</div>
<a class="navbar_item" href="./routines.html">Routines</a>
<a class="navbar_item" href="./rooms.html">Rooms</a>
<a class="navbar_item" href="./devices.html">Devices</a>
</nav>
<!-- Add Room Modal -->
<div class="modal fade" id="add_room_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Add Room</h5>
<button type="button" class="close" data-dismiss="modal" onclick="cancel_add(event,this);" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="name-tag">Name*</p>
<a href="#" role="button" data-toggle="popover" data-content="Name is required and must contain at least 3 letters, and no 'ñ' or symbols"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="name_input">
<div><p id="room-tag">Type*</p>
<a href="#" role="button" data-toggle="popover" data-content="Type is required. A default icon is provided for each type of room" class="more_info3"><img src="Iconos/question.png" class="more_info2"></a>
</div>
<select class="text-input" id="room_input">
<option>Kitchen</option>
<option>Dining Room</option>
<option>Living Room</option>
<option>Garage</option>
<option>Bedroom</option>
<option>Office</option>
<option>TV Room</option>
<option>Laundry</option>
<option>Garden</option>
<option>Bathroom</option>
<option>Other</option>
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancel_add(event,this);">Cancel</button>
<button type="button" class="btn btn-primary" onclick="add_room(event,this)">Add</button>
</div>
</div>
</div>
</div>
<!-- Delete Room Modal -->
<div class="modal fade" id="delete_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" id="mymodal2">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Delete Room</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="msg-tag"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" onclick="delete_room(event, this)" data-dismiss="modal">Confirm</button>
</div>
</div>
</div>
</div>
<section>
<div class="category_title">
<h1 id="title" class="title_elements">Rooms</h1>
<img src="https://www.materialui.co/materialIcons/content/add_circle_grey_192x192.png" alt="add" id="addicon" class="title_elements" data-toggle="modal" data-target="#add_room_popup">
</div>
<div id="icons">
</div>
</section>
<footer>
<div id="footer">
<p>Copyright © 2018, TechHaus. All rights reserved.</p>
</div>
</footer>
<script src="js/api.js"></script>
<script src="js/rooms.js"></script>
<!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=ShowErrorPage.html">
</noscript>
</body>
</html>