Spaces:
Runtime error
Runtime error
Update templates/scheme_details.html
Browse files- templates/scheme_details.html +235 -153
templates/scheme_details.html
CHANGED
|
@@ -1,154 +1,236 @@
|
|
| 1 |
-
{% extends "base.html" %}
|
| 2 |
-
|
| 3 |
-
{% block content %}
|
| 4 |
-
<
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
<li class="breadcrumb-item
|
| 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 |
-
<ul
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
<ul class="
|
| 65 |
-
{%
|
| 66 |
-
<li class="
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
{%
|
| 80 |
-
<li class="
|
| 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 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
}
|
| 153 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
{% endblock %}
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Standard Hero Header -->
|
| 5 |
+
<div class="header-section">
|
| 6 |
+
<nav aria-label="breadcrumb">
|
| 7 |
+
<ol class="breadcrumb justify-content-center mb-4">
|
| 8 |
+
<li class="breadcrumb-item"><a href="{{ url_for('index') }}" class="text-white-50"><i
|
| 9 |
+
class="bi bi-house-door"></i> Home</a></li>
|
| 10 |
+
<li class="breadcrumb-item active text-white" aria-current="page">{{ scheme.name }}</li>
|
| 11 |
+
</ol>
|
| 12 |
+
</nav>
|
| 13 |
+
<h1 class="display-4 fw-bold mb-0">{{ scheme.name }}</h1>
|
| 14 |
+
</div>
|
| 15 |
+
|
| 16 |
+
<!-- Main Content (Floating) -->
|
| 17 |
+
<div class="main-container">
|
| 18 |
+
<div class="row g-4">
|
| 19 |
+
<!-- Main Content Column -->
|
| 20 |
+
<div class="col-lg-8">
|
| 21 |
+
|
| 22 |
+
<!-- Introduction -->
|
| 23 |
+
<div class="premium-card mb-4" id="intro">
|
| 24 |
+
<div class="card-body p-4">
|
| 25 |
+
<h2 class="section-title mb-3"><i class="bi bi-info-circle me-2"></i>Introduction</h2>
|
| 26 |
+
<p class="scheme-text lead" style="font-size: 1.05rem; opacity: 0.9;">{{ scheme.introduction }}</p>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<!-- Objectives & Benefits -->
|
| 31 |
+
{% if scheme.objective or scheme.benefits %}
|
| 32 |
+
<div class="premium-card mb-4">
|
| 33 |
+
<div class="card-body p-4">
|
| 34 |
+
{% if scheme.objective %}
|
| 35 |
+
<h2 class="section-title mb-3"><i class="bi bi-bullseye me-2"></i>Objectives</h2>
|
| 36 |
+
<ul class="list-group list-group-flush mb-4">
|
| 37 |
+
{% for obj in scheme.objective %}
|
| 38 |
+
<li class="list-group-item bg-transparent py-2 px-0 d-flex align-items-start">
|
| 39 |
+
<i class="bi bi-check2-circle text-success me-2 mt-1"></i>
|
| 40 |
+
<span>{{ obj }}</span>
|
| 41 |
+
</li>
|
| 42 |
+
{% endfor %}
|
| 43 |
+
</ul>
|
| 44 |
+
{% endif %}
|
| 45 |
+
|
| 46 |
+
{% if scheme.benefits %}
|
| 47 |
+
<h2 class="section-title mb-3"><i class="bi bi-stars me-2"></i>Benefits</h2>
|
| 48 |
+
<ul class="list-group list-group-flush">
|
| 49 |
+
{% for benefit in scheme.benefits %}
|
| 50 |
+
<li class="list-group-item bg-transparent py-2 px-0 d-flex align-items-start">
|
| 51 |
+
<i class="bi bi-gift text-success me-2 mt-1"></i>
|
| 52 |
+
<span>{{ benefit }}</span>
|
| 53 |
+
</li>
|
| 54 |
+
{% endfor %}
|
| 55 |
+
</ul>
|
| 56 |
+
{% endif %}
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
{% endif %}
|
| 60 |
+
|
| 61 |
+
<!-- Detail Tabs (Eligibility, Process, Docs) -->
|
| 62 |
+
<div class="premium-card mb-4">
|
| 63 |
+
<div class="card-body p-4">
|
| 64 |
+
<ul class="nav nav-pills mb-3" id="schemeTabs" role="tablist">
|
| 65 |
+
{% if scheme.eligibility %}
|
| 66 |
+
<li class="nav-item" role="presentation">
|
| 67 |
+
<button class="nav-link active rounded-pill px-4" id="eligibility-tab" data-bs-toggle="pill"
|
| 68 |
+
data-bs-target="#eligibility" type="button" role="tab"><i
|
| 69 |
+
class="bi bi-person-check me-2"></i>Eligibility</button>
|
| 70 |
+
</li>
|
| 71 |
+
{% endif %}
|
| 72 |
+
{% if scheme.application_process %}
|
| 73 |
+
<li class="nav-item" role="presentation">
|
| 74 |
+
<button class="nav-link rounded-pill px-4" id="process-tab" data-bs-toggle="pill"
|
| 75 |
+
data-bs-target="#process" type="button" role="tab"><i
|
| 76 |
+
class="bi bi-clipboard-check me-2"></i>Process</button>
|
| 77 |
+
</li>
|
| 78 |
+
{% endif %}
|
| 79 |
+
{% if scheme.documents_required %}
|
| 80 |
+
<li class="nav-item" role="presentation">
|
| 81 |
+
<button class="nav-link rounded-pill px-4" id="docs-tab" data-bs-toggle="pill"
|
| 82 |
+
data-bs-target="#docs" type="button" role="tab"><i
|
| 83 |
+
class="bi bi-file-earmark-text me-2"></i>Documents</button>
|
| 84 |
+
</li>
|
| 85 |
+
{% endif %}
|
| 86 |
+
</ul>
|
| 87 |
+
|
| 88 |
+
<div class="tab-content" id="schemeTabsContent">
|
| 89 |
+
<!-- Eligibility Tab -->
|
| 90 |
+
<div class="tab-pane fade show active" id="eligibility" role="tabpanel">
|
| 91 |
+
{% if scheme.eligibility.eligible %}
|
| 92 |
+
<div class="mb-3">
|
| 93 |
+
<h3 class="h6 fw-bold text-uppercase text-muted mb-2">Eligible Beneficiaries</h3>
|
| 94 |
+
<div class="p-3 bg-light rounded-3 border">
|
| 95 |
+
<ul class="list-unstyled mb-0">
|
| 96 |
+
{% for eligible in scheme.eligibility.eligible %}
|
| 97 |
+
<li class="mb-2 d-flex align-items-start">
|
| 98 |
+
<i class="bi bi-check-lg text-success me-2 mt-1"></i>
|
| 99 |
+
{{ eligible }}
|
| 100 |
+
</li>
|
| 101 |
+
{% endfor %}
|
| 102 |
+
</ul>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
{% endif %}
|
| 106 |
+
|
| 107 |
+
{% if scheme.eligibility.exclusions %}
|
| 108 |
+
<div>
|
| 109 |
+
<h3 class="h6 fw-bold text-uppercase text-muted mb-2">Exclusions</h3>
|
| 110 |
+
<div
|
| 111 |
+
class="p-3 bg-danger bg-opacity-10 rounded-3 border border-danger border-opacity-25">
|
| 112 |
+
<ul class="list-unstyled mb-0">
|
| 113 |
+
{% for exclusion in scheme.eligibility.exclusions %}
|
| 114 |
+
<li class="mb-2 d-flex align-items-start text-danger">
|
| 115 |
+
<i class="bi bi-x-circle me-2 mt-1"></i>
|
| 116 |
+
{{ exclusion }}
|
| 117 |
+
</li>
|
| 118 |
+
{% endfor %}
|
| 119 |
+
</ul>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
{% endif %}
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<!-- Process Tab -->
|
| 126 |
+
<div class="tab-pane fade" id="process" role="tabpanel">
|
| 127 |
+
<div class="timeline mt-2">
|
| 128 |
+
{% for step in scheme.application_process %}
|
| 129 |
+
<div class="d-flex mb-3">
|
| 130 |
+
<div class="flex-shrink-0 me-3">
|
| 131 |
+
<div class="bg-primary text-white rounded-circle d-flex align-items-center justify-content-center fw-bold shadow-sm"
|
| 132 |
+
style="width: 32px; height: 32px;">
|
| 133 |
+
{{ loop.index }}
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="flex-grow-1">
|
| 137 |
+
{{ step }}
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
{% endfor %}
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<!-- Docs Tab -->
|
| 145 |
+
<div class="tab-pane fade" id="docs" role="tabpanel">
|
| 146 |
+
<div class="row g-2 mt-2">
|
| 147 |
+
{% for doc in scheme.documents_required %}
|
| 148 |
+
<div class="col-md-6">
|
| 149 |
+
<div
|
| 150 |
+
class="d-flex align-items-center p-3 border rounded bg-light hover-bg-white transition-all">
|
| 151 |
+
<i class="bi bi-file-text text-primary me-3 fs-4"></i>
|
| 152 |
+
<span>{{ doc }}</span>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
{% endfor %}
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<!-- Sidebar Column -->
|
| 165 |
+
<div class="col-lg-4">
|
| 166 |
+
<div class="premium-card sticky-lg-top" style="top: 2rem; z-index: 10;">
|
| 167 |
+
<div class="card-body p-4">
|
| 168 |
+
<h2 class="section-title mb-4"><i class="bi bi-headset me-2"></i>Contact Info</h2>
|
| 169 |
+
<ul class="list-unstyled mb-0 d-grid gap-3">
|
| 170 |
+
{% if scheme.contact.helpline %}
|
| 171 |
+
<li class="d-flex align-items-center p-3 rounded bg-light border">
|
| 172 |
+
<div class="me-3 text-primary fs-3"><i class="bi bi-telephone-fill"></i></div>
|
| 173 |
+
<div>
|
| 174 |
+
<small class="text-muted fw-bold d-block text-uppercase">Helpline</small>
|
| 175 |
+
<span class="fw-bold">{{ scheme.contact.helpline }}</span>
|
| 176 |
+
</div>
|
| 177 |
+
</li>
|
| 178 |
+
{% endif %}
|
| 179 |
+
{% if scheme.contact.email %}
|
| 180 |
+
<li class="d-flex align-items-center p-3 rounded bg-light border">
|
| 181 |
+
<div class="me-3 text-primary fs-3"><i class="bi bi-envelope-fill"></i></div>
|
| 182 |
+
<div>
|
| 183 |
+
<small class="text-muted fw-bold d-block text-uppercase">Email</small>
|
| 184 |
+
<a href="mailto:{{ scheme.contact.email }}" class="text-decoration-none text-dark">{{
|
| 185 |
+
scheme.contact.email }}</a>
|
| 186 |
+
</div>
|
| 187 |
+
</li>
|
| 188 |
+
{% endif %}
|
| 189 |
+
{% if scheme.contact.website %}
|
| 190 |
+
<li class="d-flex align-items-center p-3 rounded bg-light border">
|
| 191 |
+
<div class="me-3 text-primary fs-3"><i class="bi bi-globe"></i></div>
|
| 192 |
+
<div style="overflow: hidden;">
|
| 193 |
+
<small class="text-muted fw-bold d-block text-uppercase">Website</small>
|
| 194 |
+
<a href="{{ scheme.contact.website }}" target="_blank"
|
| 195 |
+
class="text-decoration-none text-dark text-truncate d-block">Visit Site</a>
|
| 196 |
+
</div>
|
| 197 |
+
</li>
|
| 198 |
+
{% endif %}
|
| 199 |
+
</ul>
|
| 200 |
+
|
| 201 |
+
<hr class="my-4 text-muted">
|
| 202 |
+
|
| 203 |
+
<a href="{{ url_for('chatbot') }}" class="btn btn-primary w-100 py-2 rounded-pill shadow-sm">
|
| 204 |
+
<i class="bi bi-robot me-2"></i> Ask AI Assistant
|
| 205 |
+
</a>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<style>
|
| 213 |
+
.breadcrumb-item+.breadcrumb-item::before {
|
| 214 |
+
color: rgba(255, 255, 255, 0.5);
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
.nav-pills .nav-link {
|
| 218 |
+
color: var(--text-dark);
|
| 219 |
+
background: #f8f9fa;
|
| 220 |
+
margin-right: 0.5rem;
|
| 221 |
+
margin-bottom: 0.5rem;
|
| 222 |
+
font-weight: 500;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.nav-pills .nav-link.active {
|
| 226 |
+
background-color: var(--primary);
|
| 227 |
+
color: white;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.section-title {
|
| 231 |
+
color: var(--primary);
|
| 232 |
+
border-bottom: 2px solid #e9ecef;
|
| 233 |
+
padding-bottom: 0.5rem;
|
| 234 |
+
}
|
| 235 |
+
</style>
|
| 236 |
{% endblock %}
|