Templates: - mission_timeline_preview: client-side rendering with lane stacking, wheel zoom, drag pan, percentage-based layout, event dedup, scale labels - asset_detail: dock/undock modals with time selection, future event warning, Mission Label column replacing Location/State - asset_entry_form: all_locations expanded to 72 items (draft board hierarchy), all_states dynamic from DB, event point dropdown uses same list - Remove sim_time from all template url_for links - base.html: remove Today button JS: - app.js: sim_time controls use POST /api/v1/sim-time API instead of URL param Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
45 lines
1.7 KiB
HTML
45 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="ph-row fi">
|
|
<div class="ph">
|
|
<div class="ey">Reference Data</div>
|
|
<h1>载具成本</h1>
|
|
</div>
|
|
<a class="b ac" href="{{ url_for('web.vehicle_new') }}">+ New</a>
|
|
</div>
|
|
|
|
<div class="fb fi">
|
|
<form method="get" action="{{ url_for('web.vehicle_list') }}" style="display:flex;gap:8px;align-items:center;flex-wrap:wrap">
|
|
<input type="text" name="q" value="{{ search_term }}" placeholder="Search...">
|
|
<select name="source" onchange="this.form.submit()">
|
|
<option value="">All Sources</option>
|
|
{% for s in source_options %}<option value="{{ s }}" {% if s == source_filter %}selected{% endif %}>{{ s }}</option>{% endfor %}
|
|
</select>
|
|
<button class="b" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
|
|
<table class="fi">
|
|
<thead><tr><th>Name</th><th>Launch Cost</th><th>Source</th><th>Action</th></tr></thead>
|
|
<tbody>
|
|
{% for row in rows %}
|
|
<tr>
|
|
<td><a href="{{ url_for('web.vehicle_edit', vehicle_id=row.id) }}">{{ row.vehicle_name }}</a></td>
|
|
<td>{{ row.launch_cost_funds or '—' }} funds</td>
|
|
<td class="mt">{{ row.source or '—' }}</td>
|
|
<td><div class="act-btn"><a href="{{ url_for('web.vehicle_edit', vehicle_id=row.id) }}">Edit</a></div></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if total_pages > 1 %}
|
|
<div class="pg-bar fi">
|
|
{% if has_prev %}<a href="{{ prev_url }}">← Prev</a>{% endif %}
|
|
{% for link in page_links %}{% if link.is_current %}<span class="cur">{{ link.page }}</span>{% elif link.is_ellipsis %}<span>...</span>{% else %}<a href="{{ link.url }}">{{ link.page }}</a>{% endif %}{% endfor %}
|
|
{% if has_next %}<a href="{{ next_url }}">Next →</a>{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|