Sha256: 6f11dd56859c675f0ff11367108066d53391b8913c3f4f0afcc3f44f1f042495
Contents?: true
Size: 1.36 KB
Versions: 24
Compression:
Stored size: 1.36 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Title, Divider, Flex, FlexItem, Button } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout'; import { JobWizard } from './JobWizard'; const JobWizardPage = ({ location: { search } }) => { const title = __('Run job'); const breadcrumbOptions = { breadcrumbItems: [ { caption: __('Jobs'), url: `/job_invocations` }, { caption: title }, ], }; return ( <PageLayout header={title} breadcrumbOptions={breadcrumbOptions} searchable={false} > <React.Fragment> <Flex> <FlexItem> <Title headingLevel="h2" size="2xl"> {title} </Title> </FlexItem> <FlexItem align={{ default: 'alignRight' }}> <Button variant="link" component="a" href={`/old/job_invocations/new${search}`} > {__('Use legacy form')} </Button> </FlexItem> </Flex> <Divider component="div" /> <JobWizard /> </React.Fragment> </PageLayout> ); }; JobWizardPage.propTypes = { location: PropTypes.shape({ search: PropTypes.string, }).isRequired, }; export default JobWizardPage;
Version data entries
24 entries across 24 versions & 1 rubygems