ui: normalize order show action buttons to btn classes
This commit is contained in:
@@ -250,7 +250,7 @@
|
||||
@endphp
|
||||
<form method="post" action="/admin/platform-orders/{{ $order->id }}/activate-subscription" onsubmit="return confirm('确认同步订阅?将根据该订单创建/续期订阅');">
|
||||
@csrf
|
||||
<button type="submit" @disabled(! $canActivate || $alreadySynced || $syncBlockedByGovernance)>{{ $alreadySynced ? '已同步' : '同步订阅' }}</button>
|
||||
<button class="btn btn-secondary btn-sm" type="submit" @disabled(! $canActivate || $alreadySynced || $syncBlockedByGovernance)>{{ $alreadySynced ? '已同步' : '同步订阅' }}</button>
|
||||
</form>
|
||||
|
||||
@if($syncBlockedByGovernance)
|
||||
@@ -285,7 +285,7 @@
|
||||
$subBack = $orderShowSelf;
|
||||
$openSubUrl2 = '/admin/site-subscriptions/' . $order->siteSubscription->id . '?' . \Illuminate\Support\Arr::query(['back' => $subBack]);
|
||||
@endphp
|
||||
<a class="btn-secondary" href="{!! $openSubUrl2 !!}">查看已同步订阅</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $openSubUrl2 !!}">查看已同步订阅</a>
|
||||
@endif
|
||||
|
||||
@php
|
||||
@@ -293,7 +293,7 @@
|
||||
@endphp
|
||||
<form method="post" action="/admin/platform-orders/{{ $order->id }}/mark-activated" onsubmit="return confirm('确认将该订单标记为已生效?(不修改支付状态,不自动同步订阅)');">
|
||||
@csrf
|
||||
<button type="submit" @disabled(! $canMarkActivatedOnly)>仅标记为已生效</button>
|
||||
<button class="btn btn-secondary btn-sm" type="submit" @disabled(! $canMarkActivatedOnly)>仅标记为已生效</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user