File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
packages/slug/resources/views/forms/fields Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 7979 <span >{{ $getLabelPrefix () } } </span >
8080 <span style =" color : #9ca3af ; margin-left : 0.25rem ;" >{{ $getFullBaseUrl () } } </span >
8181 <span style =" color : #9ca3af ; font-weight : 600 ; margin-left : 0.25rem ;" >{{ $getState () } } </span >
82- <x-filament::link tag =" button" x-on:click.prevent =" initModification()" x-show =" !editing"
83- x-bind:class =" context !== 'create' && modified ? 'text-gray-600 bg-gray-100 dark:text-gray-400 dark:bg-gray-700 px-1 rounded-md' : ''"
84- icon =" heroicon-m-pencil-square" icon-size =" sm" icon-position =" after"
85- style =" margin-left : 0.25rem ;" >
86- </x-filament::link >
82+ @if ($this instanceof \Filament\Resources\Pages\ EditRecord )
83+ <x-filament::link tag =" button" x-on:click.prevent =" initModification()" x-show =" !editing"
84+ tooltip =" {{ __ (' slug::fields.permalink_action_edit' ) } }"
85+ x-bind:class =" context !== 'create' && modified ? 'text-gray-600 bg-gray-100 dark:text-gray-400 dark:bg-gray-700 px-1 rounded-md' : ''"
86+ icon =" heroicon-m-pencil-square" icon-size =" sm" icon-position =" after"
87+ style =" margin-left : 0.25rem ;" >
88+ </x-filament::link >
89+ @endif
8790 @if ($getSlugLabelPostfix () )
8891 <span style =" margin-left : 0.125rem ; color : #9ca3af ;" >{{ $getSlugLabelPostfix () } } </span >
8992 @endif
You can’t perform that action at this time.
0 commit comments