style(admin product import histories): unify action buttons

This commit is contained in:
萝卜
2026-03-14 09:55:04 +00:00
parent 12fe0fa7cf
commit 5c3669f1fa

View File

@@ -21,7 +21,7 @@
}, ARRAY_FILTER_USE_BOTH));
@endphp
<form method="get" action="/admin/products/import-histories" class="mb-12">
<div class="actions">
<div class="actions gap-10">
<select name="merchant_id">
<option value="">全部商家</option>
@foreach(($historyMerchants ?? collect()) as $merchant)
@@ -47,10 +47,10 @@
<option value="{{ $sortValue }}" @selected(($importHistoryFilters['sort'] ?? 'latest') === $sortValue)>{{ $sortLabel }}</option>
@endforeach
</select>
<button type="submit">筛选导入历史</button>
<a href="{{ '/admin/products/import-histories/export' . ($exportHistoryQuery ? ('?' . $exportHistoryQuery) : '') }}">导出当前筛选 CSV</a>
<a href="/admin/products/import-histories">清空筛选</a>
<a href="/admin/products">返回商品页</a>
<button type="submit" class="btn btn-sm">筛选导入历史</button>
<a href="{{ '/admin/products/import-histories/export' . ($exportHistoryQuery ? ('?' . $exportHistoryQuery) : '') }}" class="btn btn-secondary btn-sm">导出当前筛选 CSV</a>
<a href="/admin/products/import-histories" class="btn btn-secondary btn-sm">清空筛选</a>
<a href="/admin/products" class="btn btn-secondary btn-sm">返回商品页</a>
</div>
</form>
@@ -90,7 +90,7 @@
<td>{{ $history->admin?->name ?? '-' }}</td>
<td>
@if($history->failure_file && ($history->failure_file_available ?? false))
<a href="/admin/products/import-failures/{{ $history->failure_file }}">下载 failure CSV</a>
<a href="/admin/products/import-failures/{{ $history->failure_file }}" class="btn btn-secondary btn-sm">下载 failure CSV</a>
@elseif($history->failure_file)
<span class="muted">文件已过保留期</span>
@else