39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}添加桌台{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<h2>添加新桌台</h2>
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label>桌号</label>
|
|
<input type="text" name="game_table_number" class="form-control" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>容量(人数)</label>
|
|
<input type="number" name="capacity" class="form-control" 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 }}" style="white-space: normal;">
|
|
{{ strategy.strategy_name }} - {{ strategy.description }}
|
|
</option>
|
|
{% 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>
|
|
|
|
<style>
|
|
.select-wrapper select option {
|
|
white-space: normal !important;
|
|
word-wrap: break-word;
|
|
}
|
|
</style>
|
|
{% endblock %}
|