Spaces:
Sleeping
Sleeping
gamingflexer
commited on
Commit
·
9ae2835
1
Parent(s):
1dc30e5
Update links and header in templates
Browse files
src/app/api/templates/catalouge.html
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
31 |
<div class="container">
|
32 |
<a class="navbar-brand" href="{% url 'index' %}" style="font-weight: bold;">HomePage</a>
|
33 |
-
<a class="navbar-brand" href="
|
34 |
<a href="{% url 'add_product_by_image' %}" class="btn btn-primary ml-1" style="padding: 0.5rem 1rem; font-size: 1rem;">Add a Product by Image</a>
|
35 |
</div>
|
36 |
</nav>
|
@@ -55,7 +55,7 @@
|
|
55 |
{% endif %}
|
56 |
<div class="card-body">
|
57 |
<h5 class="card-title">{{ product.product_name }}</h5>
|
58 |
-
<p class="card-text">Description: {{ product.
|
59 |
<p class="card-text">Brand: {{ product.brand }}</p>
|
60 |
<div class="d-flex justify-content-between align-items-center">
|
61 |
<a href="{% url 'product_detail' product.id %}" class="btn btn-primary btn-sm mb-2">View Details</a>
|
@@ -75,4 +75,4 @@
|
|
75 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
76 |
|
77 |
</body>
|
78 |
-
</html>
|
|
|
30 |
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
31 |
<div class="container">
|
32 |
<a class="navbar-brand" href="{% url 'index' %}" style="font-weight: bold;">HomePage</a>
|
33 |
+
<a class="navbar-brand" href="http://34.122.223.224:9003/" style="font-weight: bold;">Database</a>
|
34 |
<a href="{% url 'add_product_by_image' %}" class="btn btn-primary ml-1" style="padding: 0.5rem 1rem; font-size: 1rem;">Add a Product by Image</a>
|
35 |
</div>
|
36 |
</nav>
|
|
|
55 |
{% endif %}
|
56 |
<div class="card-body">
|
57 |
<h5 class="card-title">{{ product.product_name }}</h5>
|
58 |
+
<p class="card-text">Description: {{ product.parent_category }}</p>
|
59 |
<p class="card-text">Brand: {{ product.brand }}</p>
|
60 |
<div class="d-flex justify-content-between align-items-center">
|
61 |
<a href="{% url 'product_detail' product.id %}" class="btn btn-primary btn-sm mb-2">View Details</a>
|
|
|
75 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
76 |
|
77 |
</body>
|
78 |
+
</html>
|
src/app/api/templates/upload_image.html
CHANGED
@@ -7,6 +7,13 @@
|
|
7 |
<!-- Include Bootstrap CSS -->
|
8 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
9 |
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
<body>
|
11 |
<div class="container mt-5">
|
12 |
<h1 class="text-center">Upload Image</h1>
|
|
|
7 |
<!-- Include Bootstrap CSS -->
|
8 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
9 |
</head>
|
10 |
+
<header>
|
11 |
+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
12 |
+
<div class="container">
|
13 |
+
<a class="navbar-brand" href="{% url 'index' %}">Catalogue</a>
|
14 |
+
</div>
|
15 |
+
</nav>
|
16 |
+
</header>
|
17 |
<body>
|
18 |
<div class="container mt-5">
|
19 |
<h1 class="text-center">Upload Image</h1>
|