1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { reduxForm, Field } from 'redux-form';
7 import { Grid } from '@material-ui/core';
8 import { TextField } from 'components/text-field/text-field';
9 import { ProjectInput } from 'views/run-process-panel/inputs/project-input';
10 import { PROCESS_NAME_VALIDATION } from 'validators/validators';
12 export const RUN_PROCESS_BASIC_FORM = 'runProcessBasicForm';
14 export interface RunProcessBasicFormData {
19 export const RunProcessBasicForm =
20 reduxForm<RunProcessBasicFormData>({
21 form: RUN_PROCESS_BASIC_FORM
24 <Grid container spacing={32}>
25 <Grid item xs={12} md={6}>
28 component={TextField as any}
29 label="Enter a new name for run process"
31 validate={PROCESS_NAME_VALIDATION} />
33 <Grid item xs={12} md={6}>
36 component={TextField as any}
37 label="Enter a description for run process" />
39 <Grid item xs={12} md={6}>
42 component={ProjectInput as any}
43 label="Project to run the process in" />