Sha256: 03ea2028417d88cecff700512bb306124c774715c6d8bfe35eb10947f7ac92bd

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import ExtSelect from '../../common/ExtSelect';
import RailsData from '../../common/RailsData'

const AnsiblePlaybookSelector= ({
  label,
  hidden,
  editable,
  viewText,
  selectValue,
  onChange,
  options,
  additionalData,
}) =>{
  return (
    <div className="form-group">
      <label className="col-md-2 control-label">{label}</label>
      <div className="col-md-4">
        <ExtSelect
          hidden={hidden}
          editable={editable}
          viewText={viewText}
          selectValue={selectValue}
          onChange={onChange}
          options={options}
          additionalData={additionalData}
        />
        <RailsData
          key='ansible_playbook_data'
          view='app_definition'
          parameter='acd_ansible_playbook_id'
          value={selectValue}
        />
      </div>
    </div>
  );
};

AnsiblePlaybookSelector.propTypes = {
  label: PropTypes.string.isRequired,
  editable: PropTypes.bool.isRequired,
  viewText: PropTypes.string,
  selectValue: PropTypes.string,
  onChange: PropTypes.func.isRequired,
  options: PropTypes.object,
  additionalData: PropTypes.object,
};

export default AnsiblePlaybookSelector;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_acd-0.9.7 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.5 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.4 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.3 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.2.3 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.2.2 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.2.1 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.2 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.1 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
foreman_acd-0.9.0 webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js