Sha256: acb5856157fe173f015d45c34e51dadbdcdd1d64db354e1a705edfdcffbdbd79

Contents?: true

Size: 675 Bytes

Versions: 22

Compression:

Stored size: 675 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { FormControl } from 'patternfly-react';
import BlankOption from './BlankOption';

const SelectField = ({ input, blank, item, disabled }) => (
  <FormControl {...input} componentClass="select" disabled={disabled}>
    <BlankOption blank={blank} />
    {item.selection.map(opt => (
      <option key={opt.value} value={opt.value}>
        {opt.label}
      </option>
    ))}
  </FormControl>
);

SelectField.propTypes = {
  input: PropTypes.object.isRequired,
  blank: PropTypes.object.isRequired,
  item: PropTypes.object.isRequired,
  disabled: PropTypes.bool.isRequired,
};

export default SelectField;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-10.0.1 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-10.0.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.5.1 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.5.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.3.3 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.3.2 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.3.1 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.4.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.3.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.2.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.1.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.0.2 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.0.1 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-9.0.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-7.0.7 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-8.0.0 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-7.0.6 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-7.0.5 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
foreman_templates-7.0.4 webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js