Changes
This commit is contained in:
+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