Add process and submission mocks
This commit is contained in:
parent
095ab828b6
commit
3e0003095b
10 changed files with 481 additions and 22 deletions
|
|
@ -51,14 +51,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 2 of 10</span>
|
||||
<span class="small text-muted">Step 2 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 20%;"
|
||||
aria-valuenow="20"
|
||||
style="width: 25%;"
|
||||
aria-valuenow="25"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
|
|||
|
|
@ -74,14 +74,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 3 of 10</span>
|
||||
<span class="small text-muted">Step 3 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 30%;"
|
||||
aria-valuenow="30"
|
||||
style="width: 37%;"
|
||||
aria-valuenow="37"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
|
|||
|
|
@ -47,14 +47,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 6 of 10</span>
|
||||
<span class="small text-muted">Step 6 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 60%;"
|
||||
aria-valuenow="60"
|
||||
style="width: 75%;"
|
||||
aria-valuenow="75"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
@ -155,12 +155,10 @@
|
|||
|
||||
<!-- Navigation Buttons -->
|
||||
<div class="d-flex gap-2 mt-4">
|
||||
<a href="/compliance/access" class="btn btn-outline-secondary">
|
||||
<a href="../compliance/permission" class="btn btn-outline-secondary">
|
||||
Back
|
||||
</a>
|
||||
<button type="submit" class="btn btn-primary flex-grow-1">
|
||||
Continue
|
||||
</button>
|
||||
<a class="btn btn-primary flex-grow-1" href="process"> Continue </a>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -115,14 +115,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 4 of 10</span>
|
||||
<span class="small text-muted">Step 4 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 40%;"
|
||||
aria-valuenow="40"
|
||||
style="width: 50%;"
|
||||
aria-valuenow="50"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
|
|||
|
|
@ -95,14 +95,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 5 of 10</span>
|
||||
<span class="small text-muted">Step 5 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 50%;"
|
||||
aria-valuenow="50"
|
||||
style="width: 63%;"
|
||||
aria-valuenow="63"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
|
|||
190
html/template/rmo/district-compliance-process.html
Normal file
190
html/template/rmo/district-compliance-process.html
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
{{ template "rmo/layout/base.html" . }}
|
||||
|
||||
{{ define "title" }}What Happens Next{{ end }}
|
||||
{{ define "extraheader" }}
|
||||
<style>
|
||||
body {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background-color: #0d6efd;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.process-step {
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
border-left: 4px solid #0d6efd;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.step-number {
|
||||
background-color: #0d6efd;
|
||||
color: white;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-content {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.encouragement-box {
|
||||
background-color: #d1ecf1;
|
||||
border-left: 4px solid #0dcaf0;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.reminder-box {
|
||||
background-color: #fff3cd;
|
||||
border-left: 4px solid #ffc107;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
<div class="container-fluid px-3 py-3">
|
||||
<!-- Header -->
|
||||
<header class="text-center mb-4 pb-3 border-bottom">
|
||||
<div class="d-flex align-items-center justify-content-center mb-2">
|
||||
<img
|
||||
src="{{ .District.URLLogo }}"
|
||||
alt="{{ .District.Name }} logo"
|
||||
class="me-2"
|
||||
style="height: 40px; width: auto;"
|
||||
/>
|
||||
<h1 class="h5 mb-0">{{ .District.Name }}</h1>
|
||||
</div>
|
||||
<div class="text-muted small">
|
||||
<i class="bi bi-telephone"></i> {{ .District.OfficePhone }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 7 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 88%;"
|
||||
aria-valuenow="88"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main>
|
||||
<h2 class="h4 mb-3">What happens next</h2>
|
||||
|
||||
<p class="text-muted mb-4">
|
||||
Understanding the review process helps you know what to expect.
|
||||
</p>
|
||||
|
||||
<!-- Process Steps -->
|
||||
<div class="mb-4">
|
||||
<!-- Step 1 -->
|
||||
<div class="process-step">
|
||||
<div class="step-number">1</div>
|
||||
<div class="step-content">
|
||||
<h3 class="h6 mb-2">We review your response</h3>
|
||||
<p class="mb-0 small text-muted">
|
||||
Our team will evaluate the photos, comments, and information
|
||||
you've provided to assess the current conditions at the property.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 2 -->
|
||||
<div class="process-step">
|
||||
<div class="step-number">2</div>
|
||||
<div class="step-content">
|
||||
<h3 class="h6 mb-2">Your response may reduce or close follow-up</h3>
|
||||
<p class="mb-0 small text-muted">
|
||||
If your photos and information clearly show that the concern has
|
||||
been addressed, we may be able to reduce or close this matter
|
||||
without additional inspection.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 3 -->
|
||||
<div class="process-step">
|
||||
<div class="step-number">3</div>
|
||||
<div class="step-content">
|
||||
<h3 class="h6 mb-2">We'll contact you if inspection is needed</h3>
|
||||
<p class="mb-0 small text-muted">
|
||||
If an inspection is still necessary and you provided contact
|
||||
information, we will try to reach you in advance to coordinate
|
||||
timing and access.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 4 -->
|
||||
<div class="process-step">
|
||||
<div class="step-number">4</div>
|
||||
<div class="step-content">
|
||||
<h3 class="h6 mb-2">
|
||||
The compliance process continues if unresolved
|
||||
</h3>
|
||||
<p class="mb-0 small text-muted">
|
||||
If the mosquito breeding source remains unaddressed, the District
|
||||
will continue with standard compliance procedures to protect
|
||||
public health.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Encouragement Box -->
|
||||
<div class="encouragement-box mb-3">
|
||||
<p class="mb-2">
|
||||
<strong
|
||||
><i class="bi bi-check-circle"></i> Your response helps</strong
|
||||
>
|
||||
</p>
|
||||
<p class="mb-0 small">
|
||||
By providing photos, access information, and contact details, you give
|
||||
our team the ability to review the situation thoroughly before taking
|
||||
further action. This can save everyone time and help resolve the
|
||||
matter more efficiently.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Reminder Box -->
|
||||
<div class="reminder-box">
|
||||
<p class="mb-0 small">
|
||||
<strong><i class="bi bi-exclamation-circle"></i> Important:</strong>
|
||||
Submitting this form does not automatically close this compliance
|
||||
request. The District must verify that mosquito breeding conditions
|
||||
have been corrected to protect community health.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Buttons -->
|
||||
<div class="d-flex gap-2 mt-4">
|
||||
<a href="../compliance/contact" class="btn btn-outline-secondary">
|
||||
Back
|
||||
</a>
|
||||
<a href="submit" class="btn btn-primary flex-grow-1"> Continue </a>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
{{ end }}
|
||||
238
html/template/rmo/district-compliance-submit.html
Normal file
238
html/template/rmo/district-compliance-submit.html
Normal file
|
|
@ -0,0 +1,238 @@
|
|||
{{ template "rmo/layout/base.html" . }}
|
||||
|
||||
{{ define "title" }}Submit Response{{ end }}
|
||||
{{ define "extraheader" }}
|
||||
<style>
|
||||
body {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background-color: #0d6efd;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.summary-section {
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.summary-section h3 {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: #495057;
|
||||
}
|
||||
|
||||
.summary-item {
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f8f9fa;
|
||||
}
|
||||
|
||||
.summary-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.summary-label {
|
||||
font-weight: 500;
|
||||
color: #6c757d;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.summary-value {
|
||||
color: #212529;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.photo-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background-color: #e7f1ff;
|
||||
padding: 4px 12px;
|
||||
border-radius: 16px;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
border-radius: 16px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-provided {
|
||||
background-color: #d1e7dd;
|
||||
color: #0f5132;
|
||||
}
|
||||
|
||||
.status-not-provided {
|
||||
background-color: #f8d7da;
|
||||
color: #842029;
|
||||
}
|
||||
|
||||
.encouragement-box {
|
||||
background-color: #d1ecf1;
|
||||
border-left: 4px solid #0dcaf0;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.validation-alert {
|
||||
background-color: #fff3cd;
|
||||
border-left: 4px solid #ffc107;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
font-size: 1.125rem;
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
<div class="container-fluid px-3 py-3">
|
||||
<!-- Header -->
|
||||
<header class="text-center mb-4 pb-3 border-bottom">
|
||||
<div class="d-flex align-items-center justify-content-center mb-2">
|
||||
<img
|
||||
src="{{ .District.URLLogo }}"
|
||||
alt="{{ .District.Name }} logo"
|
||||
class="me-2"
|
||||
style="height: 40px; width: auto;"
|
||||
/>
|
||||
<h1 class="h5 mb-0">{{ .District.Name }}</h1>
|
||||
</div>
|
||||
<div class="text-muted small">
|
||||
<i class="bi bi-telephone"></i> {{ .District.OfficePhone }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 8 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 100%;"
|
||||
aria-valuenow="100"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main>
|
||||
<h2 class="h4 mb-3">Review and submit your response</h2>
|
||||
|
||||
<div class="encouragement-box mb-4">
|
||||
<p class="mb-2">
|
||||
<strong><i class="bi bi-lightbulb"></i> Before you submit</strong>
|
||||
</p>
|
||||
<p class="mb-0 small">
|
||||
Providing photos, access permissions, and contact information gives
|
||||
the District the best opportunity to review your response and
|
||||
potentially close this matter without further action. The more detail
|
||||
you provide, the better we can assess the situation.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<form id="submit-form" method="POST" action="/compliance/submit">
|
||||
<!-- Response Summary -->
|
||||
<div class="mb-4">
|
||||
<h3 class="h6 mb-3 text-muted">Your Response Summary</h3>
|
||||
|
||||
<!-- Address -->
|
||||
<div class="summary-section">
|
||||
<h3><i class="bi bi-geo-alt"></i> Property Address</h3>
|
||||
<div class="summary-item">
|
||||
<div class="summary-value">
|
||||
123 Main St
|
||||
<span class="status-badge status-provided ms-2">
|
||||
<i class="bi bi-check-circle"></i> Provided
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Photos -->
|
||||
<div class="summary-section">
|
||||
<h3><i class="bi bi-camera"></i> Photos</h3>
|
||||
<div class="summary-item">
|
||||
<div class="summary-value">
|
||||
<span class="photo-count">
|
||||
<i class="bi bi-images"></i>
|
||||
3 photos uploaded
|
||||
</span>
|
||||
</div>
|
||||
<div class="summary-value mt-2">
|
||||
<div class="summary-label">Comments:</div>
|
||||
<small class="text-muted">These are my comments</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Access Permission -->
|
||||
<div class="summary-section">
|
||||
<h3><i class="bi bi-door-open"></i> Property Access</h3>
|
||||
<div class="summary-item">
|
||||
<div class="summary-value">
|
||||
<span class="status-badge status-provided">
|
||||
<i class="bi bi-check-circle"></i> Entry permitted without
|
||||
owner present
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contact Information -->
|
||||
<div class="summary-section">
|
||||
<h3><i class="bi bi-person"></i> Contact Information</h3>
|
||||
<div class="summary-item">
|
||||
<div class="summary-label">Name</div>
|
||||
<div class="summary-value">Kai Fu Lee</div>
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<div class="summary-label">Phone</div>
|
||||
<div class="summary-value">
|
||||
123-555-6789
|
||||
<small class="text-muted">(texting OK)</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<div class="summary-label">Email</div>
|
||||
<div class="summary-value">me@aol.com</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="d-grid gap-2 mt-4">
|
||||
<button type="submit" class="btn btn-primary btn-lg submit-btn">
|
||||
<i class="bi bi-check-circle"></i>
|
||||
Submit Response
|
||||
</button>
|
||||
<a href="/compliance/process" class="btn btn-outline-secondary">
|
||||
Back
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<small class="text-muted">
|
||||
By submitting, you confirm the information provided is accurate to
|
||||
the best of your knowledge.
|
||||
</small>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -34,14 +34,14 @@
|
|||
<!-- Progress Bar -->
|
||||
<div class="mb-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small text-muted">Step 1 of 10</span>
|
||||
<span class="small text-muted">Step 1 of 8</span>
|
||||
</div>
|
||||
<div class="progress" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
style="width: 20%;"
|
||||
aria-valuenow="20"
|
||||
style="width: 12%;"
|
||||
aria-valuenow="12"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue