mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -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}
|
onChange={this.handleAccountChange}
|
||||||
ref="account"
|
ref="account"
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
|
suggest
|
||||||
className={className} />
|
className={className} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -427,6 +427,7 @@ const AddEditTransactionModal = React.createClass({
|
|||||||
<Col componentClass={ControlLabel} xs={2}>Status</Col>
|
<Col componentClass={ControlLabel} xs={2}>Status</Col>
|
||||||
<Col xs={10}>
|
<Col xs={10}>
|
||||||
<Combobox
|
<Combobox
|
||||||
|
suggest
|
||||||
data={TransactionStatusList}
|
data={TransactionStatusList}
|
||||||
valueField='StatusId'
|
valueField='StatusId'
|
||||||
textField='Name'
|
textField='Name'
|
||||||
|
@ -130,9 +130,10 @@ const AddEditAccountModal = React.createClass({
|
|||||||
<Col componentClass={ControlLabel} xs={2}>Security</Col>
|
<Col componentClass={ControlLabel} xs={2}>Security</Col>
|
||||||
<Col xs={10}>
|
<Col xs={10}>
|
||||||
<Combobox
|
<Combobox
|
||||||
|
suggest
|
||||||
data={this.props.security_list}
|
data={this.props.security_list}
|
||||||
valueField='SecurityId'
|
valueField='SecurityId'
|
||||||
textField={item => item.Name + " - " + item.Description}
|
textField={item => typeof item === 'string' ? item : item.Name + " - " + item.Description}
|
||||||
defaultValue={this.state.security}
|
defaultValue={this.state.security}
|
||||||
onChange={this.handleSecurityChange}
|
onChange={this.handleSecurityChange}
|
||||||
ref="security" />
|
ref="security" />
|
||||||
@ -142,6 +143,7 @@ const AddEditAccountModal = React.createClass({
|
|||||||
<Col componentClass={ControlLabel} xs={2}>Account Type</Col>
|
<Col componentClass={ControlLabel} xs={2}>Account Type</Col>
|
||||||
<Col xs={10}>
|
<Col xs={10}>
|
||||||
<Combobox
|
<Combobox
|
||||||
|
suggest
|
||||||
data={AccountTypeList}
|
data={AccountTypeList}
|
||||||
valueField='TypeId'
|
valueField='TypeId'
|
||||||
textField='Name'
|
textField='Name'
|
||||||
|
Loading…
Reference in New Issue
Block a user