1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { InjectedFormProps } from 'redux-form';
7 import { WithDialogProps } from '~/store/dialog/with-dialog';
8 import { ProjectCreateFormDialogData } from '~/store/projects/project-create-actions';
9 import { FormDialog } from '~/components/form-dialog/form-dialog';
10 import { ProjectNameField, ProjectDescriptionField } from '~/views-components/form-fields/project-form-fields';
11 import { CreateProjectPropertiesForm } from '~/views-components/project-properties/create-project-properties-form';
12 import { CreateProjectPropertiesList } from '~/views-components/project-properties/create-project-properties-list';
14 type DialogProjectProps = WithDialogProps<{}> & InjectedFormProps<ProjectCreateFormDialogData>;
16 export const DialogProjectCreate = (props: DialogProjectProps) =>
18 dialogTitle='New project'
19 formFields={ProjectAddFields}
20 submitLabel='Create a Project'
24 const ProjectAddFields = () => <span>
26 <ProjectDescriptionField />
27 <CreateProjectPropertiesForm />
28 <CreateProjectPropertiesList />