2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-06-02 11:40:55 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
|
|
|
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
|
|
|
|
import MenuItem from 'react-bootstrap/lib/MenuItem';
|
2015-07-03 19:08:56 +02:00
|
|
|
import { getLangText } from '../../utils/lang_utils.js'
|
2015-06-02 11:40:55 +02:00
|
|
|
|
|
|
|
let PieceListToolbarFilterWidgetFilter = React.createClass({
|
|
|
|
render() {
|
2015-07-01 19:05:47 +02:00
|
|
|
let filterIcon = <Glyphicon glyph='filter' className="filter-glyph"/>;
|
2015-06-02 11:40:55 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<DropdownButton title={filterIcon}>
|
|
|
|
<li style={{'textAlign': 'center'}}>
|
2015-07-03 19:08:56 +02:00
|
|
|
<em>{getLangText('Show Pieces that')}:</em>
|
2015-06-02 11:40:55 +02:00
|
|
|
</li>
|
|
|
|
<MenuItem eventKey='1'>
|
|
|
|
<div className="checkbox">
|
2015-07-03 19:08:56 +02:00
|
|
|
{getLangText('I can transfer')} <input type="checkbox" />
|
2015-06-02 11:40:55 +02:00
|
|
|
</div>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem eventKey='2'>
|
|
|
|
<div className="checkbox">
|
2015-07-03 19:08:56 +02:00
|
|
|
{getLangText('I can consign')} <input type="checkbox" />
|
2015-06-02 11:40:55 +02:00
|
|
|
</div>
|
|
|
|
</MenuItem>
|
|
|
|
</DropdownButton>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default PieceListToolbarFilterWidgetFilter;
|