Skip to content

Commit 205a099

Browse files
committed
upload
1 parent 38ef225 commit 205a099

64 files changed

Lines changed: 300 additions & 639 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/admin/client/modules/.DS_Store

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

src/admin/client/modules/apps/account/reducer.js

Lines changed: 0 additions & 35 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

src/admin/client/modules/apps/account/appDetails/description.js renamed to src/admin/client/modules/apps/appDetails/description.js

File renamed without changes.
File renamed without changes.

src/admin/client/modules/apps/account/appDetails/style.css renamed to src/admin/client/modules/apps/appDetails/style.css

File renamed without changes.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import React from 'react';
2+
import { Field, reduxForm } from 'redux-form';
3+
import { Link } from 'react-router-dom';
4+
import { TextField } from 'redux-form-material-ui';
5+
6+
import { CustomToggle } from 'modules/shared/form';
7+
import messages from 'lib/text';
8+
import style from './style.css';
9+
10+
import Paper from 'material-ui/Paper';
11+
import RaisedButton from 'material-ui/RaisedButton';
12+
import Divider from 'material-ui/Divider';
13+
import FontIcon from 'material-ui/FontIcon';
14+
import { List, ListItem } from 'material-ui/List';
15+
16+
const AccountForm = ({ handleSubmit, pristine, submitting, initialValues }) => {
17+
return (
18+
<div style={{ maxWidth: 720, width: '100%' }}>
19+
<div className="gray-title" style={{ margin: '15px 0 15px 20px' }}>
20+
{messages.account}
21+
</div>
22+
<form
23+
onSubmit={handleSubmit}
24+
style={{
25+
display: 'initial',
26+
width: '100%'
27+
}}
28+
>
29+
<Paper style={{ margin: '0px 20px' }} zDepth={1}>
30+
<div style={{ padding: '10px 30px 30px 30px' }}>
31+
<div>
32+
<Field
33+
component={TextField}
34+
fullWidth={true}
35+
name="email"
36+
floatingLabelText={messages.email}
37+
/>
38+
</div>
39+
<div>
40+
<Field
41+
component={TextField}
42+
fullWidth={true}
43+
name="shop_url"
44+
floatingLabelText={messages.shopUrl}
45+
/>
46+
</div>
47+
<div>
48+
<Field
49+
component={TextField}
50+
fullWidth={true}
51+
name="admin_url"
52+
floatingLabelText={messages.adminUrl}
53+
/>
54+
</div>
55+
<Field
56+
component={CustomToggle}
57+
name="is_developer"
58+
label={messages.isDeveloper}
59+
style={{ paddingTop: 16, paddingBottom: 16 }}
60+
/>
61+
</div>
62+
<div
63+
className="buttons-box"
64+
style={{ display: pristine ? 'none' : 'block' }}
65+
>
66+
<RaisedButton
67+
type="submit"
68+
label={messages.save}
69+
primary={true}
70+
className={style.button}
71+
disabled={pristine || submitting}
72+
/>
73+
</div>
74+
</Paper>
75+
</form>
76+
</div>
77+
);
78+
};
79+
80+
export default reduxForm({
81+
form: 'WebStoreAccountForm',
82+
enableReinitialize: true
83+
})(AccountForm);

0 commit comments

Comments
 (0)