1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as 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 { PROCESS_NAME_VALIDATION } from '~/validators/validators';
11 export const RUN_PROCESS_BASIC_FORM = 'runProcessBasicForm';
13 export interface RunProcessBasicFormData {
17 export const RunProcessBasicForm =
18 reduxForm<RunProcessBasicFormData>({
19 form: RUN_PROCESS_BASIC_FORM
22 <Grid container spacing={32}>
23 <Grid item xs={12} md={6}>
27 label="Enter a new name for run process"
29 validate={PROCESS_NAME_VALIDATION} />
31 <Grid item xs={12} md={6}>
35 label="Enter a description for run process" />