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

Version Path
foreman_remote_execution-10.1.3 webpack/JobWizard/index.js
foreman_remote_execution-10.1.2 webpack/JobWizard/index.js
foreman_remote_execution-10.1.1 webpack/JobWizard/index.js
foreman_remote_execution-10.1.0 webpack/JobWizard/index.js
foreman_remote_execution-8.3.3 webpack/JobWizard/index.js
foreman_remote_execution-8.3.2 webpack/JobWizard/index.js
foreman_remote_execution-10.0.7 webpack/JobWizard/index.js
foreman_remote_execution-8.3.1 webpack/JobWizard/index.js
foreman_remote_execution-10.0.6 webpack/JobWizard/index.js
foreman_remote_execution-10.0.5 webpack/JobWizard/index.js
foreman_remote_execution-10.0.4 webpack/JobWizard/index.js
foreman_remote_execution-10.0.3 webpack/JobWizard/index.js
foreman_remote_execution-10.0.2 webpack/JobWizard/index.js
foreman_remote_execution-10.0.1 webpack/JobWizard/index.js
foreman_remote_execution-10.0.0 webpack/JobWizard/index.js
foreman_remote_execution-8.3.0 webpack/JobWizard/index.js
foreman_remote_execution-9.1.0 webpack/JobWizard/index.js
foreman_remote_execution-8.2.1 webpack/JobWizard/index.js
foreman_remote_execution-8.2.0 webpack/JobWizard/index.js
foreman_remote_execution-9.0.1 webpack/JobWizard/index.js