|
@@ -2,15 +2,23 @@ import React from 'react'
|
2
|
2
|
import { connect } from 'react-redux'
|
3
|
3
|
import Sidebar from './Sidebar.jsx'
|
4
|
4
|
import imgProfil from '../img/imgProfil.png'
|
|
5
|
+import { translate } from 'react-i18next'
|
|
6
|
+import Radium from 'radium'
|
|
7
|
+import color from 'color'
|
|
8
|
+import {
|
|
9
|
+ PageWrapper,
|
|
10
|
+ PageTitle,
|
|
11
|
+ PageContent
|
|
12
|
+} from 'tracim_frontend_lib'
|
5
|
13
|
import {
|
6
|
|
- getAppList,
|
7
|
|
- getContentTypeList, getWorkspaceList
|
|
14
|
+ getWorkspaceDetail,
|
|
15
|
+ getWorkspaceMemberList
|
8
|
16
|
} from '../action-creator.async.js'
|
9
|
17
|
import {
|
10
|
|
- setAppList,
|
11
|
|
- setContentTypeList, setWorkspaceListIsOpenInSidebar, updateWorkspaceListData
|
|
18
|
+ addFlashMessage,
|
|
19
|
+ setWorkspaceDetail,
|
|
20
|
+ setWorkspaceMemberList
|
12
|
21
|
} from '../action-creator.sync.js'
|
13
|
|
-import { translate } from 'react-i18next'
|
14
|
22
|
|
15
|
23
|
class Dashboard extends React.Component {
|
16
|
24
|
constructor (props) {
|
|
@@ -25,28 +33,28 @@ class Dashboard extends React.Component {
|
25
|
33
|
}
|
26
|
34
|
|
27
|
35
|
async componentDidMount () {
|
28
|
|
- const { workspaceIdInUrl } = this.state
|
29
|
|
- const { user, workspaceList, app, contentType, dispatch } = this.props
|
30
|
|
-
|
31
|
|
- console.log('<Dashboard> componentDidMount')
|
32
|
|
-
|
33
|
|
- if (app.length === 0) {
|
34
|
|
- const fetchGetAppList = await dispatch(getAppList(user))
|
35
|
|
- if (fetchGetAppList.status === 200) dispatch(setAppList(fetchGetAppList.json))
|
36
|
|
- }
|
37
|
|
-
|
38
|
|
- if (contentType.length === 0) {
|
39
|
|
- const fetchGetContentTypeList = await dispatch(getContentTypeList(user))
|
40
|
|
- if (fetchGetContentTypeList.status === 200) dispatch(setContentTypeList(fetchGetContentTypeList.json))
|
|
36
|
+ const { props, state } = this
|
|
37
|
+
|
|
38
|
+ const fetchWorkspaceDetail = await props.dispatch(getWorkspaceDetail(props.user, state.workspaceIdInUrl))
|
|
39
|
+ switch (fetchWorkspaceDetail.status) {
|
|
40
|
+ case 200:
|
|
41
|
+ props.dispatch(setWorkspaceDetail(fetchWorkspaceDetail.json))
|
|
42
|
+ break
|
|
43
|
+ case 400:
|
|
44
|
+ case 500:
|
|
45
|
+ props.dispatch(addFlashMessage(props.t('An error has happened'), 'warning'))
|
|
46
|
+ break
|
41
|
47
|
}
|
42
|
48
|
|
43
|
|
- if (user.user_id !== -1 && workspaceList.length === 0) {
|
44
|
|
- const fetchGetWorkspaceList = await dispatch(getWorkspaceList(user))
|
45
|
|
-
|
46
|
|
- if (fetchGetWorkspaceList.status === 200) {
|
47
|
|
- dispatch(updateWorkspaceListData(fetchGetWorkspaceList.json))
|
48
|
|
- dispatch(setWorkspaceListIsOpenInSidebar(workspaceIdInUrl || fetchGetWorkspaceList.json[0].workspace_id, true))
|
49
|
|
- }
|
|
49
|
+ const fetchWorkspaceMemberList = await props.dispatch(getWorkspaceMemberList(props.user, state.workspaceIdInUrl))
|
|
50
|
+ switch (fetchWorkspaceMemberList.status) {
|
|
51
|
+ case 200:
|
|
52
|
+ props.dispatch(setWorkspaceMemberList(fetchWorkspaceMemberList.json))
|
|
53
|
+ break
|
|
54
|
+ case 400:
|
|
55
|
+ case 500:
|
|
56
|
+ props.dispatch(addFlashMessage(props.t('An error has happened'), 'warning'))
|
|
57
|
+ break
|
50
|
58
|
}
|
51
|
59
|
}
|
52
|
60
|
|
|
@@ -67,152 +75,118 @@ class Dashboard extends React.Component {
|
67
|
75
|
}))
|
68
|
76
|
|
69
|
77
|
render () {
|
|
78
|
+ const { props, state } = this
|
|
79
|
+
|
70
|
80
|
return (
|
71
|
81
|
<div className='sidebarpagecontainer'>
|
72
|
82
|
<Sidebar />
|
73
|
83
|
|
74
|
|
- <div className='dashboard'>
|
75
|
|
- <div className='container-fluid nopadding'>
|
76
|
|
- <div className='dashboard__header mb-5'>
|
77
|
|
- <div className='pageTitleGeneric dashboard__header__title d-flex align-items-center'>
|
78
|
|
- <div className='pageTitleGeneric__title dashboard__header__title__text mr-3'>
|
79
|
|
- {this.props.t('Dashboard')}
|
80
|
|
- </div>
|
81
|
|
- <div className='dashboard__header__acces' />
|
82
|
|
- </div>
|
83
|
|
- <div className='dashboard__header__advancedmode mr-3'>
|
84
|
|
- <button type='button' className='btn btn-primary'>
|
85
|
|
- {this.props.t('Active advanced Dashboard')}
|
86
|
|
- </button>
|
87
|
|
- </div>
|
|
84
|
+ <PageWrapper customeClass='dashboard'>
|
|
85
|
+ <PageTitle
|
|
86
|
+ parentClass='dashboard__header'
|
|
87
|
+ title={props.t('Dashboard')}
|
|
88
|
+ subtitle={''}
|
|
89
|
+ >
|
|
90
|
+ <div className='dashboard__header__advancedmode mr-3'>
|
|
91
|
+ <button type='button' className='btn btn-primary'>
|
|
92
|
+ {props.t('Active advanced Dashboard')}
|
|
93
|
+ </button>
|
88
|
94
|
</div>
|
|
95
|
+ </PageTitle>
|
89
|
96
|
|
90
|
|
- <div className='dashboard__wkswrapper'>
|
|
97
|
+ <PageContent>
|
|
98
|
+ <div className='dashboard__workspace-wrapper'>
|
91
|
99
|
<div className='dashboard__workspace'>
|
92
|
100
|
<div className='dashboard__workspace__title'>
|
93
|
|
- Développement tracim
|
|
101
|
+ {props.curWs.label}
|
94
|
102
|
</div>
|
95
|
103
|
|
96
|
104
|
<div className='dashboard__workspace__detail'>
|
97
|
|
- Ligne directive pour le prochain design de Tracim et des futurs fonctionnalités.
|
|
105
|
+ {props.curWs.description}
|
98
|
106
|
</div>
|
99
|
107
|
</div>
|
100
|
|
- <div className='dashboard__userstatut'>
|
101
|
108
|
|
|
109
|
+ <div className='dashboard__userstatut'>
|
102
|
110
|
<div className='dashboard__userstatut__role'>
|
103
|
|
- <div className='dashboard__userstatut__role__text'>
|
104
|
|
- Hi ! Alexi, vous êtes actuellement
|
|
111
|
+ <div className='dashboard__userstatut__role__msg'>
|
|
112
|
+ {props.t(`Hi ! ${props.user.public_name}, vous êtes actuellement`)}
|
105
|
113
|
</div>
|
106
|
|
- <div className='dashboard__userstatut__role__rank'>
|
107
|
|
- <div className='dashboard__userstatut__role__rank__icon'>
|
|
114
|
+
|
|
115
|
+ <div className='dashboard__userstatut__role__definition'>
|
|
116
|
+ <div className='dashboard__userstatut__role__definition__icon'>
|
108
|
117
|
<i className='fa fa-graduation-cap' />
|
109
|
118
|
</div>
|
110
|
|
- <div className='dashboard__userstatut__role__rank__rolename'>
|
111
|
|
- Gestionnaire de projet
|
|
119
|
+
|
|
120
|
+ <div className='dashboard__userstatut__role__definition__text'>
|
|
121
|
+ {(member => member ? member.role : '')(props.curWs.member.find(m => m.id === props.user.user_id))}
|
112
|
122
|
</div>
|
113
|
123
|
</div>
|
114
|
124
|
</div>
|
115
|
125
|
|
116
|
126
|
<div className='dashboard__userstatut__notification'>
|
117
|
127
|
<div className='dashboard__userstatut__notification__text'>
|
118
|
|
- Vous êtes abonné(e) aux notifications de ce workspace
|
|
128
|
+ {props.t("You have subscribed to this workspace's notifications")} (nyi)
|
119
|
129
|
</div>
|
120
|
|
- {this.state.displayNotifBtn === false &&
|
121
|
|
- <div
|
122
|
|
- className='dashboard__userstatut__notification__btn btn btn-outline-primary'
|
123
|
|
- onClick={this.handleToggleNotifBtn}
|
124
|
|
- >
|
125
|
|
- {this.props.t('Change your status')}
|
126
|
|
- </div>
|
127
|
|
- }
|
128
|
130
|
|
129
|
|
- {this.state.displayNotifBtn === true &&
|
130
|
|
- <div className='dashboard__userstatut__notification__subscribe dropdown'>
|
131
|
|
- <button className='dashboard__userstatut__notification__subscribe__btn btn btn-outline-primary dropdown-toggle' type='button' id='dropdownMenuButton' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
|
132
|
|
- Abonné(e)
|
133
|
|
- </button>
|
134
|
|
- <div className='dashboard__userstatut__notification__subscribe__submenu dropdown-menu'>
|
135
|
|
- <div className='dashboard__userstatut__notification__subscribe__submenu__item dropdown-item'>
|
136
|
|
- {this.props.t('subscriber')}
|
137
|
|
- </div>
|
138
|
|
- <div className='dashboard__userstatut__notification__subscribe__submenu__item dropdown-item dropdown-item'>
|
139
|
|
- {this.props.t('unsubscribed')}
|
|
131
|
+ {state.displayNotifBtn
|
|
132
|
+ ? (
|
|
133
|
+ <div className='dashboard__userstatut__notification__subscribe dropdown'>
|
|
134
|
+ <button
|
|
135
|
+ className='dashboard__userstatut__notification__subscribe__btn btn btn-outline-primary dropdown-toggle'
|
|
136
|
+ type='button'
|
|
137
|
+ id='dropdownMenuButton'
|
|
138
|
+ data-toggle='dropdown'
|
|
139
|
+ aria-haspopup='true'
|
|
140
|
+ aria-expanded='false'
|
|
141
|
+ >
|
|
142
|
+ Abonné(e)
|
|
143
|
+ </button>
|
|
144
|
+
|
|
145
|
+ <div className='dashboard__userstatut__notification__subscribe__submenu dropdown-menu'>
|
|
146
|
+ <div className='dashboard__userstatut__notification__subscribe__submenu__item dropdown-item'>
|
|
147
|
+ {props.t('subscriber')}
|
|
148
|
+ </div>
|
|
149
|
+ <div className='dashboard__userstatut__notification__subscribe__submenu__item dropdown-item dropdown-item'>
|
|
150
|
+ {props.t('unsubscribed')}
|
|
151
|
+ </div>
|
140
|
152
|
</div>
|
141
|
153
|
</div>
|
142
|
|
- </div>
|
|
154
|
+ )
|
|
155
|
+ : (
|
|
156
|
+ <div
|
|
157
|
+ className='dashboard__userstatut__notification__btn btn btn-outline-primary'
|
|
158
|
+ onClick={this.handleToggleNotifBtn}
|
|
159
|
+ >
|
|
160
|
+ {props.t('Change your status')}
|
|
161
|
+ </div>
|
|
162
|
+ )
|
143
|
163
|
}
|
144
|
164
|
</div>
|
145
|
165
|
</div>
|
146
|
166
|
</div>
|
147
|
167
|
|
148
|
168
|
<div className='dashboard__calltoaction justify-content-xl-center'>
|
149
|
|
- <div className='dashboard__calltoaction__button btnaction btnthread'>
|
150
|
|
- <div className='dashboard__calltoaction__button__text'>
|
151
|
|
- <div className='dashboard__calltoaction__button__text__icon'>
|
152
|
|
- <i className='fa fa-comments-o' />
|
153
|
|
- </div>
|
154
|
|
- <div className='dashboard__calltoaction__button__text__title'>
|
155
|
|
- {this.props.t('Start a new Thread')}
|
156
|
|
- </div>
|
157
|
|
- </div>
|
158
|
|
- </div>
|
159
|
|
-
|
160
|
|
- <div className='dashboard__calltoaction__button btnaction writefile'>
|
161
|
|
- <div className='dashboard__calltoaction__button__text'>
|
162
|
|
- <div className='dashboard__calltoaction__button__text__icon'>
|
163
|
|
- <i className='fa fa-file-text-o' />
|
164
|
|
- </div>
|
165
|
|
- <div className='dashboard__calltoaction__button__text__title'>
|
166
|
|
- {this.props.t('Writing a document')}
|
167
|
|
- </div>
|
168
|
|
- </div>
|
169
|
|
- </div>
|
170
|
|
-
|
171
|
|
- <div className='dashboard__calltoaction__button btnaction importfile'>
|
172
|
|
- <div className='dashboard__calltoaction__button__text'>
|
173
|
|
- <div className='dashboard__calltoaction__button__text__icon'>
|
174
|
|
- <i className='fa fa-paperclip' />
|
175
|
|
- </div>
|
176
|
|
- <div className='dashboard__calltoaction__button__text__title'>
|
177
|
|
- {this.props.t('Upload a file')}
|
178
|
|
- </div>
|
179
|
|
- </div>
|
180
|
|
- </div>
|
181
|
|
-
|
182
|
|
- {/*
|
183
|
|
- <div className='dashboard__calltoaction__button btnaction visioconf'>
|
184
|
|
- <div className='dashboard__calltoaction__button__text'>
|
185
|
|
- <div className='dashboard__calltoaction__button__text__icon'>
|
186
|
|
- <i className='fa fa-video-camera' />
|
187
|
|
- </div>
|
188
|
|
- <div className='dashboard__calltoaction__button__text__title'>
|
189
|
|
- {this.props.t('Start a videoconference')}
|
190
|
|
- </div>
|
191
|
|
- </div>
|
192
|
|
- </div>
|
193
|
|
-
|
194
|
|
- <div className='dashboard__calltoaction__button btnaction calendar'>
|
|
169
|
+ {props.contentType.map(ct =>
|
|
170
|
+ <div
|
|
171
|
+ className='dashboard__calltoaction__button btnaction'
|
|
172
|
+ style={{
|
|
173
|
+ backgroundColor: ct.hexcolor,
|
|
174
|
+ ':hover': {
|
|
175
|
+ backgroundColor: color(ct.hexcolor).darken(0.15).hexString()
|
|
176
|
+ }
|
|
177
|
+ }}
|
|
178
|
+ key={ct.label}
|
|
179
|
+ >
|
195
|
180
|
<div className='dashboard__calltoaction__button__text'>
|
196
|
181
|
<div className='dashboard__calltoaction__button__text__icon'>
|
197
|
|
- <i className='fa fa-calendar' />
|
|
182
|
+ <i className={`fa fa-${ct.faIcon}`} />
|
198
|
183
|
</div>
|
199
|
184
|
<div className='dashboard__calltoaction__button__text__title'>
|
200
|
|
- {this.props.t('View the Calendar')}
|
|
185
|
+ {ct.creationLabel}
|
201
|
186
|
</div>
|
202
|
187
|
</div>
|
203
|
188
|
</div>
|
204
|
|
- */ }
|
205
|
|
-
|
206
|
|
- <div className='dashboard__calltoaction__button btnaction explore'>
|
207
|
|
- <div className='dashboard__calltoaction__button__text'>
|
208
|
|
- <div className='dashboard__calltoaction__button__text__icon'>
|
209
|
|
- <i className='fa fa-folder-open-o' />
|
210
|
|
- </div>
|
211
|
|
- <div className='dashboard__calltoaction__button__text__title'>
|
212
|
|
- {this.props.t('Explore the workspace')}
|
213
|
|
- </div>
|
214
|
|
- </div>
|
215
|
|
- </div>
|
|
189
|
+ )}
|
216
|
190
|
</div>
|
217
|
191
|
|
218
|
192
|
<div className='dashboard__wksinfo'>
|
|
@@ -227,57 +201,13 @@ class Dashboard extends React.Component {
|
227
|
201
|
</div>
|
228
|
202
|
</div>
|
229
|
203
|
<div className='dashboard__activity__wrapper'>
|
230
|
|
- <div className='dashboard__activity__workspace'>
|
231
|
|
- <div className='dashboard__activity__workspace__icon'>
|
232
|
|
- <i className='fa fa-comments-o' />
|
233
|
|
- </div>
|
234
|
|
- <div className='dashboard__activity__workspace__name'>
|
235
|
|
- <span>Développement Tracim</span>
|
236
|
|
- </div>
|
237
|
|
- </div>
|
238
|
|
-
|
239
|
|
- <div className='dashboard__activity__workspace'>
|
240
|
|
- <div className='dashboard__activity__workspace__icon'>
|
241
|
|
- <i className='fa fa-list-ul' />
|
242
|
|
- </div>
|
243
|
|
- <div className='dashboard__activity__workspace__name'>
|
244
|
|
- Mission externe
|
245
|
|
- </div>
|
246
|
|
- </div>
|
247
|
|
-
|
248
|
|
- <div className='dashboard__activity__workspace'>
|
249
|
|
- <div className='dashboard__activity__workspace__icon'>
|
250
|
|
- <i className='fa fa-list-ul' />
|
251
|
|
- </div>
|
252
|
|
- <div className='dashboard__activity__workspace__name'>
|
253
|
|
- Recherche et developpement
|
254
|
|
- </div>
|
255
|
|
- </div>
|
256
|
|
-
|
257
|
|
- <div className='dashboard__activity__workspace'>
|
258
|
|
- <div className='dashboard__activity__workspace__icon'>
|
259
|
|
- <i className='fa fa-file-text-o' />
|
260
|
|
- </div>
|
261
|
|
- <div className='dashboard__activity__workspace__name'>
|
262
|
|
- <span>Marketing</span>
|
263
|
|
- </div>
|
264
|
|
- </div>
|
265
|
204
|
|
266
|
205
|
<div className='dashboard__activity__workspace'>
|
267
|
206
|
<div className='dashboard__activity__workspace__icon'>
|
268
|
207
|
<i className='fa fa-comments-o' />
|
269
|
208
|
</div>
|
270
|
209
|
<div className='dashboard__activity__workspace__name'>
|
271
|
|
- <span>Évolution</span>
|
272
|
|
- </div>
|
273
|
|
- </div>
|
274
|
|
-
|
275
|
|
- <div className='dashboard__activity__workspace'>
|
276
|
|
- <div className='dashboard__activity__workspace__icon'>
|
277
|
|
- <i className='fa fa-file-text-o' />
|
278
|
|
- </div>
|
279
|
|
- <div className='dashboard__activity__workspace__name'>
|
280
|
|
- Commercialisation
|
|
210
|
+ <span>Développement Tracim</span>
|
281
|
211
|
</div>
|
282
|
212
|
</div>
|
283
|
213
|
|
|
@@ -299,6 +229,7 @@ class Dashboard extends React.Component {
|
299
|
229
|
{this.state.displayNewMemberDashboard === false &&
|
300
|
230
|
<div>
|
301
|
231
|
<ul className='dashboard__memberlist__list'>
|
|
232
|
+
|
302
|
233
|
<li className='dashboard__memberlist__list__item'>
|
303
|
234
|
<div className='dashboard__memberlist__list__item__avatar'>
|
304
|
235
|
<img src={imgProfil} alt='avatar' />
|
|
@@ -316,107 +247,6 @@ class Dashboard extends React.Component {
|
316
|
247
|
</div>
|
317
|
248
|
</li>
|
318
|
249
|
|
319
|
|
- <li className='dashboard__memberlist__list__item'>
|
320
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
321
|
|
- <img src={imgProfil} alt='avatar' />
|
322
|
|
- </div>
|
323
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
324
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
325
|
|
- Aldwin Vinel
|
326
|
|
- </div>
|
327
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
328
|
|
- Lecteur
|
329
|
|
- </div>
|
330
|
|
- </div>
|
331
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
332
|
|
- <i className='fa fa-trash-o' />
|
333
|
|
- </div>
|
334
|
|
- </li>
|
335
|
|
-
|
336
|
|
- <li className='dashboard__memberlist__list__item'>
|
337
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
338
|
|
- <img src={imgProfil} alt='avatar' />
|
339
|
|
- </div>
|
340
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
341
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
342
|
|
- William Himme
|
343
|
|
- </div>
|
344
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
345
|
|
- Contributeur
|
346
|
|
- </div>
|
347
|
|
- </div>
|
348
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
349
|
|
- <i className='fa fa-trash-o' />
|
350
|
|
- </div>
|
351
|
|
- </li>
|
352
|
|
-
|
353
|
|
- <li className='dashboard__memberlist__list__item'>
|
354
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
355
|
|
- <img src={imgProfil} alt='avatar' />
|
356
|
|
- </div>
|
357
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
358
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
359
|
|
- Yacine Lite
|
360
|
|
- </div>
|
361
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
362
|
|
- Contributeur
|
363
|
|
- </div>
|
364
|
|
- </div>
|
365
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
366
|
|
- <i className='fa fa-trash-o' />
|
367
|
|
- </div>
|
368
|
|
- </li>
|
369
|
|
-
|
370
|
|
- <li className='dashboard__memberlist__list__item'>
|
371
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
372
|
|
- <img src={imgProfil} alt='avatar' />
|
373
|
|
- </div>
|
374
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
375
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
376
|
|
- Alexi Falcin
|
377
|
|
- </div>
|
378
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
379
|
|
- Gestionnaire
|
380
|
|
- </div>
|
381
|
|
- </div>
|
382
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
383
|
|
- <i className='fa fa-trash-o' />
|
384
|
|
- </div>
|
385
|
|
- </li>
|
386
|
|
-
|
387
|
|
- <li className='dashboard__memberlist__list__item'>
|
388
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
389
|
|
- <img src={imgProfil} alt='avatar' />
|
390
|
|
- </div>
|
391
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
392
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
393
|
|
- Mickaël Fonati
|
394
|
|
- </div>
|
395
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
396
|
|
- Gestionnaire
|
397
|
|
- </div>
|
398
|
|
- </div>
|
399
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
400
|
|
- <i className='fa fa-trash-o' />
|
401
|
|
- </div>
|
402
|
|
- </li>
|
403
|
|
-
|
404
|
|
- <li className='dashboard__memberlist__list__item'>
|
405
|
|
- <div className='dashboard__memberlist__list__item__avatar'>
|
406
|
|
- <img src={imgProfil} alt='avatar' />
|
407
|
|
- </div>
|
408
|
|
- <div className='dashboard__memberlist__list__item__info mr-auto'>
|
409
|
|
- <div className='dashboard__memberlist__list__item__info__name'>
|
410
|
|
- Eva Lonbard
|
411
|
|
- </div>
|
412
|
|
- <div className='dashboard__memberlist__list__item__info__role'>
|
413
|
|
- Gestionnaire
|
414
|
|
- </div>
|
415
|
|
- </div>
|
416
|
|
- <div className='dashboard__memberlist__list__item__delete d-flex justify-content-end'>
|
417
|
|
- <i className='fa fa-trash-o' />
|
418
|
|
- </div>
|
419
|
|
- </li>
|
420
|
250
|
</ul>
|
421
|
251
|
|
422
|
252
|
<div
|
|
@@ -440,93 +270,64 @@ class Dashboard extends React.Component {
|
440
|
270
|
}
|
441
|
271
|
|
442
|
272
|
{this.state.displayNewMemberDashboard === true &&
|
443
|
|
- <form className='dashboard__memberlist__form'>
|
444
|
|
- <div
|
445
|
|
- className='dashboard__memberlist__form__close d-flex justify-content-end'
|
446
|
|
- >
|
447
|
|
- <i className='fa fa-times' onClick={this.handleToggleNewMemberDashboard} />
|
|
273
|
+ <form className='dashboard__memberlist__form'>
|
|
274
|
+ <div
|
|
275
|
+ className='dashboard__memberlist__form__close d-flex justify-content-end'
|
|
276
|
+ >
|
|
277
|
+ <i className='fa fa-times' onClick={this.handleToggleNewMemberDashboard} />
|
|
278
|
+ </div>
|
|
279
|
+
|
|
280
|
+ <div className='dashboard__memberlist__form__member'>
|
|
281
|
+ <div className='dashboard__memberlist__form__member__name'>
|
|
282
|
+ <label className='name__label' htmlFor='addmember'>
|
|
283
|
+ {this.props.t('Enter the name or email of the member')}
|
|
284
|
+ </label>
|
|
285
|
+ <input type='text' id='addmember' className='name__input form-control' placeholder='Nom ou Email' />
|
448
|
286
|
</div>
|
449
|
|
- <div className='dashboard__memberlist__form__member'>
|
450
|
|
- <div className='dashboard__memberlist__form__member__name'>
|
451
|
|
- <label className='name__label' htmlFor='addmember'>
|
452
|
|
- {this.props.t('Enter the name or email of the member')}
|
453
|
|
- </label>
|
454
|
|
- <input type='text' id='addmember' className='name__input form-control' placeholder='Nom ou Email' />
|
|
287
|
+
|
|
288
|
+ <div className='dashboard__memberlist__form__member__create'>
|
|
289
|
+ <div className='create__radiobtn mr-3'>
|
|
290
|
+ <input type='radio' />
|
455
|
291
|
</div>
|
456
|
|
- <div className='dashboard__memberlist__form__member__create'>
|
457
|
|
- <div className='create__radiobtn mr-3'>
|
458
|
|
- <input type='radio' />
|
459
|
|
- </div>
|
460
|
|
- <div className='create__text'>
|
461
|
|
- {this.props.t('Create an account')}
|
462
|
|
- </div>
|
|
292
|
+
|
|
293
|
+ <div className='create__text'>
|
|
294
|
+ {this.props.t('Create an account')}
|
463
|
295
|
</div>
|
464
|
296
|
</div>
|
465
|
|
- <div className='dashboard__memberlist__form__role'>
|
466
|
|
- <div className='dashboard__memberlist__form__role__text'>
|
467
|
|
- {this.props.t('Choose the role of the member')}
|
468
|
|
- </div>
|
469
|
|
- <ul className='dashboard__memberlist__form__role__list'>
|
470
|
|
- <li className='dashboard__memberlist__form__role__list__item'>
|
471
|
|
- <div className='item__radiobtn mr-3'>
|
472
|
|
- <input type='radio' name='role' value='responsable' />
|
473
|
|
- </div>
|
474
|
|
- <div className='item__text'>
|
475
|
|
- <div className='item_text_icon mr-2'>
|
476
|
|
- <i className='fa fa-gavel' />
|
477
|
|
- </div>
|
478
|
|
- <div className='item__text__name'>
|
479
|
|
- {this.props.t('Supervisor')}
|
480
|
|
- </div>
|
481
|
|
- </div>
|
482
|
|
- </li>
|
483
|
|
- <li className='dashboard__memberlist__form__role__list__item'>
|
484
|
|
- <div className='item__radiobtn mr-3'>
|
485
|
|
- <input type='radio' name='role' value='gestionnaire' />
|
486
|
|
- </div>
|
487
|
|
- <div className='item__text'>
|
488
|
|
- <div className='item_text_icon mr-2'>
|
489
|
|
- <i className='fa fa-graduation-cap' />
|
490
|
|
- </div>
|
491
|
|
- <div className='item__text__name'>
|
492
|
|
- {this.props.t('Content Manager')}
|
493
|
|
- </div>
|
494
|
|
- </div>
|
495
|
|
- </li>
|
496
|
|
- <li className='dashboard__memberlist__form__role__list__item'>
|
497
|
|
- <div className='item__radiobtn mr-3'>
|
498
|
|
- <input type='radio' name='role' value='contributeur' />
|
499
|
|
- </div>
|
500
|
|
- <div className='item__text'>
|
501
|
|
- <div className='item_text_icon mr-2'>
|
502
|
|
- <i className='fa fa-pencil' />
|
503
|
|
- </div>
|
504
|
|
- <div className='item__text__name'>
|
505
|
|
- {this.props.t('Contributor')}
|
506
|
|
- </div>
|
507
|
|
- </div>
|
508
|
|
- </li>
|
509
|
|
- <li className='dashboard__memberlist__form__role__list__item'>
|
510
|
|
- <div className='item__radiobtn mr-3'>
|
511
|
|
- <input type='radio' name='role' value='lecteur' />
|
|
297
|
+ </div>
|
|
298
|
+
|
|
299
|
+ <div className='dashboard__memberlist__form__role'>
|
|
300
|
+ <div className='dashboard__memberlist__form__role__text'>
|
|
301
|
+ {this.props.t('Choose the role of the member')}
|
|
302
|
+ </div>
|
|
303
|
+
|
|
304
|
+ <ul className='dashboard__memberlist__form__role__list'>
|
|
305
|
+
|
|
306
|
+ <li className='dashboard__memberlist__form__role__list__item'>
|
|
307
|
+ <div className='item__radiobtn mr-3'>
|
|
308
|
+ <input type='radio' name='role' value='responsable' />
|
|
309
|
+ </div>
|
|
310
|
+
|
|
311
|
+ <div className='item__text'>
|
|
312
|
+ <div className='item_text_icon mr-2'>
|
|
313
|
+ <i className='fa fa-gavel' />
|
512
|
314
|
</div>
|
513
|
|
- <div className='item__text'>
|
514
|
|
- <div className='item_text_icon mr-2'>
|
515
|
|
- <i className='fa fa-eye' />
|
516
|
|
- </div>
|
517
|
|
- <div className='item__text__name'>
|
518
|
|
- {this.props.t('Reader')}
|
519
|
|
- </div>
|
|
315
|
+
|
|
316
|
+ <div className='item__text__name'>
|
|
317
|
+ {this.props.t('Supervisor')}
|
520
|
318
|
</div>
|
521
|
|
- </li>
|
522
|
|
- </ul>
|
523
|
|
- </div>
|
524
|
|
- <div className='dashboard__memberlist__form__submitbtn'>
|
525
|
|
- <button className='btn btn-outline-primary'>
|
526
|
|
- {this.props.t('Validate')}
|
527
|
|
- </button>
|
528
|
|
- </div>
|
529
|
|
- </form>
|
|
319
|
+ </div>
|
|
320
|
+ </li>
|
|
321
|
+
|
|
322
|
+ </ul>
|
|
323
|
+ </div>
|
|
324
|
+
|
|
325
|
+ <div className='dashboard__memberlist__form__submitbtn'>
|
|
326
|
+ <button className='btn btn-outline-primary'>
|
|
327
|
+ {this.props.t('Validate')}
|
|
328
|
+ </button>
|
|
329
|
+ </div>
|
|
330
|
+ </form>
|
530
|
331
|
}
|
531
|
332
|
</div>
|
532
|
333
|
</div>
|
|
@@ -547,17 +348,17 @@ class Dashboard extends React.Component {
|
547
|
348
|
</div>
|
548
|
349
|
</div>
|
549
|
350
|
{this.state.displayWebdavBtn === true &&
|
550
|
|
- <div>
|
551
|
|
- <div className='dashboard__moreinfo__webdav__information genericBtnInfoDashboard__info'>
|
552
|
|
- <div className='dashboard__moreinfo__webdav__information__text genericBtnInfoDashboard__info__text'>
|
553
|
|
- {this.props.t('Find all your documents deposited online directly on your computer via the workstation, without going through the software.')}'
|
554
|
|
- </div>
|
|
351
|
+ <div>
|
|
352
|
+ <div className='dashboard__moreinfo__webdav__information genericBtnInfoDashboard__info'>
|
|
353
|
+ <div className='dashboard__moreinfo__webdav__information__text genericBtnInfoDashboard__info__text'>
|
|
354
|
+ {this.props.t('Find all your documents deposited online directly on your computer via the workstation, without going through the software.')}'
|
|
355
|
+ </div>
|
555
|
356
|
|
556
|
|
- <div className='dashboard__moreinfo__webdav__information__link genericBtnInfoDashboard__info__link'>
|
557
|
|
- http://algoo.trac.im/webdav/
|
558
|
|
- </div>
|
|
357
|
+ <div className='dashboard__moreinfo__webdav__information__link genericBtnInfoDashboard__info__link'>
|
|
358
|
+ http://algoo.trac.im/webdav/
|
559
|
359
|
</div>
|
560
|
360
|
</div>
|
|
361
|
+ </div>
|
561
|
362
|
}
|
562
|
363
|
</div>
|
563
|
364
|
<div className='dashboard__moreinfo__calendar genericBtnInfoDashboard'>
|
|
@@ -577,27 +378,27 @@ class Dashboard extends React.Component {
|
577
|
378
|
</div>
|
578
|
379
|
<div className='dashboard__moreinfo__calendar__wrapperText'>
|
579
|
380
|
{this.state.displayCalendarBtn === true &&
|
580
|
|
- <div>
|
581
|
|
- <div className='dashboard__moreinfo__calendar__information genericBtnInfoDashboard__info'>
|
582
|
|
- <div className='dashboard__moreinfo__calendar__information__text genericBtnInfoDashboard__info__text'>
|
583
|
|
- {this.props.t('Each workspace has its own calendar.')}
|
584
|
|
- </div>
|
|
381
|
+ <div>
|
|
382
|
+ <div className='dashboard__moreinfo__calendar__information genericBtnInfoDashboard__info'>
|
|
383
|
+ <div className='dashboard__moreinfo__calendar__information__text genericBtnInfoDashboard__info__text'>
|
|
384
|
+ {this.props.t('Each workspace has its own calendar.')}
|
|
385
|
+ </div>
|
585
|
386
|
|
586
|
|
- <div className='dashboard__moreinfo__calendar__information__link genericBtnInfoDashboard__info__link'>
|
587
|
|
- http://algoo.trac.im/calendar/
|
588
|
|
- </div>
|
|
387
|
+ <div className='dashboard__moreinfo__calendar__information__link genericBtnInfoDashboard__info__link'>
|
|
388
|
+ http://algoo.trac.im/calendar/
|
589
|
389
|
</div>
|
590
|
390
|
</div>
|
|
391
|
+ </div>
|
591
|
392
|
}
|
592
|
393
|
</div>
|
593
|
394
|
</div>
|
594
|
395
|
</div>
|
595
|
|
- </div>
|
596
|
|
- </div>
|
|
396
|
+ </PageContent>
|
|
397
|
+ </PageWrapper>
|
597
|
398
|
</div>
|
598
|
399
|
)
|
599
|
400
|
}
|
600
|
401
|
}
|
601
|
402
|
|
602
|
|
-const mapStateToProps = ({ user, app, contentType, workspaceList }) => ({ user, app, contentType, workspaceList })
|
603
|
|
-export default connect(mapStateToProps)(translate()(Dashboard))
|
|
403
|
+const mapStateToProps = ({ user, contentType, currentWorkspace }) => ({ user, contentType, curWs: currentWorkspace })
|
|
404
|
+export default connect(mapStateToProps)(translate()(Radium(Dashboard)))
|