Sha256: 359ffc05d59d212fef724023f8bbbcaf160309e6721f1a81f4d7c2cb870c6aa6

Contents?: true

Size: 1.18 KB

Versions: 12

Compression:

Stored size: 1.18 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';

import { translate as __ } from 'foremanReact/common/I18n';

import { FormGroup, TextInput, Popover } from '@patternfly/react-core';

import { HelpIcon } from '@patternfly/react-icons';

const RexInterface = ({ isLoading, onChange }) => (
  <FormGroup
    label={__('Remote Execution Interface')}
    fieldId="reg_rex_interface"
    labelIcon={
      <Popover
        bodyContent={
          <div>
            {__('Identifier of the Host interface for Remote execution')}
          </div>
        }
      >
        <button
          className="pf-c-form__group-label-help"
          onClick={e => e.preventDefault()}
        >
          <HelpIcon noVerticalAlign />
        </button>
      </Popover>
    }
  >
    <TextInput
      ouiaId="reg_rex_interface_input"
      type="text"
      onBlur={e => onChange({ remoteExecutionInterface: e.target.value })}
      id="reg_rex_interface_input"
      isDisabled={isLoading}
    />
  </FormGroup>
);

RexInterface.propTypes = {
  onChange: PropTypes.func,
  isLoading: PropTypes.bool,
};

RexInterface.defaultProps = {
  onChange: undefined,
  isLoading: false,
};

export default RexInterface;

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-14.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-14.0.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-14.0.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.6 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-14.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.5 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.4 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.2.0 webpack/react_app/components/RegistrationExtension/RexInterface.js