Skip to content

Commit

Permalink
new label docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-xz committed Sep 5, 2024
1 parent 62c6314 commit 1b8739c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions database/seeders/LabelSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public function run(): void
'name' => 'critical',
'description' => 'Critical task'
]);
Label::firstOrCreate([
'name' => 'docs',
'description' => 'Documents and management'
]);
Label::firstOrCreate([
'name' => 'error',
'description' => 'An error occured',
Expand Down
1 change: 1 addition & 0 deletions lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"error": "ошибка",
"normal": "обычный",
"high": "высокий",
"docs": "документы",
"critical": "критично",
"new response": "новый ответ",
"New": "Новая",
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/label.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'high' => 'bg-red-400 text-black',
'critical' => 'bg-red-700 text-black',
'error' => 'bg-red-300 text-red-700',
'docs' => 'bg-gray-300 text-gray-700',
'new response' => 'bg-orange-300 text-orange-700',
default => 'bg-blue-200 text-blue-400',
};
Expand Down
2 changes: 1 addition & 1 deletion resources/views/tasks/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{ html()->label(__('Status'), 'status_id')->class($labelStyle) }}
</div>
<div {{ $divAttributes }}>
{{ html()->select('status_id', $statusesByIds)->class($inputStyle)->placeholder('') }}
{{ html()->select('status_id', $statusesByIds)->class($inputStyle) }}
</div>
<x-input-error :messages="$errors->get('status_id')" class="mt-2" />
<div {{ $divAttributes }}>
Expand Down

0 comments on commit 1b8739c

Please sign in to comment.