Skip to content

Commit 040b53c

Browse files
committed
minor style changes for template edit form
1 parent 92de86a commit 040b53c

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

dist/css/app.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "npm run development",
4+
"dev": "mix watch",
55
"watch": "mix watch",
66
"watch-poll": "mix watch -- --watch-options-poll=1000",
77
"hot": "mix watch --hot",

src/Resources/LayoutResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ protected static function getFormContent(): array
9696
return [
9797
Forms\Components\Card::make([
9898
Forms\Components\TextInput::make('name')
99+
->label('Internal name')
99100
->required()
100101
->autofocus()
101102
// Disable field UI if the record exists and user can't unlock it

src/Resources/TemplateResource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ protected static function getFormContent(): array
100100
return [
101101
Forms\Components\Card::make([
102102
Forms\Components\TextInput::make('name')
103+
->label('Internal name')
103104
->required()
104105
->autofocus()
105106
// Disable field UI if the record exists and user can't unlock it
@@ -153,9 +154,10 @@ protected static function getFormSidebar(): array
153154
Forms\Components\Group::make([
154155
Forms\Components\Placeholder::make('Separator')
155156
->label('')
156-
->content(new HtmlString('<div class="h-1 border-b border-gray-100 dark:border-gray-700"></div>')),
157+
->content(new HtmlString('<div class="h-1 border-b border-slate-100 dark:border-slate-700"></div>')),
157158

158159
Forms\Components\TextInput::make('slug')
160+
->helperText(new HtmlString('<span class="text-xs text-slate-500 pl-2">Use this as "template" key in your APIs</span>'))
159161
->dehydrated(false) // Prevent it from being updated
160162
->extraInputAttributes([
161163
'readonly' => 'readonly',

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const colors = require('tailwindcss/colors');
33

44
module.exports = {
55
content: [
6-
'./src/Filament/Resources/**/*.php',
6+
'./src/Resources/**/*.php',
77
'./resources/**/*.blade.php',
88
'./resources/**/*.blade.php.stub',
99
'./resources/**/*.js',

0 commit comments

Comments
 (0)