2018-05-10 10:03:59 -04:00
|
|
|
import React from 'react';
|
|
|
|
import { intlShape } from 'meteor/vulcan:i18n';
|
2019-01-26 21:21:09 +09:00
|
|
|
import Form from 'react-bootstrap/lib/Form';
|
2019-01-24 18:01:53 +09:00
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
2018-05-10 10:03:59 -04:00
|
|
|
|
|
|
|
const SelectMultipleComponent = ({refFunction, inputProperties, ...properties}, { intl }) => {
|
|
|
|
inputProperties.multiple = true;
|
|
|
|
|
2019-01-24 18:01:53 +09:00
|
|
|
return <Components.FormItem {...inputProperties}><Form.Control as="select" {...inputProperties} ref={refFunction}/></Components.FormItem>;
|
2018-05-10 10:03:59 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
SelectMultipleComponent.contextTypes = {
|
|
|
|
intl: intlShape,
|
|
|
|
};
|
|
|
|
|
|
|
|
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);
|