mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 15:42:27 -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 FormGroup = ReactBootstrap.FormGroup;
|
||||
var FormControl = ReactBootstrap.FormControl;
|
||||
var Checkbox = ReactBootstrap.Checkbox;
|
||||
var ControlLabel = ReactBootstrap.ControlLabel;
|
||||
var Button = ReactBootstrap.Button;
|
||||
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;
|
||||
|
||||
var warningString = "I understand that deleting this account cannot be undone and that all transactions " + parentAccount;
|
||||
checkbox = (<FormGroup>
|
||||
<FormControl
|
||||
type='checkbox'
|
||||
checkbox = (
|
||||
<FormGroup>
|
||||
<Col xsOffset={2} sm={10}>
|
||||
<Checkbox
|
||||
checked={this.state.checked ? "checked" : ""}
|
||||
onClick={this.handleCheckboxClick}/>
|
||||
<ControlLabel>{warningString}</ControlLabel>
|
||||
onClick={this.handleCheckboxClick}>
|
||||
{warningString}
|
||||
</Checkbox>
|
||||
</Col>
|
||||
</FormGroup>);
|
||||
}
|
||||
var warning = [];
|
||||
@ -239,15 +243,17 @@ const DeleteAccountModal = React.createClass({
|
||||
{warning}
|
||||
<Form horizontal onSubmit={this.handleSubmit}>
|
||||
<FormGroup>
|
||||
<ControlLabel>Delete Account</ControlLabel>
|
||||
<Col componentClass={ControlLabel} xs={2}>Delete Account</Col>
|
||||
<Col xs={10}>
|
||||
<AccountCombobox
|
||||
includeRoot={false}
|
||||
accounts={this.props.accounts}
|
||||
account_map={this.props.account_map}
|
||||
value={this.state.accountid}
|
||||
onChange={this.handleChange}/>
|
||||
{checkbox}
|
||||
</Col>
|
||||
</FormGroup>
|
||||
{checkbox}
|
||||
</Form>
|
||||
</Modal.Body>
|
||||
<Modal.Footer>
|
||||
|
@ -2,12 +2,12 @@
|
||||
<head>
|
||||
<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.6/css/bootstrap-theme.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.7/css/bootstrap-theme.min.css">
|
||||
<link rel="stylesheet" href="static/react-widgets/css/react-widgets.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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user