Spaces:
Sleeping
Sleeping
Update templates/results.html
Browse files- templates/results.html +33 -50
templates/results.html
CHANGED
|
@@ -1,50 +1,33 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>{{ market.market_name }} Market Details</title>
|
| 7 |
-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 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 |
-
<p><strong>City:</strong> {{ market.city }}</p>
|
| 35 |
-
<p><strong>State:</strong> {{ market.state }}</p>
|
| 36 |
-
<p><strong>Zip Code:</strong> {{ market.zip_code }}</p>
|
| 37 |
-
<p><strong>Phone Number:</strong> {{ market.phone_number }}</p>
|
| 38 |
-
<p><strong>Website:</strong> <a href="{{ market.website }}" target="_blank">{{ market.website }}</a></p>
|
| 39 |
-
<p><strong>Opening Hours:</strong> {{ market.opening_hours }}</p>
|
| 40 |
-
<p><strong>Latitude:</strong> {{ market.latitude }}</p>
|
| 41 |
-
<p><strong>Longitude:</strong> {{ market.longitude }}</p>
|
| 42 |
-
<p><strong>Top Commodities:</strong></p>
|
| 43 |
-
<ul>
|
| 44 |
-
{% for commodity in market.top_commodities %}
|
| 45 |
-
<li>{{ commodity.commodity }} - Avg Price: ₹{{ commodity.modal_price }}, Min Price: ₹{{ commodity.min_price }}, Max Price: ₹{{ commodity.max_price }}</li>
|
| 46 |
-
{% endfor %}
|
| 47 |
-
</ul>
|
| 48 |
-
</div>
|
| 49 |
-
</body>
|
| 50 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>{{ market.market_name }} Market Details</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 9 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<div class="container">
|
| 13 |
+
<h1>{{ market.market_name }} Market Details</h1>
|
| 14 |
+
<p><strong>Market ID:</strong> {{ market.market_id }}</p>
|
| 15 |
+
<p><strong>Market Name:</strong> {{ market.market_name }}</p>
|
| 16 |
+
<p><strong>Address:</strong> {{ market.address }}</p>
|
| 17 |
+
<p><strong>City:</strong> {{ market.city }}</p>
|
| 18 |
+
<p><strong>State:</strong> {{ market.state }}</p>
|
| 19 |
+
<p><strong>Zip Code:</strong> {{ market.zip_code }}</p>
|
| 20 |
+
<p><strong>Phone Number:</strong> {{ market.phone_number }}</p>
|
| 21 |
+
<p><strong>Website:</strong> <a href="{{ market.website }}" target="_blank">{{ market.website }}</a></p>
|
| 22 |
+
<p><strong>Opening Hours:</strong> {{ market.opening_hours }}</p>
|
| 23 |
+
<p><strong>Latitude:</strong> {{ market.latitude }}</p>
|
| 24 |
+
<p><strong>Longitude:</strong> {{ market.longitude }}</p>
|
| 25 |
+
<p><strong>Top Commodities:</strong></p>
|
| 26 |
+
<ul>
|
| 27 |
+
{% for commodity in market.top_commodities %}
|
| 28 |
+
<li>{{ commodity.commodity }} - Avg Price: ₹{{ commodity.modal_price }}, Min Price: ₹{{ commodity.min_price }}, Max Price: ₹{{ commodity.max_price }}</li>
|
| 29 |
+
{% endfor %}
|
| 30 |
+
</ul>
|
| 31 |
+
</div>
|
| 32 |
+
</body>
|
| 33 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|