add advance option to collection on table view
[arvados.git] / src / views-components / dialog-copy / dialog-collection-partial-copy.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from "react";
6 import { FormDialog } from '~/components/form-dialog/form-dialog';
7 import { CollectionNameField, CollectionDescriptionField, CollectionProjectPickerField } from '~/views-components/form-fields/collection-form-fields';
8 import { WithDialogProps } from '~/store/dialog/with-dialog';
9 import { InjectedFormProps } from 'redux-form';
10 import { CollectionPartialCopyFormData } from '~/store/collections/collection-partial-copy-actions';
11
12 type DialogCollectionPartialCopyProps = WithDialogProps<string> & InjectedFormProps<CollectionPartialCopyFormData>;
13
14 export const DialogCollectionPartialCopy = (props: DialogCollectionPartialCopyProps) =>
15     <FormDialog
16         dialogTitle='Create a collection'
17         formFields={CollectionPartialCopyFields}
18         submitLabel='Create a collection'
19         {...props}
20     />;
21
22 export const CollectionPartialCopyFields = () => <div>
23     <CollectionNameField />
24     <CollectionDescriptionField />
25     <CollectionProjectPickerField />
26 </div>;