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:
@@ -229,7 +229,7 @@ new class extends Component
|
||||
|
||||
<x-button :href="route('jobs.show', $jobId)" wire:navigate subtle color="black" :text="__('jobs.tasks.from_template.back')" />
|
||||
@else
|
||||
<form wire:submit="add" class="space-y-6" novalidate>
|
||||
<form wire:submit="add" class="card space-y-6" novalidate>
|
||||
<x-radio.group
|
||||
id="template"
|
||||
wire:model.live="templateId"
|
||||
@@ -247,7 +247,7 @@ new class extends Component
|
||||
<table class="w-full border-collapse text-sm">
|
||||
<caption class="mb-2 text-left font-medium">{{ __('jobs.tasks.from_template.table_caption', ['name' => $template->name]) }}</caption>
|
||||
<thead class="max-sm:hidden">
|
||||
<tr class="border-b border-zinc-200 dark:border-zinc-700">
|
||||
<tr class="border-b-2 border-primary-200 text-primary-900 dark:border-primary-800 dark:text-primary-100">
|
||||
<th scope="col" class="py-2 pr-2 text-left font-semibold">{{ __('jobs.tasks.from_template.task') }}</th>
|
||||
<th scope="col" class="px-1 py-2 text-left font-semibold">{{ __('jobs.tasks.fields.due_on') }}</th>
|
||||
<th scope="col" class="px-1 py-2 text-left font-semibold">{{ __('jobs.tasks.fields.estimated_hours') }}</th>
|
||||
@@ -269,7 +269,7 @@ new class extends Component
|
||||
wire:model="rows.{{ $index }}.due_on"
|
||||
aria-label="{{ __('jobs.tasks.from_template.due_on_of', ['title' => $step->title]) }}"
|
||||
@error('rows.'.$index.'.due_on') aria-invalid="true" aria-describedby="row-{{ $index }}-due-on-error" @enderror
|
||||
class="w-full min-w-0 rounded-md border border-zinc-500 bg-white px-1 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800 dark:[color-scheme:dark]"
|
||||
class="w-full min-w-0 rounded-md border border-zinc-500 bg-white px-1 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800 dark:[color-scheme:dark] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
|
||||
/>
|
||||
@error('rows.'.$index.'.due_on')
|
||||
<p id="row-{{ $index }}-due-on-error" class="mt-1 text-xs text-red-700 dark:text-red-400">{{ $message }}</p>
|
||||
@@ -285,7 +285,7 @@ new class extends Component
|
||||
wire:model="rows.{{ $index }}.estimated_hours"
|
||||
aria-label="{{ __('jobs.tasks.from_template.hours_of', ['title' => $step->title]) }}"
|
||||
@error('rows.'.$index.'.estimated_hours') aria-invalid="true" aria-describedby="row-{{ $index }}-hours-error" @enderror
|
||||
class="w-16 rounded-md border max-sm:w-full border-zinc-500 bg-white px-2 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800"
|
||||
class="w-16 rounded-md border max-sm:w-full border-zinc-500 bg-white px-2 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
|
||||
/>
|
||||
@error('rows.'.$index.'.estimated_hours')
|
||||
<p id="row-{{ $index }}-hours-error" class="mt-1 text-xs text-red-700 dark:text-red-400">{{ $message }}</p>
|
||||
@@ -297,7 +297,7 @@ new class extends Component
|
||||
id="row-{{ $index }}-assignee"
|
||||
wire:model="rows.{{ $index }}.assignee_user_id"
|
||||
aria-label="{{ __('jobs.tasks.from_template.assignee_of', ['title' => $step->title]) }}"
|
||||
class="w-full min-w-0 rounded-md border border-zinc-500 bg-white px-1 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800"
|
||||
class="w-full min-w-0 rounded-md border border-zinc-500 bg-white px-1 py-1 text-sm dark:border-zinc-400 dark:bg-zinc-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
|
||||
>
|
||||
<option value="">{{ __('jobs.calendar.no_assignee') }}</option>
|
||||
@foreach ($this->userOptions as $user)
|
||||
|
||||
Reference in New Issue
Block a user