Add new pool review page
This commit is contained in:
parent
527e82031e
commit
03380eba45
7 changed files with 315 additions and 334 deletions
BIN
html/static/img/pool-overhead.jpg
Normal file
BIN
html/static/img/pool-overhead.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
290
html/template/sync/review/pool.html
Normal file
290
html/template/sync/review/pool.html
Normal file
|
|
@ -0,0 +1,290 @@
|
|||
{{ template "sync/layout/authenticated.html" . }}
|
||||
|
||||
{{ define "title" }}Review - Pools{{ end }}
|
||||
{{ define "extraheader" }}
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="//unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js"
|
||||
></script>
|
||||
<script>
|
||||
function onLoad() {}
|
||||
window.addEventListener("load", onLoad);
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.left-panel {
|
||||
background-color: white;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid #dee2e6;
|
||||
}
|
||||
.middle-panel {
|
||||
background-color: white;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.right-panel {
|
||||
background-color: white;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
border-left: 1px solid #dee2e6;
|
||||
padding: 20px;
|
||||
}
|
||||
.entry-item {
|
||||
padding: 15px;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
.entry-item:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.entry-item.active {
|
||||
background-color: #e7f3ff;
|
||||
border-left: 4px solid #0d6efd;
|
||||
}
|
||||
.placeholder-box {
|
||||
background-color: #e9ecef;
|
||||
border: 2px dashed #adb5bd;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #6c757d;
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.map-placeholder {
|
||||
height: 300px;
|
||||
}
|
||||
.image-placeholder {
|
||||
height: 400px;
|
||||
}
|
||||
.action-btn {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
padding: 12px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.status-badge {
|
||||
font-size: 11px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<!-- Left Column - Entry List -->
|
||||
<div class="col-md-3 p-0 left-panel">
|
||||
<div class="p-3 border-bottom bg-primary text-white">
|
||||
<h5 class="mb-0"><i class="bi bi-list-ul"></i> Review Queue</h5>
|
||||
<small>12 entries pending</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item active">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2847</strong>
|
||||
<span class="badge bg-warning status-badge ms-1">Pending</span>
|
||||
</div>
|
||||
<small class="text-muted">2 min ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">1234 Oak Street</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2846</strong>
|
||||
<span class="badge bg-warning status-badge ms-1">Pending</span>
|
||||
</div>
|
||||
<small class="text-muted">15 min ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">5678 Maple Avenue</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2845</strong>
|
||||
<span class="badge bg-warning status-badge ms-1">Pending</span>
|
||||
</div>
|
||||
<small class="text-muted">32 min ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">9012 Pine Road</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2844</strong>
|
||||
<span class="badge bg-warning status-badge ms-1">Pending</span>
|
||||
</div>
|
||||
<small class="text-muted">1 hour ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">3456 Elm Boulevard</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2843</strong>
|
||||
<span class="badge bg-warning status-badge ms-1">Pending</span>
|
||||
</div>
|
||||
<small class="text-muted">2 hours ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">7890 Birch Lane</small>
|
||||
</div>
|
||||
|
||||
<div class="entry-item">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<strong>Entry #2842</strong>
|
||||
<span class="badge bg-success status-badge ms-1">Reviewed</span>
|
||||
</div>
|
||||
<small class="text-muted">3 hours ago</small>
|
||||
</div>
|
||||
<small class="text-muted d-block mt-1">2468 Cedar Court</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Middle Column - Details and Media -->
|
||||
<div class="col-md-6 p-0 middle-panel">
|
||||
<div class="mb-4">
|
||||
<h4 class="mb-3">Entry #2847 Details</h4>
|
||||
|
||||
<form>
|
||||
<div class="row mb-3">
|
||||
<label class="col-sm-3 col-form-label fw-bold">Address:</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="1234 Oak Street, Springfield, CA 90210"
|
||||
readonly
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<label class="col-sm-3 col-form-label fw-bold"
|
||||
>Pool Condition:</label
|
||||
>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-select">
|
||||
<option selected>Good</option>
|
||||
<option>Fair</option>
|
||||
<option>Poor</option>
|
||||
<option>Excellent</option>
|
||||
<option>Needs Maintenance</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<label class="col-sm-3 col-form-label fw-bold"
|
||||
>Owner Contact:</label
|
||||
>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="John Smith - (555) 123-4567"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-4">
|
||||
<label class="col-sm-3 col-form-label fw-bold"
|
||||
>Resident Contact:</label
|
||||
>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="Jane Smith - (555) 123-4568"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Map Placeholder -->
|
||||
<div class="placeholder-box map-placeholder">
|
||||
<div class="text-center">
|
||||
<i class="bi bi-map" style="font-size: 48px;"></i>
|
||||
<p class="mb-0 mt-2">Map View Placeholder</p>
|
||||
<small>1234 Oak Street, Springfield, CA 90210</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Aerial Image Placeholder -->
|
||||
<div class="placeholder-box image-placeholder">
|
||||
<div class="text-center">
|
||||
<i class="bi bi-image" style="font-size: 48px;"></i>
|
||||
<p class="mb-0 mt-2">Aerial Pool Image Placeholder</p>
|
||||
<small>Captured: March 15, 2024</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right Column - Actions -->
|
||||
<div class="col-md-3 p-0 right-panel">
|
||||
<h5 class="mb-4">Actions</h5>
|
||||
|
||||
<button class="btn btn-success action-btn">
|
||||
<i class="bi bi-check-circle"></i> Mark Reviewed
|
||||
</button>
|
||||
|
||||
<button class="btn btn-danger action-btn">
|
||||
<i class="bi bi-trash"></i> Discard Entry
|
||||
</button>
|
||||
|
||||
<hr class="my-4" />
|
||||
|
||||
<h6 class="mb-3">Additional Options</h6>
|
||||
|
||||
<button class="btn btn-outline-primary action-btn">
|
||||
<i class="bi bi-flag"></i> Flag for Review
|
||||
</button>
|
||||
|
||||
<button class="btn btn-outline-secondary action-btn">
|
||||
<i class="bi bi-arrow-left"></i> Previous Entry
|
||||
</button>
|
||||
|
||||
<button class="btn btn-outline-secondary action-btn">
|
||||
<i class="bi bi-arrow-right"></i> Next Entry
|
||||
</button>
|
||||
|
||||
<hr class="my-4" />
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h6 class="card-title">Review Statistics</h6>
|
||||
<ul class="list-unstyled mb-0">
|
||||
<li class="mb-2"><strong>Today:</strong> 8 reviewed</li>
|
||||
<li class="mb-2"><strong>This Week:</strong> 47 reviewed</li>
|
||||
<li><strong>Remaining:</strong> 12 pending</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-3">
|
||||
<div class="card-body">
|
||||
<h6 class="card-title">Notes</h6>
|
||||
<textarea
|
||||
class="form-control"
|
||||
rows="4"
|
||||
placeholder="Add notes about this entry..."
|
||||
></textarea>
|
||||
<button class="btn btn-sm btn-primary mt-2 w-100">
|
||||
Save Notes
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -11,340 +11,22 @@
|
|||
function onLoad() {}
|
||||
window.addEventListener("load", onLoad);
|
||||
</script>
|
||||
<style>
|
||||
.metric-card h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
.status-badge {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.table-hover tbody tr:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
.anomaly {
|
||||
background-color: #fff3cd;
|
||||
}
|
||||
.flagged {
|
||||
background-color: #f8d7da;
|
||||
}
|
||||
.reviewed {
|
||||
background-color: #e2f0e9;
|
||||
}
|
||||
.modal-lg {
|
||||
max-width: 90%;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
|
||||
<div class="row">
|
||||
<!-- LEFT PANE -->
|
||||
<div class="col-lg-3 mb-4">
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">Daily Overview</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 d-flex justify-content-between">
|
||||
<div>
|
||||
<div>Total Records</div>
|
||||
<strong>142</strong>
|
||||
</div>
|
||||
<span class="text-success"
|
||||
><i class="bi bi-arrow-up-right"></i> +8%</span
|
||||
>
|
||||
</div>
|
||||
<div class="mb-3 d-flex justify-content-between">
|
||||
<div>
|
||||
<div>Acres Treated</div>
|
||||
<strong>318.4</strong>
|
||||
</div>
|
||||
<span class="text-danger"
|
||||
><i class="bi bi-arrow-down-right"></i> -5%</span
|
||||
>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<div>Anomalies</div>
|
||||
<strong>9</strong>
|
||||
</div>
|
||||
<span class="text-warning">Above Avg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">System Signals</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<div class="list-group-item d-flex justify-content-between">
|
||||
High acreage deviation
|
||||
<span class="badge bg-warning text-dark">System</span>
|
||||
</div>
|
||||
<div class="list-group-item d-flex justify-content-between">
|
||||
Product-to-acre variance
|
||||
<span class="badge bg-warning text-dark">System</span>
|
||||
</div>
|
||||
<div class="list-group-item d-flex justify-content-between">
|
||||
Rare task combination
|
||||
<span class="badge bg-info text-dark">Review</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">Process Performance</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-2">
|
||||
<strong>Recommendation Acceptance:</strong> 78%
|
||||
</div>
|
||||
<div class="mb-2"><strong>Time Saved vs Plan:</strong> +6%</div>
|
||||
<div><strong>Override Logs:</strong> 5</div>
|
||||
</div>
|
||||
<a class="card-link" href="/review/pool">
|
||||
<div class="card" style="width: 24rem;">
|
||||
<img
|
||||
alt="overhead pool"
|
||||
class="card-img-top"
|
||||
src="/static/img/pool-overhead.jpg"
|
||||
/>
|
||||
<div class="card-body">
|
||||
<h1>Imported Pools</h1>
|
||||
<p>
|
||||
Pools that have been imported with their aerial imagery appear here
|
||||
waiting for human review before being added to the system
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CENTER PANE -->
|
||||
<div class="col-lg-6 mb-4">
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">Geospatial Review</div>
|
||||
<div class="card-body p-0">
|
||||
<div
|
||||
class="bg-light d-flex align-items-center justify-content-center"
|
||||
style="height:350px;"
|
||||
>
|
||||
<div class="text-center text-muted">
|
||||
<i class="bi bi-geo-alt-fill fs-1"></i>
|
||||
<div>Interactive Map Placeholder</div>
|
||||
<small
|
||||
>Spatial context for records, anomalies, and follow-ups.</small
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">Technician Records</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th><input type="checkbox" /></th>
|
||||
<th>ID</th>
|
||||
<th>Technician</th>
|
||||
<th>Section</th>
|
||||
<th>Task</th>
|
||||
<th>Acres</th>
|
||||
<th>Product</th>
|
||||
<th>Status</th>
|
||||
<th><i class="bi bi-exclamation-triangle"></i></th>
|
||||
<th>Comments</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
data-bs-toggle="modal"
|
||||
data-bs-target="#recordDetailModal"
|
||||
class="anomaly"
|
||||
>
|
||||
<td><input type="checkbox" /></td>
|
||||
<td>REC-0142</td>
|
||||
<td>J. Alvarez</td>
|
||||
<td>Agricultural</td>
|
||||
<td>Treatment</td>
|
||||
<td>24.5</td>
|
||||
<td>Bti</td>
|
||||
<td><span class="badge bg-warning">Flagged</span></td>
|
||||
<td>
|
||||
<i class="bi bi-exclamation-triangle-fill text-danger"></i>
|
||||
</td>
|
||||
<td><span class="badge bg-secondary">3</span></td>
|
||||
<td>
|
||||
<span class="badge bg-primary">Training</span>
|
||||
<span class="badge bg-secondary">Data Quality</span>
|
||||
<span class="badge bg-warning text-dark"
|
||||
>System: Acreage Outlier</span
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- RIGHT PANE -->
|
||||
<div class="col-lg-3 mb-4">
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">Filters</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Date</label>
|
||||
<input type="date" class="form-control" value="2026-02-26" />
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Section</label>
|
||||
<select class="form-select">
|
||||
<option>All Sections</option>
|
||||
<option>Residential</option>
|
||||
<option>Agricultural</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Technician</label>
|
||||
<select class="form-select">
|
||||
<option>All Technicians</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-check mt-3">
|
||||
<input class="form-check-input" type="checkbox" />
|
||||
<label class="form-check-label">Show only flagged</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" />
|
||||
<label class="form-check-label">Open questions</label>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
<label class="form-label">Filter by Tag</label>
|
||||
<select class="form-select">
|
||||
<option>All Tags</option>
|
||||
<option>Training</option>
|
||||
<option>Data Quality</option>
|
||||
<option>System: Acreage Outlier</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">Bulk Actions</div>
|
||||
<div class="card-body d-grid gap-2">
|
||||
<button class="btn btn-warning btn-sm">Flag for Follow-up</button>
|
||||
<button class="btn btn-success btn-sm">Mark as Reviewed</button>
|
||||
<button class="btn btn-outline-secondary btn-sm">Add Comment</button>
|
||||
<button class="btn btn-outline-dark btn-sm">Export</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Record Detail Modal -->
|
||||
<div class="modal fade" id="recordDetailModal" tabindex="-1">
|
||||
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Record Detail: REC-2026-0142</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-close"
|
||||
data-bs-dismiss="modal"
|
||||
></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h6>Structured Details</h6>
|
||||
<ul class="list-group mb-3">
|
||||
<li class="list-group-item">Origin Assignment: AG-Canal-12B</li>
|
||||
<li class="list-group-item">
|
||||
Origin Signals: High Larval Counts
|
||||
</li>
|
||||
<li class="list-group-item">Equipment Used: Backpack Blower</li>
|
||||
<li class="list-group-item">Duration: 3.2 hrs</li>
|
||||
<li class="list-group-item">GPS Location: Map Placeholder</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h6>Products & Media</h6>
|
||||
<ul class="list-group mb-3">
|
||||
<li class="list-group-item">Product Applied: Bti Granular</li>
|
||||
<li class="list-group-item text-muted">Photo Placeholder</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h6 class="mt-3">Reviewer & Technician Questions</h6>
|
||||
<div
|
||||
class="border rounded p-3 mb-4"
|
||||
style="max-height:180px; overflow-y:auto;"
|
||||
>
|
||||
<p class="mb-2">
|
||||
<strong>Reviewer:</strong> Confirm acreage measurement method.
|
||||
</p>
|
||||
<p class="mb-0">
|
||||
<strong>Technician:</strong> Measured using GPS track log.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h6>Tags</h6>
|
||||
<div class="border rounded p-3 mb-3">
|
||||
<span class="badge bg-primary me-1">Training</span>
|
||||
<span class="badge bg-secondary me-1">Data Quality</span>
|
||||
<span class="badge bg-warning text-dark me-1"
|
||||
>System: Acreage Outlier</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Add Tag</label>
|
||||
<div class="input-group">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Enter new or existing tag"
|
||||
/>
|
||||
<button class="btn btn-outline-secondary">Add</button>
|
||||
</div>
|
||||
<small class="text-muted"
|
||||
>Tags may be user-defined or system-generated. System tags assist
|
||||
review but can be overridden.</small
|
||||
>
|
||||
</div>
|
||||
|
||||
<h6>Review Comments</h6>
|
||||
<div
|
||||
class="border rounded p-3 mb-3"
|
||||
style="max-height:200px; overflow-y:auto;"
|
||||
>
|
||||
<div class="mb-3">
|
||||
<div class="d-flex justify-content-between">
|
||||
<strong>Operations Review</strong>
|
||||
<small class="text-muted">2026-02-26 14:12</small>
|
||||
</div>
|
||||
<div class="text-muted small">
|
||||
Checked pesticide rate against label requirements. Within
|
||||
tolerance.
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<div class="d-flex justify-content-between">
|
||||
<strong>Data Quality</strong>
|
||||
<small class="text-muted">2026-02-26 15:02</small>
|
||||
</div>
|
||||
<div class="text-muted small">
|
||||
Acreage appears high relative to canal width. Monitor similar
|
||||
entries this week.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Add Review Comment</label>
|
||||
<textarea
|
||||
class="form-control"
|
||||
rows="3"
|
||||
placeholder="Enter internal review comment regarding data quality, process observations, or training notes."
|
||||
></textarea>
|
||||
</div>
|
||||
<button class="btn btn-outline-secondary btn-sm">Save Comment</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-outline-secondary">Post Question</button>
|
||||
<button class="btn btn-warning">Flag for Follow-up</button>
|
||||
<button class="btn btn-success">Mark as Reviewed</button>
|
||||
<button class="btn btn-primary">Edit Record</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ $theme-colors: map-merge(
|
|||
@import "./sync/intelligence.scss";
|
||||
@import "./sync/notification.scss";
|
||||
@import "./sync/pool-csv-upload.scss";
|
||||
@import "./sync/review.scss";
|
||||
@import "./sync/settings.scss";
|
||||
@import "./sync/settings-user-list.scss";
|
||||
@import "./sync/upload-by-id.scss";
|
||||
|
|
|
|||
3
scss/sync/review.scss
Normal file
3
scss/sync/review.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
a.card-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
@ -9,8 +9,12 @@ import (
|
|||
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
|
||||
)
|
||||
|
||||
type contentReviewPool struct{}
|
||||
type contentReviewRoot struct{}
|
||||
|
||||
func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
|
||||
return html.NewResponse("sync/review-root.html", contentReviewRoot{}), nil
|
||||
func getReviewPool(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
|
||||
return html.NewResponse("sync/review/pool.html", contentReviewRoot{}), nil
|
||||
}
|
||||
func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
|
||||
return html.NewResponse("sync/review/root.html", contentReviewRoot{}), nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ func Router() chi.Router {
|
|||
r.Method("GET", "/pool/{id}", authenticatedHandler(getPoolByID))
|
||||
r.Method("GET", "/radar", authenticatedHandler(getRadar))
|
||||
r.Method("GET", "/review", authenticatedHandler(getReviewRoot))
|
||||
r.Method("GET", "/review/pool", authenticatedHandler(getReviewPool))
|
||||
r.Method("GET", "/service-request", authenticatedHandler(getServiceRequestList))
|
||||
r.Method("GET", "/service-request/{id}", authenticatedHandler(getServiceRequestDetail))
|
||||
r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue