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-12.0.7 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.1.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-13.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-12.0.5 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-12.0.4 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-12.0.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-12.0.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-11.1.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.1.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-12.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.1.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-11.1.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-11.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-8.3.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-8.3.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-11.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.0.7 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-8.3.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-10.0.6 webpack/react_app/components/RegistrationExtension/RexInterface.js