-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (95 loc) · 3.79 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
{% extends 'base.html' %}
{% block title %}
<title>Inventory Managmnet App</title>
{% endblock %}
{% block content %}
<main>
<div class="container-fluid">
<h1 class="mt-4">Dashboard</h1>
<ol class="breadcrumb mb-4">
<li class="breadcrumb-item active">Dashboard</li>
</ol>
<div class="card mb-4">
<div class="card-header">Products</div>
<div class="card-body">
<div class="card mb-4">
<div class="card-header">
<i class="fas fa-table mr-1"></i>
Products Table
</div>
<div class="card-body">
<div class="table-responsive">
{% if products|length < 1 %}
<h4>There are no Products, add one above</h4>
{% else %}
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
{% for product in products %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="card mb-4">
<div class="card-header">Locations</div>
<div class="card-body">
<div class="card mb-4">
<div class="card-header">
<i class="fas fa-table mr-1"></i>
Locations Table
</div>
<div class="card-body">
<div class="table-responsive">
{% if locations|length < 1 %}
<h4>There are no Locations, add one above</h4>
{% else %}
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>Location Name</th>
<th>Date</th>
<th>Actions</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Location Name</th>
<th>Date</th>
<th>Actions</th>
</tr>
</tfoot>
<tbody>
{% for location in locations %}
<tr>
<td>{{ location.location_id }}</td>
<td>{{ location.date_created.date() }}</td>
<td>
<a href="/delete-location/{{ location.location_id }}">Delete</a>
<br>
<a href="/update-location/{{ location.location_id }}">Update</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</main>
{% endblock %}