|
@@ -1,5 +1,4 @@
|
1
|
1
|
import React from 'react'
|
2
|
|
-import Sidebar from './Sidebar.jsx'
|
3
|
2
|
import {
|
4
|
3
|
Delimiter,
|
5
|
4
|
PageWrapper,
|
|
@@ -11,188 +10,184 @@ import { translate } from 'react-i18next'
|
11
|
10
|
class AdminWorkspacePage extends React.Component {
|
12
|
11
|
render () {
|
13
|
12
|
return (
|
14
|
|
- <div className='sidebarpagecontainer'>
|
15
|
|
- <Sidebar />
|
|
13
|
+ <PageWrapper customClass='adminWorkspacePage'>
|
|
14
|
+ <PageTitle
|
|
15
|
+ parentClass={'adminWorkspacePage'}
|
|
16
|
+ title={'Workspace management'}
|
|
17
|
+ />
|
16
|
18
|
|
17
|
|
- <PageWrapper customClass='adminWorkspacePage'>
|
18
|
|
- <PageTitle
|
19
|
|
- parentClass={'adminWorkspacePage'}
|
20
|
|
- title={'Workspace management'}
|
21
|
|
- />
|
|
19
|
+ <PageContent parentClass='adminWorkspacePage'>
|
22
|
20
|
|
23
|
|
- <PageContent parentClass='adminWorkspacePage'>
|
|
21
|
+ <div className='adminWorkspacePage__description'>
|
|
22
|
+ This page informs all workspaces of the instances
|
|
23
|
+ </div>
|
24
|
24
|
|
25
|
|
- <div className='adminWorkspacePage__description'>
|
26
|
|
- This page informs all workspaces of the instances
|
27
|
|
- </div>
|
28
|
|
-
|
29
|
|
- { /*
|
30
|
|
- Alexi Cauvin 08/08/2018 => desactivate create workspace button due to redundancy
|
|
25
|
+ { /*
|
|
26
|
+ Alexi Cauvin 08/08/2018 => desactivate create workspace button due to redundancy
|
31
|
27
|
|
32
|
|
- <div className='adminWorkspacePage__createworkspace'>
|
33
|
|
- <button className='adminWorkspacePage__createworkspace__btncreate btn btn-primary primaryColorBg primaryColorBorder primaryColorBorderDarkenHover'>
|
34
|
|
- {this.props.t('Create a workspace')}
|
35
|
|
- </button>
|
36
|
|
- </div>
|
37
|
|
- */ }
|
|
28
|
+ <div className='adminWorkspacePage__createworkspace'>
|
|
29
|
+ <button className='adminWorkspacePage__createworkspace__btncreate btn btn-primary primaryColorBg primaryColorBorder primaryColorBorderDarkenHover'>
|
|
30
|
+ {this.props.t('Create a workspace')}
|
|
31
|
+ </button>
|
|
32
|
+ </div>
|
|
33
|
+ */ }
|
38
|
34
|
|
39
|
|
- <Delimiter customClass={'adminWorkspacePage__delimiter'} />
|
|
35
|
+ <Delimiter customClass={'adminWorkspacePage__delimiter'} />
|
40
|
36
|
|
41
|
|
- <div className='adminWorkspacePage__workspaceTable'>
|
|
37
|
+ <div className='adminWorkspacePage__workspaceTable'>
|
42
|
38
|
|
43
|
|
- <table className='table'>
|
44
|
|
- <thead>
|
45
|
|
- <tr>
|
46
|
|
- <th scope='col'>ID</th>
|
47
|
|
- <th scope='col'>Workspace</th>
|
48
|
|
- <th scope='col'>Description</th>
|
49
|
|
- <th scope='col'>Member's number</th>
|
50
|
|
- { /*
|
51
|
|
- <th scope='col'>Calendar</th>
|
52
|
|
- */ }
|
53
|
|
- <th scope='col'>Delete workspace</th>
|
54
|
|
- </tr>
|
55
|
|
- </thead>
|
56
|
|
- <tbody>
|
57
|
|
- <tr>
|
58
|
|
- <th>1</th>
|
59
|
|
- <td>Design v_2</td>
|
60
|
|
- <td>Workspace about tracim v2 design</td>
|
61
|
|
- { /*
|
62
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
63
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
64
|
|
- <i className='fa fa-fw fa-check-square-o' />
|
65
|
|
- </div>
|
66
|
|
- Enable
|
67
|
|
- </td>
|
68
|
|
- */ }
|
69
|
|
- <td>8</td>
|
70
|
|
- <td>
|
71
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
72
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
73
|
|
- <i className='fa fa-fw fa-trash-o' />
|
74
|
|
- </div>
|
75
|
|
- Delete
|
|
39
|
+ <table className='table'>
|
|
40
|
+ <thead>
|
|
41
|
+ <tr>
|
|
42
|
+ <th scope='col'>ID</th>
|
|
43
|
+ <th scope='col'>Workspace</th>
|
|
44
|
+ <th scope='col'>Description</th>
|
|
45
|
+ <th scope='col'>Member's number</th>
|
|
46
|
+ { /*
|
|
47
|
+ <th scope='col'>Calendar</th>
|
|
48
|
+ */ }
|
|
49
|
+ <th scope='col'>Delete workspace</th>
|
|
50
|
+ </tr>
|
|
51
|
+ </thead>
|
|
52
|
+ <tbody>
|
|
53
|
+ <tr>
|
|
54
|
+ <th>1</th>
|
|
55
|
+ <td>Design v_2</td>
|
|
56
|
+ <td>Workspace about tracim v2 design</td>
|
|
57
|
+ { /*
|
|
58
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
59
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
60
|
+ <i className='fa fa-fw fa-check-square-o' />
|
76
|
61
|
</div>
|
|
62
|
+ Enable
|
77
|
63
|
</td>
|
78
|
|
- </tr>
|
79
|
|
- <tr>
|
80
|
|
- <th>2</th>
|
81
|
|
- <td>New features</td>
|
82
|
|
- <td>Add a new features : Annotated files</td>
|
83
|
|
- { /*
|
84
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
85
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
86
|
|
- <i className='fa fa-fw fa-square-o' />
|
87
|
|
- </div>
|
88
|
|
- Disable
|
89
|
|
- </td>
|
90
|
|
- */ }
|
91
|
|
- <td>5</td>
|
92
|
|
- <td>
|
93
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
94
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
95
|
|
- <i className='fa fa-fw fa-trash-o' />
|
96
|
|
- </div>
|
97
|
|
- Delete
|
|
64
|
+ */ }
|
|
65
|
+ <td>8</td>
|
|
66
|
+ <td>
|
|
67
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
68
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
69
|
+ <i className='fa fa-fw fa-trash-o' />
|
98
|
70
|
</div>
|
|
71
|
+ Delete
|
|
72
|
+ </div>
|
|
73
|
+ </td>
|
|
74
|
+ </tr>
|
|
75
|
+ <tr>
|
|
76
|
+ <th>2</th>
|
|
77
|
+ <td>New features</td>
|
|
78
|
+ <td>Add a new features : Annotated files</td>
|
|
79
|
+ { /*
|
|
80
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
81
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
82
|
+ <i className='fa fa-fw fa-square-o' />
|
|
83
|
+ </div>
|
|
84
|
+ Disable
|
99
|
85
|
</td>
|
100
|
|
- </tr>
|
101
|
|
- <tr>
|
102
|
|
- <th>3</th>
|
103
|
|
- <td>Fix Backend</td>
|
104
|
|
- <td>workspace referring to multiple issues on the backend </td>
|
105
|
|
- { /*
|
106
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
107
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
108
|
|
- <i className='fa fa-fw fa-check-square-o' />
|
109
|
|
- </div>
|
110
|
|
- Enable
|
111
|
|
- </td>
|
112
|
|
- */ }
|
113
|
|
- <td>3</td>
|
114
|
|
- <td>
|
115
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
116
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
117
|
|
- <i className='fa fa-fw fa-trash-o' />
|
118
|
|
- </div>
|
119
|
|
- Delete
|
|
86
|
+ */ }
|
|
87
|
+ <td>5</td>
|
|
88
|
+ <td>
|
|
89
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
90
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
91
|
+ <i className='fa fa-fw fa-trash-o' />
|
|
92
|
+ </div>
|
|
93
|
+ Delete
|
|
94
|
+ </div>
|
|
95
|
+ </td>
|
|
96
|
+ </tr>
|
|
97
|
+ <tr>
|
|
98
|
+ <th>3</th>
|
|
99
|
+ <td>Fix Backend</td>
|
|
100
|
+ <td>workspace referring to multiple issues on the backend </td>
|
|
101
|
+ { /*
|
|
102
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
103
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
104
|
+ <i className='fa fa-fw fa-check-square-o' />
|
120
|
105
|
</div>
|
|
106
|
+ Enable
|
121
|
107
|
</td>
|
122
|
|
- </tr>
|
123
|
|
- <tr>
|
124
|
|
- <th>4</th>
|
125
|
|
- <td>Design v_2</td>
|
126
|
|
- <td>Workspace about tracim v2 design</td>
|
127
|
|
- { /*
|
128
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
129
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
130
|
|
- <i className='fa fa-fw fa-square-o' />
|
131
|
|
- </div>
|
132
|
|
- Disable
|
133
|
|
- </td>
|
134
|
|
- */ }
|
135
|
|
- <td>8</td>
|
136
|
|
- <td>
|
137
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
138
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
139
|
|
- <i className='fa fa-fw fa-trash-o' />
|
140
|
|
- </div>
|
141
|
|
- Delete
|
|
108
|
+ */ }
|
|
109
|
+ <td>3</td>
|
|
110
|
+ <td>
|
|
111
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
112
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
113
|
+ <i className='fa fa-fw fa-trash-o' />
|
142
|
114
|
</div>
|
|
115
|
+ Delete
|
|
116
|
+ </div>
|
|
117
|
+ </td>
|
|
118
|
+ </tr>
|
|
119
|
+ <tr>
|
|
120
|
+ <th>4</th>
|
|
121
|
+ <td>Design v_2</td>
|
|
122
|
+ <td>Workspace about tracim v2 design</td>
|
|
123
|
+ { /*
|
|
124
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
125
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
126
|
+ <i className='fa fa-fw fa-square-o' />
|
|
127
|
+ </div>
|
|
128
|
+ Disable
|
143
|
129
|
</td>
|
144
|
|
- </tr>
|
145
|
|
- <tr>
|
146
|
|
- <th>5</th>
|
147
|
|
- <td>New features</td>
|
148
|
|
- <td>Add a new features : Annotated files</td>
|
149
|
|
- { /*
|
150
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
151
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
152
|
|
- <i className='fa fa-fw fa-square-o' />
|
153
|
|
- </div>
|
154
|
|
- Disable
|
155
|
|
- </td>
|
156
|
|
- */ }
|
157
|
|
- <td>5</td>
|
158
|
|
- <td>
|
159
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
160
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
161
|
|
- <i className='fa fa-fw fa-trash-o' />
|
162
|
|
- </div>
|
163
|
|
- Delete
|
|
130
|
+ */ }
|
|
131
|
+ <td>8</td>
|
|
132
|
+ <td>
|
|
133
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
134
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
135
|
+ <i className='fa fa-fw fa-trash-o' />
|
|
136
|
+ </div>
|
|
137
|
+ Delete
|
|
138
|
+ </div>
|
|
139
|
+ </td>
|
|
140
|
+ </tr>
|
|
141
|
+ <tr>
|
|
142
|
+ <th>5</th>
|
|
143
|
+ <td>New features</td>
|
|
144
|
+ <td>Add a new features : Annotated files</td>
|
|
145
|
+ { /*
|
|
146
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
147
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
148
|
+ <i className='fa fa-fw fa-square-o' />
|
164
|
149
|
</div>
|
|
150
|
+ Disable
|
165
|
151
|
</td>
|
166
|
|
- </tr>
|
167
|
|
- <tr>
|
168
|
|
- <th>6</th>
|
169
|
|
- <td>Fix Backend</td>
|
170
|
|
- <td>workspace referring to multiple issues on the backend </td>
|
171
|
|
- { /*
|
172
|
|
- <td className='d-flex align-items-center flex-wrap'>
|
173
|
|
- <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
174
|
|
- <i className='fa fa-fw fa-check-square-o' />
|
175
|
|
- </div>
|
176
|
|
- Enable
|
177
|
|
- </td>
|
178
|
|
- */ }
|
179
|
|
- <td>3</td>
|
180
|
|
- <td>
|
181
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
182
|
|
- <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
183
|
|
- <i className='fa fa-fw fa-trash-o' />
|
184
|
|
- </div>
|
185
|
|
- Delete
|
|
152
|
+ */ }
|
|
153
|
+ <td>5</td>
|
|
154
|
+ <td>
|
|
155
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
156
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
157
|
+ <i className='fa fa-fw fa-trash-o' />
|
|
158
|
+ </div>
|
|
159
|
+ Delete
|
|
160
|
+ </div>
|
|
161
|
+ </td>
|
|
162
|
+ </tr>
|
|
163
|
+ <tr>
|
|
164
|
+ <th>6</th>
|
|
165
|
+ <td>Fix Backend</td>
|
|
166
|
+ <td>workspace referring to multiple issues on the backend </td>
|
|
167
|
+ { /*
|
|
168
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
169
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
170
|
+ <i className='fa fa-fw fa-check-square-o' />
|
186
|
171
|
</div>
|
|
172
|
+ Enable
|
187
|
173
|
</td>
|
188
|
|
- </tr>
|
189
|
|
- </tbody>
|
190
|
|
- </table>
|
191
|
|
- </div>
|
|
174
|
+ */ }
|
|
175
|
+ <td>3</td>
|
|
176
|
+ <td>
|
|
177
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace primaryColorFont primaryColorFontDarkenHover'>
|
|
178
|
+ <div className='adminWorkspacePage__workspaceTable__deleteworkspace__removalicon mr-3'>
|
|
179
|
+ <i className='fa fa-fw fa-trash-o' />
|
|
180
|
+ </div>
|
|
181
|
+ Delete
|
|
182
|
+ </div>
|
|
183
|
+ </td>
|
|
184
|
+ </tr>
|
|
185
|
+ </tbody>
|
|
186
|
+ </table>
|
|
187
|
+ </div>
|
192
|
188
|
|
193
|
|
- </PageContent>
|
194
|
|
- </PageWrapper>
|
195
|
|
- </div>
|
|
189
|
+ </PageContent>
|
|
190
|
+ </PageWrapper>
|
196
|
191
|
)
|
197
|
192
|
}
|
198
|
193
|
}
|