-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (142 loc) · 7.58 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
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
<title>WUMA16 shop it</title>
<meta charset="utf-8">
<meta name="description" content="Grupparbete - Testning">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="icon" type="image/png" sizes="32x32" href="favicon.png">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet">
<!-- Fake Module -->
<script src="fake-module.js"></script>
<!-- Our classes -->
<script src="grocery-list-item.js"></script>
<script src="grocery-list.js"></script>
<script src="app-gui.js"></script>
</head>
<body>
<div class="master-view">
<!-- HÄR ÄR MASTER VIEW</h1> -->
<div class="container">
<span id="preset" class="glyphicon glyphicon-star-empty"></span>
<div class="row mg-top-10px">
<div id="newListSuccessAlert" class="col-xs-8 alert alert-success" role="alert"><b>Grattis!</b> Du har skapat en ny shoppinglista! </div>
<div id="newListErrorAlert" class="col-xs-8 alert alert-danger" role="alert"><b>Fel!</b> Något gick snett, ny lista skapades INTE! </div>
</div>
<div class="row mg-top-10px">
<div class="col-xs-12">
<input id="listNameInput" class="col-xs-7 col-sm-5 new-list-input" type="text" name="listName" placeholder="Fyll i namn på ny lista" maxlength="16">
<button id="addList" type="button" class="app-btn">Skapa Ny Lista</button>
</div>
</div>
<div class="row mg-top-10px">
<div class="col-xs-12">
<h1 class="main-header">Dina Shopping Listor:</h1>
<div class="row">
<div class="btn-group-vertical col-xs-12 col-sm-8 master-list-view" role="group">
<p>Du har för nuvarande inga listor, vänligen skapa en ovanför.</p>
<!-- Här inne läggs listorna till -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="detail-view">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="back-button">
<p><span>< </span>Tillbaks till dina listor</p>
</div>
<article>
<button class="btn btn-primary add-new-item-mobile hidden-sm hidden-md hidden-lg">
LÄGG TILL NYTT
</button>
</article>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!-- NEW ITEM INPUT FORM -->
<form id="new-item-form" class="hidden-xs">
<div class="form-group row">
<div class="col-sm-6">
<input id="item-form-name" type="text" class="form-control item-form-name" placeholder="Namn:" maxlength="20" required>
</div>
<div class="col-sm-2">
<input id="item-form-qty" type="number" class="form-control item-form-qty" placeholder="Antal:" maxlength="100" required>
</div>
<div class="col-sm-2">
<select class="form-control item-form-category">
<option>Elektronik</option>
<option>Hygien</option>
<option>Kläder</option>
<option>Mat</option>
<option>Övrigt</option>
</select>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-primary submit-btn">Lägg Till</button>
</div>
</div>
</form>
<div class="list-name-header"></div>
<!-- Kategorisortering -->
<button type="button" id="sort-by-category" class="btn btn-secondary sort-btn btn-xs">sortera efter kategori <span class="glyphicon glyphicon-chevron-up"></span></button>
<!-- Namnsortering -->
<button type="button" id="sort-alphabetical" class="btn btn-secondary sort-btn btn-xs">sortera efter namn <span class="glyphicon glyphicon-chevron-up"></span></button>
<!-- Panel -->
<article class="table-content">
<div class="panel panel-default row col-sm-11 nopadding">
<!-- Default panel contents -->
<!-- Table -->
<div class="table-responsive">
<table class="table table-bordered">
<!-- Tablehead -->
<thead>
<tr>
<th class="thKopt">Köpt</th>
<th id="sort-by-category" class="thKategori">Kategori</th>
<th id="sort-alphabetical" class="thNamn">Namn</th>
<th class="thAntal">Antal</th>
<th class="thTaBort">Ta Bort</th>
</tr>
</thead>
<!-- Tablebody -->
<tbody class="all-items">
<!-- List items here -->
</tbody>
</table>
</div>
</div>
</article>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<form class="list-view" >
<fieldset class="form-group">
<div class="form-check form-check-inline">
<label class="form-check-label view-form">
<input type="radio" class="form-check-input" name="optionsRadios" id="showAllItems" value="option1" checked> Visa alla varor
</label>
<label class="form-check-label view-form">
<input type="radio" class="form-check-input" name="optionsRadios" id="showBoughtItems" value="option2"> Visa endast köpta varor
</label>
<label class="form-check-label view-form">
<input type="radio" class="form-check-input" name="optionsRadios" id="showUnboughtItems" value="option3"> Visa endast oköpta varor
</label>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>