fix bugs and add log viewer package
This commit is contained in:
@@ -105,17 +105,17 @@ class AcademicJournalResource extends Resource
|
||||
TextInput::make('name')
|
||||
->label('ФИО')
|
||||
->required()
|
||||
->maxLength(100)
|
||||
->maxLength(255)
|
||||
->placeholder('Иванов Иван Иванович'),
|
||||
TextInput::make('academicTitle')
|
||||
->label('Учёная степень')
|
||||
->required()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->placeholder('д.т.н., профессор'),
|
||||
TextInput::make('position')
|
||||
->label('Должность')
|
||||
->required()
|
||||
->maxLength(100)
|
||||
->maxLength(255)
|
||||
->placeholder('Главный научный сотрудник'),
|
||||
TextInput::make('institution')
|
||||
->label('Учреждение')
|
||||
@@ -137,17 +137,17 @@ class AcademicJournalResource extends Resource
|
||||
TextInput::make('name')
|
||||
->label('ФИО')
|
||||
->required()
|
||||
->maxLength(100)
|
||||
->maxLength(255)
|
||||
->placeholder('Петров Петр Петрович'),
|
||||
TextInput::make('academicTitle')
|
||||
->label('Учёная степень')
|
||||
->required()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->placeholder('к.ф.-м.н., доцент'),
|
||||
TextInput::make('position')
|
||||
->label('Должность')
|
||||
->required()
|
||||
->maxLength(100)
|
||||
->maxLength(255)
|
||||
->placeholder('Доцент кафедры'),
|
||||
TextInput::make('institution')
|
||||
->label('Учреждение')
|
||||
|
||||
+7
-9
@@ -37,20 +37,18 @@ class JournalsRelationManager extends RelationManager
|
||||
->label('Файл выпуска')
|
||||
->required()
|
||||
->acceptedFileTypes([
|
||||
'application/pdf' => 'PDF',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'DOCX',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => 'XLSX',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'PPTX',
|
||||
'application/zip' => 'ZIP',
|
||||
'application/pdf',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
||||
'application/zip'
|
||||
])
|
||||
->maxSize(512000)
|
||||
->disk('public')
|
||||
->directory('journals/files')
|
||||
->directory('files')
|
||||
->downloadable()
|
||||
->visibility('public')
|
||||
->helperText('Максимальный размер файла: 512MB. Допустимые форматы: PDF, DOCX, XLSX, PPTX, ZIP')
|
||||
->openable()
|
||||
->previewable(false),
|
||||
->openable(),
|
||||
|
||||
|
||||
TextInput::make('year_publication')
|
||||
|
||||
Reference in New Issue
Block a user