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
|
|
|
|
2019-01-27 09:48:45 +09:00
|
|
|
const SelectMultipleComponent = ({ refFunction, inputProperties, itemProperties }, { intl }) => {
|
2018-05-10 10:03:59 -04:00
|
|
|
inputProperties.multiple = true;
|
2019-01-27 09:48:45 +09:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Components.FormItem {...inputProperties} {...itemProperties}>
|
|
|
|
<Form.Control as="select" {...inputProperties} ref={refFunction} />
|
|
|
|
</Components.FormItem>
|
|
|
|
);
|
2018-05-10 10:03:59 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
SelectMultipleComponent.contextTypes = {
|
|
|
|
intl: intlShape,
|
|
|
|
};
|
|
|
|
|
|
|
|
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);
|