Card the remaining form pages in the new look
The tasks-from-template, expense, stock item, workflow template and task hour forms sat inside @if blocks, so the earlier pass left them as bare fields on the page background. They are now cards; the template table has the indigo header row and primary focus rings, the expense billing fieldset and workflow steps get an inner surface instead of a nested card, locked-job notices are amber, and the item image picker button uses the primary colour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -175,7 +175,7 @@ new class extends Component
|
||||
@if ($this->groups === [])
|
||||
<p class="text-sm">{{ __('inventory.form.no_groups') }} <x-link :href="route('inventory.groups')" navigate>{{ __('inventory.index.groups') }}</x-link></p>
|
||||
@else
|
||||
<form wire:submit="save" class="space-y-6" novalidate>
|
||||
<form wire:submit="save" class="card space-y-6" novalidate>
|
||||
{{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}}
|
||||
<x-select.native id="item-group" wire:model="groupId" :label="__('inventory.form.group')" :aria-label="__('inventory.form.group')">
|
||||
@foreach ($this->groups as $group)
|
||||
@@ -211,7 +211,7 @@ new class extends Component
|
||||
accept="image/jpeg,image/png,image/webp,image/gif"
|
||||
aria-describedby="item-image-hint @error('image') item-image-error @enderror"
|
||||
@error('image') aria-invalid="true" @enderror
|
||||
class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600"
|
||||
class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-primary-50 file:px-3 file:py-2 file:font-medium file:text-primary-800 hover:file:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100 dark:file:bg-primary-950 dark:file:text-primary-100 dark:hover:file:bg-primary-900"
|
||||
/>
|
||||
@error('image')
|
||||
<p id="item-image-error" class="text-sm text-red-700 dark:text-red-400">{{ $message }}</p>
|
||||
|
||||
Reference in New Issue
Block a user