Skip to content

A free open source IT asset/license management system

Small UX updates to components blades

snipe39577b065f69
diff --git a/resources/views/components/bulk-edit.blade.php b/resources/views/components/bulk-edit.blade.php
index 162e041998..49132596f5 100644
--- a/resources/views/components/bulk-edit.blade.php
+++ b/resources/views/components/bulk-edit.blade.php
@@ -19,7 +19,7 @@
{{ trans('admin/components/general.bulk_edit_help') }}
</x-callout>
- <table class="table table-striped">
+ <table class="table table-striped" style="margin-bottom: 25px; border-bottom: 1px solid light-dark(#eeeeee, #656464);">
<thead>
<tr>
<th>{{ trans('general.id') }}</th>
diff --git a/resources/views/components/edit.blade.php b/resources/views/components/edit.blade.php
index 14af7b6b4f..833d5f5ea6 100644
--- a/resources/views/components/edit.blade.php
+++ b/resources/views/components/edit.blade.php
@@ -141,14 +141,20 @@
data-mutex-with="archived"
/>
+ {{-- Suppress help_text when an archived validation error is
+ already surfacing. The active-checkouts gate renders
+ the same copy via both the help block (fresh render)
+ and the inline x-form.error (post-reject redisplay),
+ so without this guard the same sentence shows twice
+ stacked when the server rejects the write. --}}
<x-form.checkbox-row
name="archived"
:label="trans('general.archived')"
- :help_text="($item->exists && $item->numCheckedOut() > 0)
+ :help_text="$errors->has('archived') ? null : (($item->exists && $item->numCheckedOut() > 0)
? trans('admin/components/message.archived_blocked_by_checkouts')
: (($pendingRequestCount > 0)
? trans_choice('admin/components/general.archived_cancels_pending_requests', $pendingRequestCount, ['count' => $pendingRequestCount])
- : trans('admin/components/general.archived_help'))"
+ : trans('admin/components/general.archived_help')))"
:help_icon="$pendingRequestCount > 0 ? 'warning' : null"
:help_class="$pendingRequestCount > 0 ? 'text-warning' : null"
:item="$item"