mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Merge remote-tracking branch 'origin/AD-661-due-1208-implement-jury-rating-an' into AD-661-due-1208-implement-jury-rating-an
This commit is contained in:
commit
144b823777
@ -173,6 +173,8 @@ let LoanForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='startdate'
|
name='startdate'
|
||||||
label={getLangText('Start date')}
|
label={getLangText('Start date')}
|
||||||
|
editable={!this.props.startdate}
|
||||||
|
overrideForm={!!this.props.startdate}
|
||||||
hidden={!this.props.showStartDate}>
|
hidden={!this.props.showStartDate}>
|
||||||
<InputDate
|
<InputDate
|
||||||
defaultValue={this.props.startdate}
|
defaultValue={this.props.startdate}
|
||||||
@ -180,6 +182,8 @@ let LoanForm = React.createClass({
|
|||||||
</Property>
|
</Property>
|
||||||
<Property
|
<Property
|
||||||
name='enddate'
|
name='enddate'
|
||||||
|
editable={!this.props.enddate}
|
||||||
|
overrideForm={!!this.props.enddate}
|
||||||
label={getLangText('End date')}
|
label={getLangText('End date')}
|
||||||
hidden={!this.props.showEndDate}>
|
hidden={!this.props.showEndDate}>
|
||||||
<InputDate
|
<InputDate
|
||||||
|
@ -9,7 +9,11 @@ let InputDate = React.createClass({
|
|||||||
submitted: React.PropTypes.bool,
|
submitted: React.PropTypes.bool,
|
||||||
placeholderText: React.PropTypes.string,
|
placeholderText: React.PropTypes.string,
|
||||||
onChange: React.PropTypes.func,
|
onChange: React.PropTypes.func,
|
||||||
defaultValue: React.PropTypes.object
|
defaultValue: React.PropTypes.object,
|
||||||
|
|
||||||
|
// DatePicker implements the disabled attribute
|
||||||
|
// https://github.com/Hacker0x01/react-datepicker/blob/master/src/datepicker.jsx#L30
|
||||||
|
disabled: React.PropTypes.bool
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
@ -41,10 +45,11 @@ let InputDate = React.createClass({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function () {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<DatePicker
|
<DatePicker
|
||||||
|
disabled={this.props.disabled}
|
||||||
dateFormat="YYYY-MM-DD"
|
dateFormat="YYYY-MM-DD"
|
||||||
selected={this.state.value_moment}
|
selected={this.state.value_moment}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
"raven-js": "^1.1.19",
|
"raven-js": "^1.1.19",
|
||||||
"react": "^0.13.2",
|
"react": "^0.13.2",
|
||||||
"react-bootstrap": "^0.24.3",
|
"react-bootstrap": "^0.24.3",
|
||||||
"react-datepicker": "~0.8.0",
|
"react-datepicker": "^0.12.0",
|
||||||
"react-progressbar": "^1.1.0",
|
"react-progressbar": "^1.1.0",
|
||||||
"react-router": "^0.13.3",
|
"react-router": "^0.13.3",
|
||||||
"react-router-bootstrap": "~0.16.0",
|
"react-router-bootstrap": "~0.16.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user