// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { reduxForm, Field, InjectedFormProps } from 'redux-form'; import { Grid, Typography, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core'; import { TextField } from 'components/text-field/text-field'; import { ProjectInput, ProjectCommandInputParameter } from 'views/run-process-panel/inputs/project-input'; import { PROCESS_NAME_VALIDATION } from 'validators/validators'; import { ProjectResource } from 'models/project'; import { UserResource } from 'models/user'; import { WorkflowResource } from 'models/workflow'; import { ArvadosTheme } from 'common/custom-theme'; export const RUN_PROCESS_BASIC_FORM = 'runProcessBasicForm'; export interface RunProcessBasicFormData { name: string; description: string; owner?: ProjectResource | UserResource; } interface RunProcessBasicFormProps { workflow?: WorkflowResource } type CssRules = 'name' | 'description'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ name: { overflow: "hidden", color: theme.customs.colors.greyD, fontSize: "1.875rem", }, description: { marginBottom: "3em", } }); export const RunProcessBasicForm = reduxForm({ form: RUN_PROCESS_BASIC_FORM })(withStyles(styles)((props: InjectedFormProps & RunProcessBasicFormProps & WithStyles) =>
{props.workflow && {props.workflow.name}} {props.workflow && }
));