mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 07:33:21 -05:00
Enable Combobox autocomplete, fix security Combobox display names
This commit is contained in:
parent
19932812e4
commit
402a15ef12
@ -35,6 +35,7 @@ module.exports = React.createClass({
|
||||
onChange={this.handleAccountChange}
|
||||
ref="account"
|
||||
disabled={this.props.disabled}
|
||||
suggest
|
||||
className={className} />
|
||||
);
|
||||
}
|
||||
|
@ -427,6 +427,7 @@ const AddEditTransactionModal = React.createClass({
|
||||
<Col componentClass={ControlLabel} xs={2}>Status</Col>
|
||||
<Col xs={10}>
|
||||
<Combobox
|
||||
suggest
|
||||
data={TransactionStatusList}
|
||||
valueField='StatusId'
|
||||
textField='Name'
|
||||
|
@ -130,9 +130,10 @@ const AddEditAccountModal = React.createClass({
|
||||
<Col componentClass={ControlLabel} xs={2}>Security</Col>
|
||||
<Col xs={10}>
|
||||
<Combobox
|
||||
suggest
|
||||
data={this.props.security_list}
|
||||
valueField='SecurityId'
|
||||
textField={item => item.Name + " - " + item.Description}
|
||||
textField={item => typeof item === 'string' ? item : item.Name + " - " + item.Description}
|
||||
defaultValue={this.state.security}
|
||||
onChange={this.handleSecurityChange}
|
||||
ref="security" />
|
||||
@ -142,6 +143,7 @@ const AddEditAccountModal = React.createClass({
|
||||
<Col componentClass={ControlLabel} xs={2}>Account Type</Col>
|
||||
<Col xs={10}>
|
||||
<Combobox
|
||||
suggest
|
||||
data={AccountTypeList}
|
||||
valueField='TypeId'
|
||||
textField='Name'
|
||||
|
Loading…
Reference in New Issue
Block a user