|
@@ -0,0 +1,138 @@
|
|
1
|
+import React from 'react'
|
|
2
|
+import PropTypes from 'prop-types'
|
|
3
|
+import Sidebar from './Sidebar.jsx'
|
|
4
|
+import {
|
|
5
|
+ Delimiter,
|
|
6
|
+ PageWrapper,
|
|
7
|
+ PageTitle,
|
|
8
|
+ PageContent
|
|
9
|
+} from 'tracim_frontend_lib'
|
|
10
|
+import { translate } from 'react-i18next'
|
|
11
|
+
|
|
12
|
+class AdminWorkspacePage extends React.Component {
|
|
13
|
+ render () {
|
|
14
|
+ return (
|
|
15
|
+ <div className='sidebarpagecontainer'>
|
|
16
|
+ <Sidebar />
|
|
17
|
+
|
|
18
|
+ <PageWrapper customClass='adminWorkspacePage'>
|
|
19
|
+ <PageTitle
|
|
20
|
+ parentClass={'adminWorkspacePage'}
|
|
21
|
+ title={'Workspace management'}
|
|
22
|
+ />
|
|
23
|
+
|
|
24
|
+ <PageContent parentClass='adminWorkspacePage'>
|
|
25
|
+
|
|
26
|
+ <div className='adminWorkspacePage__description'>
|
|
27
|
+ This page informs all workspaces of the instances
|
|
28
|
+ </div>
|
|
29
|
+
|
|
30
|
+ <div className='adminWorkspacePage__createworkspace'>
|
|
31
|
+ <button className='adminWorkspacePage__createworkspace__btncreate btn btn-primary primaryColorBg primaryColorBorder primaryColorBorderDarkenHover'>
|
|
32
|
+ {this.props.t('Create a workspace')}
|
|
33
|
+ </button>
|
|
34
|
+ </div>
|
|
35
|
+
|
|
36
|
+ <Delimiter customClass={'adminWorkspacePage__delimiter'} />
|
|
37
|
+
|
|
38
|
+ <div className='adminWorkspacePage__workspaceTable'>
|
|
39
|
+
|
|
40
|
+ <table class='table'>
|
|
41
|
+ <thead>
|
|
42
|
+ <tr>
|
|
43
|
+ <th scope='col'># ID</th>
|
|
44
|
+ <th scope='col'>Workspace</th>
|
|
45
|
+ <th scope='col'>Description</th>
|
|
46
|
+ <th scope='col'>Users</th>
|
|
47
|
+ <th scope='col'>Calendar</th>
|
|
48
|
+ </tr>
|
|
49
|
+ </thead>
|
|
50
|
+ <tbody>
|
|
51
|
+ <tr>
|
|
52
|
+ <th>#1</th>
|
|
53
|
+ <td>Design v_2</td>
|
|
54
|
+ <td>Workspace about tracim v2 design</td>
|
|
55
|
+ <td>8 users</td>
|
|
56
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
57
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
58
|
+ <i className='fa fa-fw fa-check-square-o' />
|
|
59
|
+ </div>
|
|
60
|
+ Enable
|
|
61
|
+ </td>
|
|
62
|
+ </tr>
|
|
63
|
+ <tr>
|
|
64
|
+ <th>#2</th>
|
|
65
|
+ <td>New features</td>
|
|
66
|
+ <td>Add a new features : Annotated files</td>
|
|
67
|
+ <td>5 users</td>
|
|
68
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
69
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
70
|
+ <i className='fa fa-fw fa-square-o' />
|
|
71
|
+ </div>
|
|
72
|
+ Disable
|
|
73
|
+ </td>
|
|
74
|
+ </tr>
|
|
75
|
+ <tr>
|
|
76
|
+ <th>#3</th>
|
|
77
|
+ <td>Fix Backend</td>
|
|
78
|
+ <td>workspace referring to multiple issues on the backend </td>
|
|
79
|
+ <td>3 users</td>
|
|
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-check-square-o' />
|
|
83
|
+ </div>
|
|
84
|
+ Enable
|
|
85
|
+ </td>
|
|
86
|
+ </tr>
|
|
87
|
+ <tr>
|
|
88
|
+ <th>#4</th>
|
|
89
|
+ <td>Design v_2</td>
|
|
90
|
+ <td>Workspace about tracim v2 design</td>
|
|
91
|
+ <td>8 users</td>
|
|
92
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
93
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
94
|
+ <i className='fa fa-fw fa-square-o' />
|
|
95
|
+ </div>
|
|
96
|
+ Disable
|
|
97
|
+ </td>
|
|
98
|
+ </tr>
|
|
99
|
+ <tr>
|
|
100
|
+ <th>#5</th>
|
|
101
|
+ <td>New features</td>
|
|
102
|
+ <td>Add a new features : Annotated files</td>
|
|
103
|
+ <td>5 users</td>
|
|
104
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
105
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
106
|
+ <i className='fa fa-fw fa-square-o' />
|
|
107
|
+ </div>
|
|
108
|
+ Disable
|
|
109
|
+ </td>
|
|
110
|
+ </tr>
|
|
111
|
+ <tr>
|
|
112
|
+ <th>#6</th>
|
|
113
|
+ <td>Fix Backend</td>
|
|
114
|
+ <td>workspace referring to multiple issues on the backend </td>
|
|
115
|
+ <td>3 users</td>
|
|
116
|
+ <td className='d-flex align-items-center flex-wrap'>
|
|
117
|
+ <div className='adminWorkspacePage__workspaceTable__calendaricon mr-2'>
|
|
118
|
+ <i className='fa fa-fw fa-check-square-o' />
|
|
119
|
+ </div>
|
|
120
|
+ Enable
|
|
121
|
+ </td>
|
|
122
|
+ </tr>
|
|
123
|
+ </tbody>
|
|
124
|
+ </table>
|
|
125
|
+ </div>
|
|
126
|
+
|
|
127
|
+ </PageContent>
|
|
128
|
+ </PageWrapper>
|
|
129
|
+ </div>
|
|
130
|
+ )
|
|
131
|
+ }
|
|
132
|
+}
|
|
133
|
+
|
|
134
|
+AdminWorkspacePage.propTypes = {
|
|
135
|
+ availableApp: PropTypes.array.isRequired
|
|
136
|
+}
|
|
137
|
+
|
|
138
|
+export default translate()(AdminWorkspacePage)
|