This commit is contained in:
f4ilji
2024-11-21 06:08:22 +05:00
parent 1efd49607f
commit f144b0a300
4 changed files with 59 additions and 2 deletions
@@ -114,7 +114,10 @@ class UserDetailForm
Forms\Components\TextInput::make('item')->label('')->string()->required()
])->label('Участие в научных проектах')->defaultItems(0),
Forms\Components\Repeater::make('publications')->schema([
Forms\Components\TextInput::make('item')->label('')->string()->required()
Forms\Components\TextInput::make('category_publication')->label('Категория публикаций')->string()->required(),
Forms\Components\Repeater::make('publication')->schema([
Forms\Components\TextInput::make('item')->label('')->string()->required()
])->label('Публикации')->collapsed(),
])->label('Публикации')->defaultItems(0),
]),
Tabs\Tab::make('Другое')
@@ -17,6 +17,9 @@ class UserDetailRelationManager extends RelationManager
{
protected static string $relationship = 'userDetail';
protected static ?string $title = 'Детальная информация';
protected static ?string $inverseRelationship = 'user';
public function form(Form $form): Form