Files
vps_web/templates/admin/_plan_form_inline.html
ddrwode 3a61598b59 哈哈
2026-02-09 14:18:42 +08:00

45 lines
2.9 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.

<form id="plan-form" method="post" class="admin-form plan-form-inline" action="">
<input type="hidden" name="plan_id" id="plan_id" value="">
{% if from_provider_id %}
<input type="hidden" name="from_provider_id" id="from_provider_id" value="{{ from_provider_id }}">
{% endif %}
<div class="form-group">
<label for="provider_id">厂商 *</label>
<select id="provider_id" name="provider_id" required>
<option value="">请选择厂商</option>
{% for p in providers %}
<option value="{{ p.id }}" {{ 'selected' if from_provider_id == p.id else '' }}>{{ p.name }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label>国家(可多选)</label>
<div class="country-tags" id="country-tags">
{% for tag in country_tags %}
<label class="tag-chip"><input type="checkbox" name="country_tag" value="{{ tag }}"> {{ tag }}</label>
{% endfor %}
</div>
<input type="hidden" name="countries" id="countries" value="">
</div>
<div class="form-row">
<div class="form-group"><label for="vcpu">vCPU</label><input type="number" id="vcpu" name="vcpu" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="memory_gb">内存 GB</label><input type="number" id="memory_gb" name="memory_gb" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="storage_gb">存储 GB</label><input type="number" id="storage_gb" name="storage_gb" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="bandwidth_mbps">带宽 Mbps</label><input type="number" id="bandwidth_mbps" name="bandwidth_mbps" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="traffic">流量</label><input type="text" id="traffic" name="traffic" value="" placeholder="如1TB、不限"></div>
</div>
<div class="form-row">
<div class="form-group"><label for="price_cny">月付 ¥</label><input type="number" id="price_cny" name="price_cny" step="0.01" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="price_usd">月付 $</label><input type="number" id="price_usd" name="price_usd" step="0.01" min="0" value="" placeholder="—"></div>
<div class="form-group"><label for="currency">货币</label><select id="currency" name="currency"><option value="CNY">CNY</option><option value="USD">USD</option></select></div>
</div>
<div class="form-group">
<label for="official_url">官网链接</label>
<input type="url" id="official_url" name="official_url" value="" placeholder="https://...">
</div>
<div class="form-actions">
<button type="submit" id="plan-form-submit">保存</button>
<button type="button" id="plan-form-cancel" class="btn-cancel">取消</button>
</div>
</form>