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