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