@@ -8,13 +8,13 @@ import Panel from "components/general/panel";
8
8
import AdminForm from 'components/shiptalent/forms/adminForm' ;
9
9
import ProfileTable from "containers/admin/ProfileSearch/ProfileTable" ;
10
10
import Spacer from 'components/general/spacer' ;
11
- import Card from "components/admin/Card/Card.jsx" ;
12
- import CardBody from "components/admin/Card/CardBody.jsx" ;
13
11
import Grid from '@material-ui/core/Grid' ;
14
12
import GridItem from "components/admin/Grid/GridItem.jsx" ;
15
13
import GridContainer from "components/admin/Grid/GridContainer.jsx" ;
16
14
import Button from '@material-ui/core/Button' ;
17
15
import Checkbox from '@material-ui/core/Checkbox' ;
16
+ import ProfileStatusButtons from './ProfileStatusButtons' ;
17
+ import ProfileCurrentStatus from './ProfileCurrentStatus' ;
18
18
import * as talentActions from 'actions/talentActions' ;
19
19
import AdminAPI from 'apis/adminAPIs' ;
20
20
import { adminStyles } from 'styles' ;
@@ -68,163 +68,29 @@ class EditProfile extends React.Component {
68
68
return (
69
69
< Panel >
70
70
< Grid container spacing = { 40 } >
71
- < Grid item xs = { 6 } >
72
- < Grid container item xs = { 12 } spacing = { 16 } >
73
- < Grid item xs = { 4 } >
74
- < Link to = "/admin/head-line" >
75
- < Button variant = "contained" size = "large" className = { classes . agent } >
76
- Headline, Bio& Resume
77
- </ Button >
78
- </ Link >
79
- </ Grid >
80
- < Grid item xs = { 4 } >
81
- < Button variant = "contained" size = "large" className = { classes . agent } style = { { backgroundColor : 'red' } } >
82
- Pictures
83
- </ Button >
84
- </ Grid >
85
- < Grid item xs = { 4 } >
86
- < Button variant = "contained" size = "large" className = { classes . agent } style = { { backgroundColor : 'red' } } >
87
- Videos
88
- </ Button >
89
- </ Grid >
90
- < Grid item xs = { 4 } >
91
- < Button variant = "contained" size = "large" className = { classes . agent } style = { { backgroundColor : 'yellow' } } >
92
- Casting Requests
93
- </ Button >
94
- </ Grid >
95
- < Grid item xs = { 4 } >
96
- < Button variant = "contained" size = "large" className = { classes . agent } >
97
- Profile Notes
98
- </ Button >
99
- </ Grid >
100
- < Grid item xs = { 4 } >
101
- < Button variant = "contained" size = "large" className = { classes . agent } >
102
- Logs & Lockouts
103
- </ Button >
104
- </ Grid >
105
- < Grid item xs = { 4 } >
106
- < Button variant = "contained" size = "large" className = { classes . agent } >
107
- Search/Views
108
- </ Button >
109
- </ Grid >
110
- < Grid item xs = { 4 } >
111
- < Button variant = "contained" size = "large" className = { classes . agent } >
112
- Shares
113
- </ Button >
114
- </ Grid >
115
- < Grid item xs = { 4 } >
116
- < Button variant = "contained" size = "large" className = { classes . agent } >
117
- Blocks
118
- </ Button >
119
- </ Grid >
120
- < Grid item xs = { 4 } >
121
- < Button variant = "contained" size = "large" className = { classes . agent } >
122
- Ratings
123
- </ Button >
124
- </ Grid >
125
- < Grid item xs = { 4 } >
126
- < Button variant = "contained" size = "large" className = { classes . agent } >
127
- Contracts
128
- </ Button >
129
- </ Grid >
130
- < Grid item xs = { 4 } >
131
- < Button variant = "contained" size = "large" className = { classes . agent } style = { { backgroundColor : 'red' } } >
132
- Medical
133
- </ Button >
134
- </ Grid >
135
- < Grid item xs = { 4 } >
136
- < Button variant = "contained" size = "large" className = { classes . agent } >
137
- Credentials
138
- </ Button >
139
- </ Grid >
140
- < Grid item xs = { 4 } >
141
- < Button variant = "contained" size = "large" className = { classes . agent } >
142
- Personal Info
143
- </ Button >
144
- </ Grid >
145
- < Grid item xs = { 4 } >
146
- < Button variant = "contained" size = "large" className = { classes . agent } >
147
- Immigration
148
- </ Button >
149
- </ Grid >
150
- < Grid item xs = { 4 } >
151
- < Button variant = "contained" size = "large" className = { classes . agent } >
152
- Languages
153
- </ Button >
154
- </ Grid >
155
- < Grid item xs = { 4 } >
156
- < Button variant = "contained" size = "large" className = { classes . agent } >
157
- Finance
158
- </ Button >
159
- </ Grid >
160
- < Grid item xs = { 4 } >
161
- < Button variant = "contained" size = "large" className = { classes . agent } >
162
- Calendar
163
- </ Button >
164
- </ Grid >
165
- </ Grid >
166
- </ Grid >
167
- < Grid item xs = { 6 } >
168
- < Grid container spacing = { 0 } >
169
- < Grid item xs = { 12 } style = { { textAlign :'left' } } >
170
- < h3 > CURRENT STATUS</ h3 >
171
- </ Grid >
172
- < Grid container spacing = { 0 } >
173
- < Grid item xs = { 12 } >
174
- < Checkbox value = "checkedC" /> Avaliable
175
- </ Grid >
176
- < Grid item xs = { 12 } >
177
- < Checkbox value = "checkedC" /> Not Avaliable(Talent Calendar)
178
- </ Grid >
179
- < Grid item xs = { 12 } >
180
- < Checkbox value = "checkedC" /> Active Casting Request
181
- </ Grid >
182
- < Grid item xs = { 12 } >
183
- < Checkbox value = "checkedC" /> Contracted
184
- </ Grid >
185
- < Grid item xs = { 12 } >
186
- < Checkbox value = "checkedC" /> Deployed until
187
- </ Grid >
188
- </ Grid >
189
- </ Grid >
71
+ < Grid item lg md = { 12 } xs = { 12 } />
72
+ < Grid item lg = { 7 } md = { 12 } xs = { 12 } >
73
+ < Spacer size = { 43 } />
74
+ < ProfileStatusButtons profile = { profile } loading = { isLoading } />
75
+ </ Grid >
76
+ < Grid item lg md = { 12 } xs = { 12 } />
77
+ < Grid item lg = { 3 } md = { 12 } xs = { 12 } >
78
+ < ProfileCurrentStatus profile = { profile } loading = { isLoading } />
190
79
</ Grid >
191
- < Grid container spacing = { 8 } >
192
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
193
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
194
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
195
- < Grid item xs = { 3 } style = { { textAlign :'right' } } >
196
- < Link to = "/admin/new-profiles" >
197
- < Button variant = "contained" style = { { width : '250px' } } >
198
- New Profiles
199
- </ Button >
200
- </ Link >
201
- </ Grid >
202
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
203
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
204
- < Grid item xs = { 3 } style = { { textAlign :'center' } } />
205
- < Grid item xs = { 3 } style = { { textAlign :'right' } } >
206
- < Link to = "/admin/dashboard" >
207
- < Button variant = "contained" style = { { width : '250px' } } >
208
- Agetn Dashbord
209
- </ Button >
210
- </ Link >
211
- </ Grid >
212
- </ Grid >
213
- </ Grid >
80
+ </ Grid >
214
81
</ Panel >
215
82
) ;
216
83
}
217
84
218
85
render = ( ) => {
219
86
const { profile, isLoading } = this . state ;
220
87
const { allPositionTypes, allSkills } = this . props ;
221
- console . log ( '==== isLoading: ' , isLoading ) ;
222
88
return (
223
89
< AdminForm
224
90
talent = { profile }
225
91
allPositionTypes = { allPositionTypes }
226
92
allSkills = { allSkills }
227
- loading = { isLoading /*!(allPositionTypes.isFetched && allSkills.isFetched)*/ }
93
+ loading = { isLoading }
228
94
showMale
229
95
showPosition
230
96
backLink = "/admin/new-profiles"
0 commit comments