1
1
import React , { PropTypes , Component } from 'react' ;
2
2
import _ from 'lodash' ;
3
- import withStyles from 'isomorphic-style-loader/lib/withStyles' ;
4
3
import {
5
4
Col ,
6
5
ControlLabel ,
@@ -54,15 +53,15 @@ class Login extends Component {
54
53
55
54
render ( ) {
56
55
return (
57
- < Form style = { { height :600 } } horizontal >
56
+ < Form style = { { height :600 , paddingLeft : 20 , paddingRight : 20 } } horizontal >
58
57
< br />
59
58
< FormGroup >
60
- < Col smOffset = { 3 } >
59
+ < Col smOffset = { 2 } >
61
60
< h1 > 请登录</ h1 >
62
61
</ Col >
63
62
</ FormGroup >
64
63
< FormGroup controlId = "formHorizontalEmail" >
65
- < Col componentClass = { ControlLabel } sm = { 3 } >
64
+ < Col componentClass = { ControlLabel } sm = { 2 } >
66
65
邮箱地址
67
66
</ Col >
68
67
< Col sm = { 4 } >
@@ -77,7 +76,7 @@ class Login extends Component {
77
76
</ FormGroup >
78
77
79
78
< FormGroup controlId = "formHorizontalPassword" >
80
- < Col componentClass = { ControlLabel } sm = { 3 } >
79
+ < Col componentClass = { ControlLabel } sm = { 2 } >
81
80
登录密码
82
81
</ Col >
83
82
< Col sm = { 4 } >
@@ -90,12 +89,12 @@ class Login extends Component {
90
89
</ Col >
91
90
</ FormGroup >
92
91
< FormGroup >
93
- < Col smOffset = { 3 } sm = { 4 } style = { { color :'red' } } >
92
+ < Col smOffset = { 2 } sm = { 4 } style = { { color :'red' } } >
94
93
{ _ . get ( this . props , 'error.errorMessage' ) }
95
94
</ Col >
96
95
</ FormGroup >
97
96
< FormGroup >
98
- < Col smOffset = { 3 } sm = { 2 } >
97
+ < Col smOffset = { 2 } sm = { 2 } >
99
98
< Button
100
99
onClick = { this . submit }
101
100
disabled = { this . props . isFetching }
@@ -105,7 +104,7 @@ class Login extends Component {
105
104
</ Col >
106
105
</ FormGroup >
107
106
< FormGroup >
108
- < Col smOffset = { 3 } sm = { 4 } >
107
+ < Col smOffset = { 2 } sm = { 4 } >
109
108
< span style = { { marginRight :"20px" } } > 还没有账号?</ span >
110
109
< Link to = "/register" > 立即注册</ Link >
111
110
</ Col >
0 commit comments