RushiMane2003 commited on
Commit
cf7dc62
·
verified ·
1 Parent(s): b73531e

Update templates/results.html

Browse files
Files changed (1) hide show
  1. 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
- <style>
10
- #map-container {
11
- height: 500px;
12
- width: 100%;
13
- margin-top: 20px;
14
- }
15
- .insights-container {
16
- background-color: #f8f9fa;
17
- padding: 15px;
18
- border-radius: 5px;
19
- margin-top: 20px;
20
- }
21
- .loader {
22
- display: none;
23
- text-align: center;
24
- margin: 20px 0;
25
- }
26
- </style>
27
- </head>
28
- <body>
29
- <div class="container">
30
- <h1>{{ market.market_name }} Market Details</h1>
31
- <p><strong>Market ID:</strong> {{ market.market_id }}</p>
32
- <p><strong>Market Name:</strong> {{ market.market_name }}</p>
33
- <p><strong>Address:</strong> {{ market.address }}</p>
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>