Changes
This commit is contained in:
@@ -79,17 +79,17 @@ class UserDetailForm
|
||||
Forms\Components\TextInput::make('year')->label('Года обучения')->string()->required(),
|
||||
Forms\Components\TextInput::make('content')->label('Общая информация')->string()->required(),
|
||||
Forms\Components\TextInput::make('institution')->label('Учебное заведение')->string()->required()
|
||||
])->label('Образование'),
|
||||
])->label('Образование')->defaultItems(0),
|
||||
Forms\Components\Repeater::make('professionalRetraining')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Профессиональная переподготовка'),
|
||||
])->label('Профессиональная переподготовка')->defaultItems(0),
|
||||
Forms\Components\Repeater::make('professionalDevelopment')
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Повышение квалификации'),
|
||||
])->label('Повышение квалификации')->defaultItems(0),
|
||||
Forms\Components\Repeater::make('awards')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Награды'),
|
||||
])->label('Награды')->defaultItems(0),
|
||||
]),
|
||||
Tabs\Tab::make('Преподавание')
|
||||
->schema([
|
||||
@@ -103,19 +103,19 @@ class UserDetailForm
|
||||
]),
|
||||
Forms\Components\Repeater::make('professDisciplines')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Преподаваемые дисциплины'),
|
||||
])->label('Преподаваемые дисциплины')->defaultItems(0),
|
||||
]),
|
||||
Tabs\Tab::make('Научная деятельность')
|
||||
->schema([
|
||||
Forms\Components\Repeater::make('attendedConferences')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Участие в конференциях'),
|
||||
])->label('Участие в конференциях')->defaultItems(0),
|
||||
Forms\Components\Repeater::make('participationScienceProjects')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Участие в научных проектах'),
|
||||
])->label('Участие в научных проектах')->defaultItems(0),
|
||||
Forms\Components\Repeater::make('publications')->schema([
|
||||
Forms\Components\TextInput::make('item')->label('')->string()->required()
|
||||
])->label('Публикации'),
|
||||
])->label('Публикации')->defaultItems(0),
|
||||
]),
|
||||
Tabs\Tab::make('Другое')
|
||||
->schema([
|
||||
|
||||
+7
-3
@@ -25,9 +25,10 @@ class TeachersRelationManager extends RelationManager
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('name')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
Forms\Components\TextInput::make('teaching_position')->label('Преподавательская должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -46,6 +47,9 @@ class TeachersRelationManager extends RelationManager
|
||||
->form(fn (AttachAction $action): array => [
|
||||
$action->getRecordSelect(),
|
||||
Forms\Components\TextInput::make('teaching_position')->label('Преподавательская должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
])
|
||||
])
|
||||
->actions([
|
||||
|
||||
@@ -25,6 +25,9 @@ class WorkersRelationManager extends RelationManager
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('position')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -44,6 +47,9 @@ class WorkersRelationManager extends RelationManager
|
||||
->form(fn (AttachAction $action): array => [
|
||||
$action->getRecordSelect(),
|
||||
Forms\Components\TextInput::make('position')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
])
|
||||
])
|
||||
->actions([
|
||||
|
||||
@@ -22,6 +22,9 @@ class WorkersRelationManager extends RelationManager
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('administrativePosition')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -45,6 +48,9 @@ class WorkersRelationManager extends RelationManager
|
||||
->form(fn (AttachAction $action): array => [
|
||||
$action->getRecordSelect(),
|
||||
Forms\Components\TextInput::make('administrativePosition')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
])
|
||||
])
|
||||
->actions([
|
||||
|
||||
@@ -23,6 +23,9 @@ class WorkersRelationManager extends RelationManager
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('position')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -45,6 +48,9 @@ class WorkersRelationManager extends RelationManager
|
||||
->form(fn (AttachAction $action): array => [
|
||||
$action->getRecordSelect()->preload(),
|
||||
Forms\Components\TextInput::make('position')->label('Должность')->required(),
|
||||
Forms\Components\TextInput::make('service_email')->label('Служебная почта'),
|
||||
Forms\Components\TextInput::make('service_phone')->label('Служебный телефон'),
|
||||
Forms\Components\TextInput::make('cabinet')->label('Кабинет'),
|
||||
])
|
||||
])
|
||||
->actions([
|
||||
|
||||
Reference in New Issue
Block a user