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-7.1.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-7.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-7.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.7 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.6 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-6.2.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.5 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-6.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.4 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.3 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-6.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.2 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.1.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.1 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-5.0.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.8.0 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.6 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.5 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.5.4 webpack/react_app/components/RegistrationExtension/RexInterface.js
foreman_remote_execution-4.7.0 webpack/react_app/components/RegistrationExtension/RexInterface.js