Sha256: 6df1bfb339121247920fce489ff9a9351f30ecadf7b6e1ee8d65d7d0cfac27ea

Contents?: true

Size: 1.14 KB

Versions: 66

Compression:

Stored size: 1.14 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
      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

66 entries across 66 versions & 1 rubygems

Version Path
foreman_remote_execution-4.5.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.6.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.4.0 webpack/react_app/components/RegistrationExtension/RexInterface.js