mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-27 07:52:28 -05:00
Finish update for latest React, Bootstrap, jQuery versions
This commit is contained in:
parent
5ff45cd4b4
commit
f663ec6afc
@ -8,6 +8,7 @@ var Col = ReactBootstrap.Col;
|
|||||||
var Form = ReactBootstrap.Form;
|
var Form = ReactBootstrap.Form;
|
||||||
var FormGroup = ReactBootstrap.FormGroup;
|
var FormGroup = ReactBootstrap.FormGroup;
|
||||||
var FormControl = ReactBootstrap.FormControl;
|
var FormControl = ReactBootstrap.FormControl;
|
||||||
|
var Checkbox = ReactBootstrap.Checkbox;
|
||||||
var ControlLabel = ReactBootstrap.ControlLabel;
|
var ControlLabel = ReactBootstrap.ControlLabel;
|
||||||
var Button = ReactBootstrap.Button;
|
var Button = ReactBootstrap.Button;
|
||||||
var ButtonGroup = ReactBootstrap.ButtonGroup;
|
var ButtonGroup = ReactBootstrap.ButtonGroup;
|
||||||
@ -212,12 +213,15 @@ const DeleteAccountModal = React.createClass({
|
|||||||
parentAccount = "and any child accounts will be re-parented to: " + this.props.account_map[parentAccountId].Name;
|
parentAccount = "and any child accounts will be re-parented to: " + this.props.account_map[parentAccountId].Name;
|
||||||
|
|
||||||
var warningString = "I understand that deleting this account cannot be undone and that all transactions " + parentAccount;
|
var warningString = "I understand that deleting this account cannot be undone and that all transactions " + parentAccount;
|
||||||
checkbox = (<FormGroup>
|
checkbox = (
|
||||||
<FormControl
|
<FormGroup>
|
||||||
type='checkbox'
|
<Col xsOffset={2} sm={10}>
|
||||||
|
<Checkbox
|
||||||
checked={this.state.checked ? "checked" : ""}
|
checked={this.state.checked ? "checked" : ""}
|
||||||
onClick={this.handleCheckboxClick}/>
|
onClick={this.handleCheckboxClick}>
|
||||||
<ControlLabel>{warningString}</ControlLabel>
|
{warningString}
|
||||||
|
</Checkbox>
|
||||||
|
</Col>
|
||||||
</FormGroup>);
|
</FormGroup>);
|
||||||
}
|
}
|
||||||
var warning = [];
|
var warning = [];
|
||||||
@ -239,15 +243,17 @@ const DeleteAccountModal = React.createClass({
|
|||||||
{warning}
|
{warning}
|
||||||
<Form horizontal onSubmit={this.handleSubmit}>
|
<Form horizontal onSubmit={this.handleSubmit}>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<ControlLabel>Delete Account</ControlLabel>
|
<Col componentClass={ControlLabel} xs={2}>Delete Account</Col>
|
||||||
|
<Col xs={10}>
|
||||||
<AccountCombobox
|
<AccountCombobox
|
||||||
includeRoot={false}
|
includeRoot={false}
|
||||||
accounts={this.props.accounts}
|
accounts={this.props.accounts}
|
||||||
account_map={this.props.account_map}
|
account_map={this.props.account_map}
|
||||||
value={this.state.accountid}
|
value={this.state.accountid}
|
||||||
onChange={this.handleChange}/>
|
onChange={this.handleChange}/>
|
||||||
{checkbox}
|
</Col>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
{checkbox}
|
||||||
</Form>
|
</Form>
|
||||||
</Modal.Body>
|
</Modal.Body>
|
||||||
<Modal.Footer>
|
<Modal.Footer>
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>MoneyGo</title>
|
<title>MoneyGo</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
|
||||||
<link rel="stylesheet" href="static/react-widgets/css/react-widgets.css">
|
<link rel="stylesheet" href="static/react-widgets/css/react-widgets.css">
|
||||||
<link rel="stylesheet" href="static/stylesheet.css">
|
<link rel="stylesheet" href="static/stylesheet.css">
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="static/bundle.js"></script>
|
<script type="text/javascript" src="static/bundle.js"></script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user