2025-03-20 04:41:04 +08:00

42 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block title %}编辑桌台{% endblock %}
{% block content %}
<div class="container mt-4">
<h2>编辑桌台 #{{ table.game_table_number }}</h2>
<form method="post">
<div class="form-group">
<label>桌号</label>
<input type="text" name="game_table_number" class="form-control"
value="{{ table.game_table_number }}" required>
</div>
<div class="form-group">
<label>容量(人数)</label>
<input type="number" name="capacity" class="form-control"
value="{{ table.capacity }}" required min="1">
</div>
<div class="form-group">
<label>收款策略 <span class="text-danger">*</span></label>
<select name="strategy_id" class="form-control" required style="white-space: normal;">
<option value="">请选择策略...</option>
{% for strategy in strategies %}
<option value="{{ strategy.strategy_id }}"
{% if table.table_pricing_strategy_id== strategy.strategy_id %}selected{% endif %}
style="white-space: normal;">
{{ strategy.strategy_name }} - {{ strategy.description }}
{% endfor %}
</select>
</div>
<button type="submit" class="btn btn-primary">保存</button>
<a href="{{ url_for('tables.list_tables') }}" class="btn btn-secondary">取消</a>
</form>
</div>
{% block extra_css %}
<style>
.select2-container--bootstrap-5 .select2-results__option {
white-space: normal !important;
}
</style>
{% endblock %}
{% endblock %}