Sha256: f5ac3fdfab12001e3aa9d1765c8e90aa8f4676c232e00fe1d92eec823443b53b

Contents?: true

Size: 885 Bytes

Versions: 10

Compression:

Stored size: 885 Bytes

Contents

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

const FormTextInput= ({
  label,
  hidden,
  editable,
  viewText,
  onChange,
  parameter,
}) =>{
  return (
    <div >
      <div  >
        <ExtTextInput
          label={label}
          editable={editable}
          viewText={viewText}
          onChange={onChange}
        />
        <RailsData
          key='ansible_playbook_form_data'
          view='ansible_playbook'
          parameter={parameter}
          value={viewText}
        />
      </div>
    </div>
  );
};

FormTextInput.propTypes = {
  label: PropTypes.string.isRequired,
  editable: PropTypes.bool.isRequired,
  viewText: PropTypes.string,
  onChange: PropTypes.func.isRequired,
  parameter: PropTypes.string,
};

export default FormTextInput;

Version data entries

10 entries across 10 versions & 1 rubygems

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