Files
drl_2/xuexiao/templates/account_adjust.html
user9994793890 ee860ce0ae Initial commit
2026-05-29 10:28:07 +08:00

56 lines
2.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% block title %}手动调课时{% endblock %}
{% block content %}
<div class="page-toolbar">
<h4 class="page-title"><i class="bi bi-sliders"></i> 手动调课时</h4>
<a href="{{ url_for('student_list') }}" class="btn btn-neo-secondary">返回学员</a>
</div>
<div class="neo-surface p-4">
<p class="text-muted small">§六 允许管理员调整正课/赠课,禁止结果为负数,操作记入审计日志。</p>
<form method="POST" class="row g-3">
<div class="col-md-4">
<label class="form-label">学员</label>
<select class="form-select" name="student_id" required>
<option value="">选择学员</option>
{% for s in students %}
<option value="{{ s.id }}" {% if student_id == s.id %}selected{% endif %}>{{ s.name }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-4">
<label class="form-label">课程</label>
<select class="form-select" name="course_id" required>
<option value="">选择课程</option>
{% for c in courses %}
<option value="{{ c.id }}" {% if course_id == c.id %}selected{% endif %}>{{ c.name }}</option>
{% endfor %}
</select>
</div>
{% if account %}
<div class="col-12">
<div class="alert alert-light">
当前:正课 <strong>{{ account.normal_hours }}</strong> ·
赠课 <strong>{{ account.gifted_hours }}</strong> ·
单价 <strong>{{ account.unit_price or '-' }}</strong>
</div>
</div>
{% endif %}
<div class="col-md-3">
<label class="form-label">正课增减(+/-</label>
<input type="number" step="1" class="form-control" name="normal_delta" value="0">
</div>
<div class="col-md-3">
<label class="form-label">赠课增减(+/-</label>
<input type="number" step="1" class="form-control" name="gifted_delta" value="0">
</div>
<div class="col-md-6">
<label class="form-label">调整原因</label>
<input type="text" class="form-control" name="reason" required placeholder="必填,记入日志">
</div>
<div class="col-12">
<button type="submit" class="btn btn-neo-primary">确认调整</button>
</div>
</form>
</div>
{% endblock %}