CareerBot/templates/admin/experience.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

68 lines
3.4 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 - Experience</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>Work Experience</h2>
<button class="btn btn-primary" onclick="showExperienceModal()">+ Add New</button>
</div>
<div class="admin-card">
<table class="data-table">
<thead><tr><th>Period</th><th>Company</th><th>Position</th><th>Actions</th></tr></thead>
<tbody id="experience-tbody"></tbody>
</table>
</div>
</main>
</div>
<!-- Modal -->
<div class="modal-overlay" id="experience-modal">
<div class="modal">
<h3>Work Experience Entry</h3>
<input type="hidden" id="exp-id">
<div class="form-row">
<div class="form-group"><label>Start Date</label><input type="text" id="exp-start_date" placeholder="2020.1"></div>
<div class="form-group"><label>End Date</label><input type="text" id="exp-end_date" placeholder="2025.5"></div>
</div>
<div class="form-row">
<div class="form-group"><label>Company</label><input type="text" id="exp-company"></div>
<div class="form-group"><label>Position</label><input type="text" id="exp-position"></div>
</div>
<div class="form-group"><label>Company Introduction</label><textarea id="exp-company_intro" rows="3"></textarea></div>
<div class="form-group"><label>Responsibilities</label><textarea id="exp-responsibilities" rows="6"></textarea></div>
<div class="form-group"><label>Achievements</label><textarea id="exp-achievements" rows="6"></textarea></div>
<div class="form-group"><label>Sort Order</label><input type="number" id="exp-sort_order" value="0"></div>
<div class="modal-actions">
<button class="btn" onclick="closeModal('experience-modal')">Cancel</button>
<button class="btn btn-primary" onclick="saveExperience()">Save</button>
</div>
</div>
</div>
<script>window.BASE_PATH = "{{ base }}";</script>
<script src="{{ base }}/static/js/admin.js"></script>
</body>
</html>