CareerBot/templates/admin/education.html
ln0422 501f8985ec Add /careerbot base path for www.ityb.me/careerbot deployment
- Add BASE_PATH config, include all routers with prefix
- Inject {{ base }} Jinja2 global for all template URLs
- Add window.BASE_PATH for static JS files
- Update Nginx to proxy /careerbot/ path
- Add OPS_MANUAL.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 22:07:34 +08:00

67 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CareerBot Admin - Education</title>
<link rel="stylesheet" href="{{ base }}/static/css/style.css">
</head>
<body>
<div class="admin-layout">
<aside class="admin-sidebar">
<div class="logo">CareerBot Admin</div>
<nav>
<a href="{{ base }}/admin/dashboard"><span class="icon">&#9632;</span> Dashboard</a>
<a href="{{ base }}/admin/profile"><span class="icon">&#9786;</span> Profile</a>
<a href="{{ base }}/admin/education"><span class="icon">&#9734;</span> Education</a>
<a href="{{ base }}/admin/experience"><span class="icon">&#9998;</span> Experience</a>
<a href="{{ base }}/admin/skills"><span class="icon">&#9733;</span> Skills</a>
<a href="{{ base }}/admin/tokens"><span class="icon">&#9911;</span> Access Tokens</a>
<a href="{{ base }}/admin/messages"><span class="icon">&#9993;</span> Messages <span class="nav-badge" id="nav-badge" style="display:none;"></span></a>
<a href="{{ base }}/admin/llm-config"><span class="icon">&#9881;</span> LLM Config</a>
<a href="{{ base }}/admin/resume"><span class="icon">&#9997;</span> Resume Gen</a>
<a href="#" onclick="adminLogout()"><span class="icon">&#8594;</span> Logout</a>
</nav>
</aside>
<main class="admin-content">
<div class="admin-header">
<h2>Education</h2>
<button class="btn btn-primary" onclick="showEducationModal()">+ Add New</button>
</div>
<div class="admin-card">
<table class="data-table">
<thead><tr><th>Period</th><th>School</th><th>Major</th><th>Degree</th><th>Actions</th></tr></thead>
<tbody id="education-tbody"></tbody>
</table>
</div>
</main>
</div>
<!-- Modal -->
<div class="modal-overlay" id="education-modal">
<div class="modal">
<h3>Education Entry</h3>
<input type="hidden" id="edu-id">
<div class="form-row">
<div class="form-group"><label>Start Date</label><input type="text" id="edu-start_date" placeholder="2020.9"></div>
<div class="form-group"><label>End Date</label><input type="text" id="edu-end_date" placeholder="2024.6"></div>
</div>
<div class="form-group"><label>School</label><input type="text" id="edu-school"></div>
<div class="form-row">
<div class="form-group"><label>Major</label><input type="text" id="edu-major"></div>
<div class="form-group"><label>Degree</label><input type="text" id="edu-degree"></div>
</div>
<div class="form-group"><label>Details</label><textarea id="edu-details" rows="4"></textarea></div>
<div class="form-group"><label>Sort Order</label><input type="number" id="edu-sort_order" value="0"></div>
<div class="modal-actions">
<button class="btn" onclick="closeModal('education-modal')">Cancel</button>
<button class="btn btn-primary" onclick="saveEducation()">Save</button>
</div>
</div>
</div>
<script>window.BASE_PATH = "{{ base }}";</script>
<script src="{{ base }}/static/js/admin.js"></script>
</body>
</html>