2025-02-10 01:32:16 +03:00
|
|
|
import { TextArea, TextInput } from '@/components/Input';
|
2024-07-29 16:55:48 +03:00
|
|
|
|
|
|
|
interface TabOperationProps {
|
|
|
|
alias: string;
|
2024-11-21 00:26:04 +03:00
|
|
|
onChangeAlias: (newValue: string) => void;
|
2024-07-29 16:55:48 +03:00
|
|
|
title: string;
|
2024-11-21 00:26:04 +03:00
|
|
|
onChangeTitle: (newValue: string) => void;
|
2024-07-29 16:55:48 +03:00
|
|
|
comment: string;
|
2024-11-21 00:26:04 +03:00
|
|
|
onChangeComment: (newValue: string) => void;
|
2024-07-29 16:55:48 +03:00
|
|
|
}
|
|
|
|
|
2024-11-21 00:26:04 +03:00
|
|
|
function TabOperation({ alias, onChangeAlias, title, onChangeTitle, comment, onChangeComment }: TabOperationProps) {
|
2024-07-29 16:55:48 +03:00
|
|
|
return (
|
2024-12-12 13:17:24 +03:00
|
|
|
<div className='cc-fade-in cc-column'>
|
2024-07-29 16:55:48 +03:00
|
|
|
<TextInput
|
|
|
|
id='operation_title'
|
|
|
|
label='Полное название'
|
|
|
|
value={title}
|
2024-11-21 00:26:04 +03:00
|
|
|
onChange={event => onChangeTitle(event.target.value)}
|
2024-07-29 16:55:48 +03:00
|
|
|
/>
|
|
|
|
<div className='flex gap-6'>
|
2024-07-30 15:59:37 +03:00
|
|
|
<TextInput
|
|
|
|
id='operation_alias'
|
|
|
|
label='Сокращение'
|
2024-08-22 23:23:26 +03:00
|
|
|
className='w-[16rem]'
|
2024-07-30 15:59:37 +03:00
|
|
|
value={alias}
|
2024-11-21 00:26:04 +03:00
|
|
|
onChange={event => onChangeAlias(event.target.value)}
|
2024-07-30 15:59:37 +03:00
|
|
|
/>
|
2024-07-29 16:55:48 +03:00
|
|
|
|
|
|
|
<TextArea
|
|
|
|
id='operation_comment'
|
|
|
|
label='Описание'
|
|
|
|
noResize
|
|
|
|
rows={3}
|
|
|
|
value={comment}
|
2024-11-21 00:26:04 +03:00
|
|
|
onChange={event => onChangeComment(event.target.value)}
|
2024-07-29 16:55:48 +03:00
|
|
|
/>
|
|
|
|
</div>
|
2024-12-12 13:17:24 +03:00
|
|
|
</div>
|
2024-07-29 16:55:48 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default TabOperation;
|