style(admin): orders index export/filter controls use btn components
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
$exportQuery = http_build_query(array_filter($filters, fn ($value) => $value !== null && $value !== ''));
|
||||
@endphp
|
||||
<div class="mb-12">
|
||||
<a href="{{ '/admin/orders/export' . ($exportQuery ? ('?' . $exportQuery) : '') }}">导出当前筛选结果 CSV</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{{ '/admin/orders/export' . ($exportQuery ? ('?' . $exportQuery) : '') }}">导出当前筛选结果 CSV</a>
|
||||
</div>
|
||||
<h3>筛选条件</h3>
|
||||
@if(!empty($filters['validation_errors']))
|
||||
@@ -38,7 +38,7 @@
|
||||
<input type="number" step="0.01" min="0" name="min_pay_amount" placeholder="最低实付金额" value="{{ $filters['min_pay_amount'] }}">
|
||||
<input type="number" step="0.01" min="0" name="max_pay_amount" placeholder="最高实付金额" value="{{ $filters['max_pay_amount'] }}">
|
||||
<select name="sort">@foreach($filterOptions['sortOptions'] as $sortValue => $sortLabel)<option value="{{ $sortValue }}" @selected(($filters['sort'] ?? 'latest') === $sortValue)>{{ $sortLabel }}</option>@endforeach</select>
|
||||
<div class="actions"><button type="submit">筛选</button><a href="/admin/orders">重置</a></div>
|
||||
<div class="actions"><button class="btn btn-sm" type="submit">筛选</button><a class="btn btn-secondary btn-sm" href="/admin/orders">重置</a></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user